[SOLVED] Not able to get an IP address when connecting to an open wireless network
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Not able to get an IP address when connecting to an open wireless network
I work at a college on the weekends and we use the open Guest wifi, which I have used multiple times before with the same machine on different distros.
I use NetworkManager and it fails to connect to it. I have tried wicd and even tried iwconfig eth1 essid KCTCS-GUEST followed by dhclient -v eth1 and it fails to grab an IP.
I can connect to a closed/secured network with no issues and my phone connects to the open network with no issues.
Yes I know my wireless card is showing as eth1, I have no idea why, it just works.
Thanks in advance and if you need any more info, please let me know.
Leave out any <> brackets I inserted
The WPA_supplicant stuff I wouldn't change, on the basis that if it works, don't fix it. Something to watch is that you have to allow rewriting of resolv.conf (DHCP_KEEPRESOLV not set) or else the server cannot impose it's own dns servers, which most institutions do so they can ban certain sites.
If you fail to get an IP, also try
Code:
iwconfig eth1
look at the Access point on the 2nd line. If you are associated, it says "Access point <blah>, otherwise it says "Not associated". If you have an access point, run 'dhcpcd eth1'
business_kid I tried your suggestion with no results except the same. I did connect and get an IP address only about 5 times within my 12 hour shift and even got the proper DNS servers but couldn't ping anything or resolve any addresses. I am not sure what is going on.
Drat. I suggested that because there have been cases where turning off ipv6 has helped and thought it was worth a try. I don't have any other ideas right now, except maybe to test with a Live CD of something like Mint to verify that the wireless card still works.
Anything is worth a try. The wireless card works as I can connect to my secured network at home, and have used this network before with other distros. I really don't want to have to go back to something else because well slackware is my favorite.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.