You are not logged in.
Hi all,
I've just installed the latest NetworkManager, and while it itself managed to connect to the wifi, I still don't get internet access unless I manually launch dhclient under root.
This happens on every boot, obviously, so to make ot a bit more bearable, I tried adding dhclient -nw to /etc/rc.local, but the situation still happens if I suspend/hibernate the laptop.
I haven't changed my config files from when I was using the previous NetworkManager -- which worked correctly, and I never touched dhclient before this day.. Any ideas?
Here are the relevant sections of my config files -- if I need to put any more, pls tell me :
/etc/rc.conf
HOSTNAME="jean-laptop"
wlan0="dhcp"
#lo="lo 127.0.0.1"
#eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
INTERFACES=(!lo !eth0 !dhcp wlan0)
#
# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
# - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.0.1"
ROUTES=(gateway)
DAEMONS=(syslog-ng !wicd hal dhcdbd networkmanager fam !mysqld @cups @stbd @ntpd @portmap @alsa @crond @openntpd)
# A sample configuration for dhcpcd.
# See dhcpcd.conf(5) for details.
# dhcpcd-run-hooks uses these options.
option domain_name_servers, domain_name, domain_search, host_name
# Most distros have ntp support.
option ntp_servers
# We should behave nicely on networks and respect their MTU.
# However, a lot of buggy DHCP servers set invalid MTUs so this is not
# enabled by default.
#option interface_mtu
I edited dhclient.conf thinking it might help..
It wasn't even there before..
interface "wlan0" {
send dhcp-client-identifier 00:19:D2:9A:A6:06;
}
/etc/resolv.conf
search lan
nameserver 192.168.1.254
/etc/var/messages.log when resuming from suspend :
Nov 16 13:29:34 jean-laptop ADDRCONF(NETDEV_UP): wlan0: link is not ready
Nov 16 13:29:34 jean-laptop NetworkManager: <info> (wlan0): preparing device.
Nov 16 13:29:34 jean-laptop NetworkManager: <info> (wlan0): deactivating device (reason: 2).
Nov 16 13:29:34 jean-laptop NetworkManager: <info> (wlan0): device state change: 2 -> 3
Nov 16 13:29:34 jean-laptop NetworkManager: <info> (wlan0): supplicant interface state: starting -> ready
Nov 16 13:30:01 jean-laptop NetworkManager: <info> Activation (wlan0) starting connection 'Auto Aragorn's wifi'
Nov 16 13:30:01 jean-laptop NetworkManager: <info> (wlan0): device state change: 3 -> 4
Nov 16 13:30:01 jean-laptop NetworkManager: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) scheduled...
Nov 16 13:30:01 jean-laptop NetworkManager: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) started...
Nov 16 13:30:01 jean-laptop NetworkManager: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) scheduled...
Nov 16 13:30:01 jean-laptop NetworkManager: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) complete.
Nov 16 13:30:01 jean-laptop NetworkManager: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) starting...
Nov 16 13:30:01 jean-laptop NetworkManager: <info> (wlan0): device state change: 4 -> 5
Nov 16 13:30:01 jean-laptop NetworkManager: <info> Activation (wlan0/wireless): connection 'Auto Aragorn's wifi' has security, and secrets exist. No new secrets needed.
Nov 16 13:30:01 jean-laptop NetworkManager: <info> Config: added 'ssid' value 'Aragorn's wifi'
Nov 16 13:30:01 jean-laptop NetworkManager: <info> Config: added 'scan_ssid' value '1'
Nov 16 13:30:01 jean-laptop NetworkManager: <info> Config: added 'key_mgmt' value 'WPA-PSK'
Nov 16 13:30:01 jean-laptop NetworkManager: <info> Config: added 'psk' value '<omitted>'
Nov 16 13:30:01 jean-laptop NetworkManager: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) complete.
Nov 16 13:30:01 jean-laptop NetworkManager: <info> Config: set interface ap_scan to 1
Nov 16 13:30:01 jean-laptop NetworkManager: <info> (wlan0): supplicant connection state: scanning -> disconnected
Nov 16 13:30:01 jean-laptop NetworkManager: <info> (wlan0): supplicant connection state: disconnected -> scanning
Nov 16 13:30:01 jean-laptop NetworkManager: <info> (wlan0): supplicant connection state: scanning -> associating
Nov 16 13:30:01 jean-laptop ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Nov 16 13:30:01 jean-laptop NetworkManager: <info> (wlan0): supplicant connection state: associating -> associated
Nov 16 13:30:04 jean-laptop NetworkManager: <info> (wlan0): supplicant connection state: associated -> 4-way handshake
Nov 16 13:30:04 jean-laptop NetworkManager: <info> (wlan0): supplicant connection state: 4-way handshake -> group handshake
Nov 16 13:30:04 jean-laptop NetworkManager: <info> (wlan0): supplicant connection state: group handshake -> completed
Nov 16 13:30:04 jean-laptop NetworkManager: <info> Activation (wlan0/wireless) Stage 2 of 5 (Device Configure) successful. Connected to wireless network 'Aragorn's wifi'.
Nov 16 13:30:04 jean-laptop NetworkManager: <info> Activation (wlan0) Stage 3 of 5 (IP Configure Start) scheduled.
Nov 16 13:30:04 jean-laptop NetworkManager: <info> Activation (wlan0) Stage 3 of 5 (IP Configure Start) started...
Nov 16 13:30:04 jean-laptop NetworkManager: <info> (wlan0): device state change: 5 -> 7
Nov 16 13:30:04 jean-laptop NetworkManager: <info> Activation (wlan0) Beginning DHCP transaction.
Nov 16 13:30:04 jean-laptop NetworkManager: <info> dhcpcd started with pid 22882
Nov 16 13:30:04 jean-laptop NetworkManager: <info> Activation (wlan0) Stage 3 of 5 (IP Configure Start) complete.
Nov 16 13:30:04 jean-laptop dhcpcd[22882]: wlan0: dhcpcd 4.0.4 starting
Nov 16 13:30:04 jean-laptop NetworkManager: <info> DHCP: device wlan0 state changed normal exit -> preinit
Nov 16 13:30:04 jean-laptop dhcpcd[22882]: wlan0: broadcasting for a lease
Nov 16 13:30:07 jean-laptop dhcpcd[22882]: wlan0: offered 192.168.1.64 from 192.168.1.254
Nov 16 13:30:07 jean-laptop dhcpcd[22882]: wlan0: checking 192.168.1.64 is available on attached networks
Nov 16 13:30:12 jean-laptop dhcpcd[22882]: wlan0: acknowledged 192.168.1.64 from 192.168.1.254
Nov 16 13:30:12 jean-laptop dhcpcd[22882]: wlan0: leased 192.168.1.64 for 86400 seconds
Nov 16 13:30:12 jean-laptop NetworkManager: <info> DHCP: device wlan0 state changed preinit -> bound
Nov 16 13:30:12 jean-laptop NetworkManager: <info> Activation (wlan0) Stage 4 of 5 (IP Configure Get) scheduled...
Nov 16 13:30:12 jean-laptop NetworkManager: <info> Activation (wlan0) Stage 4 of 5 (IP Configure Get) started...
Nov 16 13:30:12 jean-laptop NetworkManager: <info> address 192.168.1.64
Nov 16 13:30:12 jean-laptop NetworkManager: <info> prefix 24 (255.255.255.0)
Nov 16 13:30:12 jean-laptop NetworkManager: <info> nameserver '192.168.1.254'
Nov 16 13:30:12 jean-laptop NetworkManager: <info> domain name 'lan'
Nov 16 13:30:12 jean-laptop NetworkManager: <info> Activation (wlan0) Stage 5 of 5 (IP Configure Commit) scheduled...
Nov 16 13:30:12 jean-laptop NetworkManager: <info> Activation (wlan0) Stage 4 of 5 (IP Configure Get) complete.
Nov 16 13:30:12 jean-laptop NetworkManager: <info> Activation (wlan0) Stage 5 of 5 (IP Configure Commit) started...
Nov 16 13:30:13 jean-laptop NetworkManager: <info> (wlan0): device state change: 7 -> 8
Nov 16 13:30:13 jean-laptop NetworkManager: <info> Activation (wlan0) successful, device activated.
Nov 16 13:30:13 jean-laptop NetworkManager: <info> Activation (wlan0) Stage 5 of 5 (IP Configure Commit) complete.
Nov 16 13:30:48 jean-laptop NetworkManager: <info> Trying to start the system settings daemon...
Nov 16 13:32:48 jean-laptop NetworkManager: <info> Trying to start the system settings daemon...
At this stage, I still don't have internet access, so I launch dhclient.
Nov 16 13:35:33 jean-laptop dhcpd: Internet Systems Consortium DHCP Server V3.1.1
Nov 16 13:35:33 jean-laptop dhcpd: Copyright 2004-2008 Internet Systems Consortium.
Nov 16 13:35:33 jean-laptop dhcpd: All rights reserved.
Nov 16 13:35:33 jean-laptop dhcpd: For info, please visit http://www.isc.org/sw/dhcp/
Nov 16 13:35:55 jean-laptop dhcpd: Internet Systems Consortium DHCP Server V3.1.1
Nov 16 13:35:55 jean-laptop dhcpd: Copyright 2004-2008 Internet Systems Consortium.
Nov 16 13:35:55 jean-laptop dhcpd: All rights reserved.
Nov 16 13:35:55 jean-laptop dhcpd: For info, please visit http://www.isc.org/sw/dhcp/
Nov 16 13:35:55 jean-laptop dhcpd: Internet Systems Consortium DHCP Server V3.1.1
Nov 16 13:35:55 jean-laptop dhcpd: Copyright 2004-2008 Internet Systems Consortium.
Nov 16 13:35:55 jean-laptop dhcpd: All rights reserved.
Nov 16 13:35:55 jean-laptop dhcpd: For info, please visit http://www.isc.org/sw/dhcp/
Nov 16 13:35:55 jean-laptop dhcpd: Wrote 0 class decls to leases file.
Nov 16 13:35:55 jean-laptop dhcpd: Wrote 0 deleted host decls to leases file.
Nov 16 13:35:55 jean-laptop dhcpd: Wrote 0 new dynamic host decls to leases file.
Nov 16 13:35:55 jean-laptop dhcpd: Wrote 0 leases to leases file.
Nov 16 13:35:55 jean-laptop dhcpd:
Nov 16 13:36:43 jean-laptop dhcpd: Internet Systems Consortium DHCP Server V3.1.1
Nov 16 13:36:43 jean-laptop dhcpd: Copyright 2004-2008 Internet Systems Consortium.
Nov 16 13:36:43 jean-laptop dhcpd: All rights reserved.
Nov 16 13:36:43 jean-laptop dhcpd: For info, please visit http://www.isc.org/sw/dhcp/
Nov 16 13:36:48 jean-laptop NetworkManager: <info> Trying to start the system settings daemon...
Nov 16 13:38:48 jean-laptop NetworkManager: <info> Trying to start the system settings daemon...
Nov 16 13:39:12 jean-laptop dhclient: There is already a pid file /var/run/dhclient.pid with pid 21939
Nov 16 13:39:12 jean-laptop dhclient: Internet Systems Consortium DHCP Client V3.0.6
Nov 16 13:39:12 jean-laptop dhclient: Copyright 2004-2007 Internet Systems Consortium.
Nov 16 13:39:12 jean-laptop dhclient: All rights reserved.
Nov 16 13:39:12 jean-laptop dhclient: For info, please visit http://www.isc.org/sw/dhcp/
Nov 16 13:39:12 jean-laptop dhclient:
Nov 16 13:39:16 jean-laptop dhclient: There is already a pid file /var/run/dhclient.pid with pid 21939
Nov 16 13:39:16 jean-laptop dhclient: killed old client process, removed PID file
Nov 16 13:39:16 jean-laptop dhclient: Internet Systems Consortium DHCP Client V3.0.6
Nov 16 13:39:16 jean-laptop dhclient: Copyright 2004-2007 Internet Systems Consortium.
Nov 16 13:39:16 jean-laptop dhclient: All rights reserved.
Nov 16 13:39:16 jean-laptop dhclient: For info, please visit http://www.isc.org/sw/dhcp/
Nov 16 13:39:16 jean-laptop dhclient:
Nov 16 13:39:17 jean-laptop dhclient: Listening on LPF/wlan0/00:19:d2:9a:a6:06
Nov 16 13:39:17 jean-laptop dhclient: Sending on LPF/wlan0/00:19:d2:9a:a6:06
Nov 16 13:39:17 jean-laptop dhclient: Sending on Socket/fallback
Nov 16 13:39:18 jean-laptop dhclient: DHCPREQUEST on wlan0 to 255.255.255.255 port 67
Nov 16 13:39:18 jean-laptop dhclient: DHCPACK from 192.168.1.254
Nov 16 13:39:18 jean-laptop dhclient: bound to 192.168.1.66 -- renewal in 32620 seconds.
Sorry for the very long post, but I aimed to give us much useful info as possible.
Offline
Any ideas?
Offline
this might not be causing the problems, but you might want to remove dhcdbd from the DAEMONS list and also not activate gateway in rc.conf as a route.
dhcdbd isn't used anymore by networkmanager and the route should be added automatically.
i've never had this problem with nm 0.7 myself and been using it since february, so no other idea...
Offline
Thanks for your answer, but it didn't work for me. Can you paste the relevant sections of the relevant configuration files here please? I think I might have screwed up something in the /etc/rc.conf :S
Offline
/etc/rc.conf:
#wlan0="dhcp"
INTERFACES=(!lo !eth0 !dhcp !wlan0)
ROUTES=(!gateway)
DAEMONS=(syslog-ng !wicd hal !dhcdbd networkmanager fam !mysqld @cups @stbd @ntpd @portmap @alsa @crond @openntpd)
Offline
/etc/rc.conf:
#wlan0="dhcp" INTERFACES=(!lo !eth0 !dhcp !wlan0) ROUTES=(!gateway) DAEMONS=(syslog-ng !wicd hal !dhcdbd networkmanager fam !mysqld @cups @stbd @ntpd @portmap @alsa @crond @openntpd)
That didn't work either..
Offline
do you have dhcpcd installed? nm 0.7 uses dhcpcd instead of dhclient by default, so it seems there is something wrong with that.
oh and !dhcp can be removed from INTERFACES aswell, what does that even do?
as i said above, the things i mentioned before weren't fixes for your problem, so it's no wonder they didn't solve your problem
they were just cleanups for your networking stuff and to make nm really do the part it is supposed to.
Offline
Have you tried connecting manually with ifconfig / iwconfig and dhclient? Using the output you get then might help you situate the problem...
I am not a big fan of nm and prefer the use of netcfg, but when in trouble, I switch to manual mode and try to understand the output. Last week I found out that I had both dhclient and dhcpcd running and they were interfering with each other: every 2 minutes my ip changed from x.x.x.168 to x.x.x.167 :-)
Zl.
Offline
I haven't tried using ifconfig/iwconfig to do this.
I removed dhclient, and tried it using dhcpcd. I now have the same problem - I have to run dhcpcd wlan0 to get the dhcp working.
Offline
dhcpcd is having problems for some (version 4 at least) - try the other one
Zl.
Offline
I think I have solved the problem temporarily, at least. I compiled my own version of networkmanager using dhclient from abs, then I made sure to lock the /etc/hosts as I noticed it was becoming overwritten - with the result that GNOME apps wouldn't even launch because of lines being added like :
127.0.0.1 unknown-00-19-d2-9a-a6-06.lan localhost.localdomain localhost
A quick chattr +i /etc/hosts later, and I was in business.
Thanks for all help given!
Now things seem to be working seemlessly.
Offline