Package: dhcp-client
Version: 3.0.4-13
Linux bockwurst 2.6.18-4-686 #1 SMP Wed May 9 23:03:12 UTC 2007 i686
GNU/Linux
Libc Version: 2.3.6.ds1-13etch2
eth1: Firmware determined as Intersil 1.3.6
eth1: Ad-hoc demo mode supported
eth1: IEEE standard IBSS ad-hoc mode supported
eth1: WEP supported, 104-bit key
eth1: Station name "Prism I"
eth1: ready
eth1: orinoco_pci at 0000:02:05.0
Problem description: the network manager starts dhclient and waits for
45secs and then gives up (timeout). The dhclient gets a proper IP
address but this event is not transmitted via dbus to the network
manager. Log below (solution after log):
-----------------------------Orig log----------------------------------
Aug 25 12:22:37 bockwurst NetworkManager: <info> Activation (eth1)
Beginning DHCP transaction.
Aug 25 12:22:37 bockwurst NetworkManager: <info> Activation (eth1)
Stage 3 of 5 (IP Configure Start) complete.
Aug 25 12:22:37 bockwurst NetworkManager: <info> DHCP daemon state is
now 12 (successfully started) for interface eth1
Aug 25 12:22:42 bockwurst dhclient: DHCPDISCOVER on eth1 to
255.255.255.255 port 67 interval 1
Aug 25 12:22:42 bockwurst dhclient: DHCPOFFER from 192.168.19.1
Aug 25 12:22:42 bockwurst dhclient: DHCPREQUEST on eth1 to
255.255.255.255 port 67Aug 25 12:22:42 bockwurst dhclient: DHCPACK from
192.168.19.1
Aug 25 12:22:42 bockwurst dhclient: bound to 192.168.19.117 -- renewal
in 41115 seconds.
Aug 25 12:22:47 bockwurst kernel: eth1: no IPv6 routers present
Aug 25 12:23:01 bockwurst /USR/SBIN/CRON[27483]: (mail) CMD ( if [ -x
/usr/lib/exim/exim3 -a -f /etc/exim/exim.conf ]; then
/usr/lib/exim/exim3 -q ; fi)
Aug 25 12:23:22 bockwurst NetworkManager: <info> Device 'eth1' DHCP
transaction took too long (>45s), stopping it.
Aug 25 12:23:22 bockwurst dhclient: There is already a pid file
/var/run/dhclient.eth1.pid with pid 27465
Aug 25 12:23:22 bockwurst dhclient: killed old client process, removed
PID file
Aug 25 12:23:22 bockwurst dhclient: DHCPRELEASE on eth1 to 192.168.19.1
port 67
Aug 25 12:23:23 bockwurst NetworkManager: <info> Activation (eth1)
Stage 4 of 5 (IP Configure Timeout) scheduled...
Aug 25 12:23:23 bockwurst NetworkManager: <info> DHCP daemon state is
now 14 (normal exit) for interface eth1
Aug 25 12:23:23 bockwurst NetworkManager: <info> DHCP daemon state is
now 14 (normal exit) for interface eth1
Aug 25 12:23:23 bockwurst NetworkManager: <info> Activation (eth1)
Stage 4 of 5 (IP Configure Timeout) started...
Aug 25 12:23:23 bockwurst NetworkManager: <info> Activation (eth1)
failure scheduled...
---------------------------------------------------------------------------
Solution: add the missing dbus message to /etc/dhclient-script:
if [ -n "${dhc_dbus}" ]; then
/usr/bin/dbus-send \
--system \
--dest=com.redhat.dhcp \
--type=method_call \
/com/redhat/dhcp/$interface \
com.redhat.dhcp.set \
'string:'"`env | /bin/egrep -v '^(PATH|SHLVL|_|PWD|dhc_dbus)\='`";
if (( ( dhc_dbus & 31 ) == 31 )); then
exit 0;
fi;
fi;
which I've placed directly after the command "make_resolv_conf" in the
script. Don't know if that the best place but it works. This script has
been taken from:
http://mail.gnome.org/archives/networkmanager-list/2005-July/msg00038.html
Here's the log output after having added the lines above:
Aug 25 13:10:09 bockwurst NetworkManager: <info> Retrieved the
following IP4 configuration from the DHCP daemon:
Aug 25 13:10:09 bockwurst NetworkManager: <info> address 192.168.19.50
Aug 25 13:10:09 bockwurst NetworkManager: <info> netmask 255.255.255.0
Aug 25 13:10:09 bockwurst NetworkManager: <info> broadcast 192.168.19.255
Aug 25 13:10:09 bockwurst NetworkManager: <info> gateway 192.168.19.1
Aug 25 13:10:09 bockwurst NetworkManager: <info> nameserver 192.168.20.5
Aug 25 13:10:09 bockwurst NetworkManager: <info> nameserver 192.168.19.1
Aug 25 13:10:09 bockwurst NetworkManager: <info> domain name 'OFFSHORE'
Aug 25 13:10:09 bockwurst NetworkManager: <info> Activation (eth1)
Stage 5 of 5 (IP Configure Commit) scheduled...
Aug 25 13:10:09 bockwurst NetworkManager: <info> Activation (eth1)
Stage 4 of 5 (IP Configure Get) complete.
Aug 25 13:10:09 bockwurst NetworkManager: <info> Activation (eth1)
Stage 5 of 5 (IP Configure Commit) started...
Aug 25 13:10:09 bockwurst dhclient: bound to 192.168.19.50 -- renewal in
39236 seconds.
Aug 25 13:10:10 bockwurst NetworkManager: <info> Activation (eth1)
successful, device activated.
Aug 25 13:10:10 bockwurst NetworkManager: <debug> [1188043810.550022]
nm_dbus_signal_filter(): NetworkManagerInfo triggered update of wireless
network 'offshore3'
Aug 25 13:10:10 bockwurst NetworkManager: <debug> [1188043810.550498]
nm_dbus_signal_filter(): NetworkManagerInfo triggered update of wireless
network 'offshore3'
Aug 25 13:10:10 bockwurst NetworkManager: <debug> [1188043810.550897]
nm_dbus_signal_filter(): NetworkManagerInfo triggered update of wireless
network 'offshore3'
Aug 25 13:10:10 bockwurst NetworkManager: <debug> [1188043810.551297]
nm_dbus_signal_filter(): NetworkManagerInfo triggered update of wireless
network 'offshore3'
Aug 25 13:10:10 bockwurst NetworkManager: <info> Activation (eth1)
Finish handler scheduled.
Aug 25 13:10:10 bockwurst NetworkManager: <info> Activation (eth1)
Stage 5 of 5 (IP Configure Commit) complete.
--------------------------------------------------------------------------
/Bernd
--
www: http://www.berndporr.me.uk/
http://www.linux-usb-daq.co.uk/
Mobile: +44 (0)7840 340069
Work: +44 (0)141 330 5237
University of Glasgow
Department of Electronics & Electrical Engineering
Room 519, Rankine Building, Oakfield Avenue,
Glasgow, G12 8LT
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]