|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
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 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 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 issue but I know too little about internet configurations to make much of it. https://serverfault.com/a/581162 |
|
|||
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 |
|
|||
Quote:
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:
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! |
|
|||
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. |
|
|||
Quote:
/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. |
|
|||
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. |
|
|||
Quote:
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. |
|
|||
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; 23rd November 2019 at 11:03 AM. |
Tags |
dhcp, intel, thinkpad, wlan |
Thread Tools | |
Display Modes | |
|
|
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 |