LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-25-2015, 02:31 AM   #1
boomhower182
LQ Newbie
 
Registered: Mar 2014
Distribution: Slackware, Arch
Posts: 28

Rep: Reputation: Disabled
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.
 
Old 01-25-2015, 04:02 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,252

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
You may need something like one of the following in /etc/wpa_supplicant.conf
Code:
# Setup for EDUROAM access points
network={
  ssid="eduroam"
  scan_ssid=1
  proto=WPA2
  key_mgmt=WPA-EAP
  eap=TTLS
  identity="<student number>@<subdomain.domain.university.edu>"
  password="<your Student Password>"
  #psk - not working with psk
  phase2="auth=PAP"
}
#
# Plaintext connection (no WPA, no IEEE 802.1X),
# nice for hotel/airport types of WiFi network.
network={
  key_mgmt=NONE
  priority=0
}
and these details in /etc/rc.d/rc.inet1.conf under eth1 (so all the 4s become 1s)
Code:
IFNAME[4]="wlan0"
#IPADDR[4]=""
#NETMASK[4]=""
USE_DHCP[4]="yes"
DHCP_HOSTNAME[4]="<Your Box's hostname>"

DHCP_KEEPNTP[4]="yes"
#DHCP_KEEPGW[4]="yes"
#DHCP_IPADDR[4]=""
WLAN_ESSID[4]=any
WLAN_MODE[4]=Managed
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'
 
Old 01-25-2015, 12:19 PM   #3
jostber
Member
 
Registered: Jul 2001
Location: Skien, Norway
Distribution: Slackware Current 64-bit
Posts: 543

Rep: Reputation: 178Reputation: 178
Try to connect using wicd again and post the output of "tail -40 /var/log/wicd/wicd.log"
 
Old 01-25-2015, 05:23 PM   #4
boomhower182
LQ Newbie
 
Registered: Mar 2014
Distribution: Slackware, Arch
Posts: 28

Original Poster
Rep: Reputation: Disabled
This is the output of tail -40 /var/log/wicd/wicd.log

Code:
2015/01/25 18:21:11 :: Connecting to wireless network KCTCS-GUEST
2015/01/25 18:21:11 :: Putting interface down
2015/01/25 18:21:11 :: Releasing DHCP leases...
2015/01/25 18:21:11 :: Setting false IP...
2015/01/25 18:21:11 :: Stopping wpa_supplicant
2015/01/25 18:21:11 :: Flushing the routing table...
2015/01/25 18:21:11 :: Putting interface up...
2015/01/25 18:21:13 :: Running DHCP with hostname Yoda
2015/01/25 18:21:13 :: dhcpcd[2013]: version 6.0.5 starting
2015/01/25 18:21:13 :: 
2015/01/25 18:21:13 :: dhcpcd[2013]: eth1: soliciting an IPv6 router
2015/01/25 18:21:13 :: 
2015/01/25 18:21:13 :: dhcpcd[2013]: eth1: soliciting a DHCP lease
2015/01/25 18:21:13 :: 
2015/01/25 18:21:25 :: dhcpcd[2013]: eth1: no IPv6 Routers available
2015/01/25 18:21:25 :: 
2015/01/25 18:21:43 :: dhcpcd[2013]: timed out
2015/01/25 18:21:43 :: 
2015/01/25 18:21:43 :: DHCP connection failed
2015/01/25 18:21:43 :: exiting connection thread
2015/01/25 18:21:43 :: Sending connection attempt result dhcp_failed
 
Old 01-25-2015, 05:29 PM   #5
j_v
Member
 
Registered: Oct 2011
Distribution: Slackware64
Posts: 364

Rep: Reputation: 67
If your interface is wlan0, I wonder why the log is showing eth1?

EDIT:
Sorry, I should have read ALL the posts more thoroughly before inserting foot in mouth.

Last edited by j_v; 01-25-2015 at 05:31 PM.
 
Old 01-25-2015, 06:47 PM   #6
boomhower182
LQ Newbie
 
Registered: Mar 2014
Distribution: Slackware, Arch
Posts: 28

Original Poster
Rep: Reputation: Disabled
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.
 
Old 01-25-2015, 07:46 PM   #7
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,310
Blog Entries: 28

Rep: Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137
Try blacklisting ipv6 as described in this thread and test.
 
Old 01-25-2015, 08:11 PM   #8
boomhower182
LQ Newbie
 
Registered: Mar 2014
Distribution: Slackware, Arch
Posts: 28

Original Poster
Rep: Reputation: Disabled
frankbell just tried and still can't get an IP address
 
Old 01-25-2015, 08:20 PM   #9
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,310
Blog Entries: 28

Rep: Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137
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.
 
Old 01-25-2015, 08:24 PM   #10
boomhower182
LQ Newbie
 
Registered: Mar 2014
Distribution: Slackware, Arch
Posts: 28

Original Poster
Rep: Reputation: Disabled
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.
 
Old 01-26-2015, 12:35 AM   #11
jostber
Member
 
Registered: Jul 2001
Location: Skien, Norway
Distribution: Slackware Current 64-bit
Posts: 543

Rep: Reputation: 178Reputation: 178
Can you post the output of these commands?

lspci -vnn | grep -A10 Network

dmesg | grep -i eth1
 
Old 01-26-2015, 12:51 AM   #12
boomhower182
LQ Newbie
 
Registered: Mar 2014
Distribution: Slackware, Arch
Posts: 28

Original Poster
Rep: Reputation: Disabled
output of lspci -vnn | grep -A10 Network
Code:
0b:00.0 Network controller [0280]: Broadcom Corporation BCM4321 802.11a/b/g/n [1
4e4:4328] (rev 05)                                                              
        Subsystem: Apple Inc. Device [106b:008c]                                
        Physical Slot: 4                                                        
        Flags: bus master, fast devsel, latency 0, IRQ 16                       
        Memory at d7300000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: [40] Power Management version 3                           
        Capabilities: [58] Vendor Specific Information: Len=78 <?>              
        Capabilities: [e8] MSI: Enable- Count=1/1 Maskable- 64bit+              
        Capabilities: [d0] Express Endpoint, MSI 00                             
        Capabilities: [100] Advanced Error Reporting                            
        Capabilities: [13c] Virtual Channel
output of dmesg | grep -i eth1
Code:
[    9.787516] eth1: Broadcom BCM4328 802.11 Hybrid Wireless Controller 6.30.223
.141 (r415941)
 
Old 01-26-2015, 01:12 AM   #13
jostber
Member
 
Registered: Jul 2001
Location: Skien, Norway
Distribution: Slackware Current 64-bit
Posts: 543

Rep: Reputation: 178Reputation: 178
This might be a problem with the proprietary broadcom driver. Can you try this?

rmmod wl
echo "blacklist wl" >> /etc/modprobe.d/blacklist.conf
modprobe brcmsmac
 
Old 01-26-2015, 01:20 AM   #14
boomhower182
LQ Newbie
 
Registered: Mar 2014
Distribution: Slackware, Arch
Posts: 28

Original Poster
Rep: Reputation: Disabled
Now I have no wireless at all
 
Old 01-26-2015, 01:24 AM   #15
jostber
Member
 
Registered: Jul 2001
Location: Skien, Norway
Distribution: Slackware Current 64-bit
Posts: 543

Rep: Reputation: 178Reputation: 178
OK, then you need to revert that:

rmmod brcmsmac

Remove "blacklist wl" from the /etc/modprobe.d/blacklist.conf file

modprobe wl
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu 11.10 Network Manager issues connecting to wireless network after restart depam Linux - Software 2 01-22-2012 08:39 PM
Internal network connecting to external IP address kamafeu Linux - Networking 2 01-21-2007 01:23 PM
Connecting to Wireless Network Zephryos Linux - Software 3 01-28-2006 05:45 PM
Home network: connecting to a Linksys router for DHCP IP address - no ping gunther Linux - Networking 28 05-20-2005 10:14 PM
Connecting to Wireless network ms82xp Linux - Wireless Networking 1 02-06-2005 08:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration