DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 2 Weeks Ago
c-c-c-c c-c-c-c is offline
New User
 
Join Date: Nov 2019
Posts: 5
Default OpenBSD 6.6, no route to host, dhcp no link.. sleeping

I've been trying to get the wifi working on my
IBM thinkpad 240x for a few days now but I seem to have
gotten stuck.

I'm using an Intel 2100 MiniPcie card with the ipw firmware
(https://man.openbsd.org/ipw).
I previously tried using a Intel 2915ABG with the iwi firmware
but kept getting firmware errors so I replaced it with the 2100.

I believe I have managed to connect to my WPA2 secured network
(judging by the output of my ifconfig) but im not able to get
any further. And running DHCP (dhclient ipw0 or sh /etc/netstart)
keeps outputting the same timeout message, No link......sleeping
No further error messages than that.

I have configured my ifconfig through the /etc/hostname.ipw0
file as advised in the man page, my config is as follows.


Code:
nwid hotspot wpakey password chan up wpaprotos wpa2 

inet 10.220.1.156 255.255.255.0
This then results in ifconfig outputting the following,
I have also tried alternating between using inet flag
and dhcp but neither has been successful.


Code:
ipw0: flags=808843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,AUTOCONF4> mtu 1500
    lladdr 00:0c:f1:24:1c:2a
    index 1 priority 4 llprio 3
    groups: wlan
    media: IEEE802.11 autoselect (DS11 mode 11b)
    status: active
    ieee80211: nwid hotspot chan 7 bssid 30:23:03:1a:4c:7a -18dBm wpakey wpaprotos \
wpa2 wpaakms psk wpaciphers ccmp  wpagroupcipher ccmp
    inet 10.220.1.156 netmask 0xffffff00 broadcast 10.220.1.255

But this is where I get stuck, dhcp still timeouts and gives me
the error message, I'm able to ping 10.220.1.156 but no other
ip from the router.
Pinging any other address give me a no route to host error.
This make me believe the issues is to be somehow solved
with the route command, "route show" outputs this.

Code:
Internet
        Destination        Gateway            Flags    Refs      Use    Mtu    Interface
        10.220.1/24        10.220.1.156       Cn         0        0     -     8 ipw0
        10.220.1.156       00:0c:f1:24:1c:2a  UHLl       0        0     -     1 ipw0
        10.220.1.255       10.220.1.156       Hb         0        0     -     1 ipw0
What is known that the network is named "hotspot"
passworded with "password", its gateway is "10.220.1.1"


I am also aware of certain IBM thinkpads having issues with
unauthorized MiniPCI cards as brought up here
http://www.thinkwiki.org/wiki/Proble...I_network_card
but this is only a BIOS whitelist and the combo im using
has been comfirmed to be working on the thinkpads forum and the
BIOS accepts the card so that seems to be a dead end.

So where do I go now, is the routing correct?
I dont know much about ip routing and gateways, maybe someone
knows some good resources where I can learn so I wont have
to come asking for help again.

And my other machines running linux outputs the following when
running netstat -r, its different from what route show gives on the
OpenBSD machine but I cant tell what is what.
Im not well acquainted enough with the route command to
configure the routing of my OpenBSD machine to mimick
that of my others, if thats even what is needed in this situation.

Code:
$ netstat -r
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
default         10.220.1.1      0.0.0.0         UG        0 0          0 wlan0
10.220.1.0      0.0.0.0         255.255.255.0   U         0 0          0 wlan0
I also read the following and thought I might be having a similar
issue but I know too little about internet configurations
to make much of it.
https://serverfault.com/a/581162
Reply With Quote
  #2   (View Single Post)  
Old 2 Weeks Ago
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 6,814
Default

Hello and welcome!
  1. The chan up looks look a typo. The ifconfig(8) man page states
    Quote:
    chan [n]
    Set the channel (radio frequency) to n. With no channel specified, show the list of channels supported by the device.
    But this doesn't appear to affect the outcome, since ifconfig() reports status: active.
  2. Did you provision PF? If so, the configuration could possibly be blocking DHCP traffic.
  3. tcpdump(8) might shed light on what is happening. Along with IP traffic, you can inspect 802.11 wireless traffic.
Reply With Quote
  #3   (View Single Post)  
Old 2 Weeks Ago
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,567
Default

Have you tried to get an IP via dhcp manually with # dhclient ipw0?
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #4   (View Single Post)  
Old 2 Weeks Ago
c-c-c-c c-c-c-c is offline
New User
 
Join Date: Nov 2019
Posts: 5
Default

Quote:
Originally Posted by jggimi View Post
Hello and welcome!
  1. The chan up looks look a typo. The ifconfig(8) man page statesBut this doesn't appear to affect the outcome, since ifconfig() reports status: active.
  2. Did you provision PF? If so, the configuration could possibly be blocking DHCP traffic.
  3. tcpdump(8) might shed light on what is happening. Along with IP traffic, you can inspect 802.11 wireless traffic.
Youre right the "chan up" was a typo, removed it but still no difference,
I have not touched PF but just to be sure I turned it off for now with
rcctl disable PF

I will attach a tcpdump tomorrow, how should I go about it?
Run tcpdump in another tty while running "dhclient ipw0"?


Quote:
Originally Posted by J65nko View Post
Have you tried to get an IP via dhcp manually with # dhclient ipw0?
Yes, this results in the
No link....... sleeping
And no further error messages

And thanks for the quick replies, this forum seems to be the best resource for *BSD I've found!
Reply With Quote
  #5   (View Single Post)  
Old 2 Weeks Ago
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 6,814
Default

Quote:
Run tcpdump in another tty while running "dhclient ipw0"?
That's the usual way I do it, whether watching "live" or recording with -w.
Reply With Quote
  #6   (View Single Post)  
Old 2 Weeks Ago
TronDD TronDD is offline
Package Pilot
 
Join Date: Sep 2014
Posts: 200
Default

You're assigning an IP statically. You don't use DHCP in that case.

Either set the IP manually, including the gateway in /etc/mygate and DNS settings in /etc/resolv.conf or remove the IP assignment and use dhcp alone.
Reply With Quote
  #7   (View Single Post)  
Old 2 Weeks Ago
c-c-c-c c-c-c-c is offline
New User
 
Join Date: Nov 2019
Posts: 5
Default

Quote:
Originally Posted by TronDD View Post
You're assigning an IP statically. You don't use DHCP in that case.

Either set the IP manually, including the gateway in /etc/mygate and DNS settings in /etc/resolv.conf or remove the IP assignment and use dhcp alone.
I've tried both but neither work.

/etc/mygate is set to 10.220.1.1 and resolv.conf is set to 8.8.8.8

When I've been trying to run "dhclient ipw0" i comment out the portions of those files and from the /etc/hostname.ipw0 but still no bueno.
Reply With Quote
  #8   (View Single Post)  
Old 2 Weeks Ago
TronDD TronDD is offline
Package Pilot
 
Join Date: Sep 2014
Posts: 200
Default

What you posted shows you do not have a default gateway which likely means you didn't have a mygate file but were trying dhcp. But your other output shows a static IP.

What do your linux systems use? Static IPs or DHCP?
I'd clean up, pick static or dhcp (whichever you know works), reconfigure that way and re capture the ifconfig and route output.
Reply With Quote
  #9   (View Single Post)  
Old 2 Weeks Ago
c-c-c-c c-c-c-c is offline
New User
 
Join Date: Nov 2019
Posts: 5
Default

Quote:
Originally Posted by TronDD View Post
What you posted shows you do not have a default gateway which likely means you didn't have a mygate file but were trying dhcp. But your other output shows a static IP.

What do your linux systems use? Static IPs or DHCP?
I'd clean up, pick static or dhcp (whichever you know works), reconfigure that way and re capture the ifconfig and route output.
I had a mygate file but I cleaned everything up now and tried connecting with DHCP.
My linux systems all use DHCP.

So now I tried connecting through commandline and I finally got an error!

After startup I ran

ifconfig ipw0 up

then

ifconfig ipw0 nwid hotspot wpaprotos wpa2 wpakey password

Which gave me the error
ipw0: timeout waiting for disabled state
ipw0: association failed (error=35)

The only similar report I could find was this except that he also had a "fatal firmware error"
http://openbsd-archive.7691.n7.nabbl...8523.html#none

I will attach tcpdump in a bit.
Reply With Quote
Old 2 Weeks Ago
c-c-c-c c-c-c-c is offline
New User
 
Join Date: Nov 2019
Posts: 5
Default

So in my frustration I decided to go ahead and try the other wifi card I had on hand, the 2915ABG with the iwi driver.
It was no longer giving me firmware errors and after clearing all configs and connecting with
ifconfig iwi0 nwid hotspot wpakey password
then
dhclient -v iwi0

It's working.
I actually couldnt believe it when I saw dhclient saying "lease accepted"

Now I just need to figure out where to fit these antennas

Last edited by c-c-c-c; 2 Weeks Ago at 11:03 AM.
Reply With Quote
Reply

Tags
dhcp, intel, thinkpad, wlan

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
iwm0: no link ........... sleeping pieguy OpenBSD General 19 29th October 2016 10:13 PM
No Route to Host rtwingfield FreeBSD Installation and Upgrading 9 25th May 2015 03:05 AM
No link....... sleeping illiterate OpenBSD General 6 26th February 2013 05:12 PM
dhclient -> urtw0: no link ....... sleeping rma OpenBSD Installation and Upgrading 10 20th August 2010 03:25 AM
zyd0: no link ........... sleeping kallistoteles OpenBSD Installation and Upgrading 3 25th June 2010 02:38 PM


All times are GMT. The time now is 08:43 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick