Public bug reported:

Binary package hint: netbase

/etc/init.d/networking script does not stop dhclient3 if you:
1. configure interface to use dhcp
2. start the interface using /etc/init.d/networking script
3. change the interface to static ip in /etc/network/interfaces
4. stop the interface using /etc/init.d/networking script

Steps to reproduce:
---------------
[EMAIL PROTECTED]:~# cat /etc/network/interfaces
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp
[EMAIL PROTECTED]:~# /etc/init.d/networking start
 * Configuring network interfaces...
Internet Systems Consortium DHCP Client V3.0.3
Copyright 2004-2005 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP

Listening on LPF/eth0/00:0c:29:cf:29:df
Sending on   LPF/eth0/00:0c:29:cf:29:df
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPOFFER from 192.168.1.1
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 192.168.1.1
bound to 192.168.1.218 -- renewal in 415487 seconds.
   ...done.
[EMAIL PROTECTED]:~# /etc/init.d/networking stop
 * Deconfiguring network interfaces...
Internet Systems Consortium DHCP Client V3.0.3
Copyright 2004-2005 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP

Listening on LPF/eth0/00:0c:29:cf:29:df
Sending on   LPF/eth0/00:0c:29:cf:29:df
Sending on   Socket/fallback
DHCPRELEASE on eth0 to 192.168.1.1 port 67
   ...done.
[EMAIL PROTECTED]:~# /etc/init.d/networking start
 * Configuring network interfaces...
Internet Systems Consortium DHCP Client V3.0.3
Copyright 2004-2005 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP

Listening on LPF/eth0/00:0c:29:cf:29:df
Sending on   LPF/eth0/00:0c:29:cf:29:df
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPOFFER from 192.168.1.1
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 192.168.1.1
bound to 192.168.1.218 -- renewal in 373880 seconds.
   ...done.
[EMAIL PROTECTED]:~# cat > /etc/network/interfaces
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        address 192.168.1.218
        netmask 255.255.255.0
[EMAIL PROTECTED]:~# /etc/init.d/networking stop
 * Deconfiguring network interfaces...
   ...done.
[EMAIL PROTECTED]:~# ps ax|grep dhclient3|grep -v grep
 5974 ?        Ss     0:00 dhclient3 -pf /var/run/dhclient.eth0.pid -lf 
/var/lib/dhcp3/dhclient.eth0.leases eth0
[EMAIL PROTECTED]:~#
---------------

After the last "/etc/init.d/networking stop" command, I would expect
dhclient3 to release the IP.

Version information:
---------------
[EMAIL PROTECTED]:~# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=6.06
DISTRIB_CODENAME=dapper
DISTRIB_DESCRIPTION="Ubuntu 6.06.1 LTS"
[EMAIL PROTECTED]:~# uname -a
Linux kdev32bit 2.6.15-26-server #1 SMP Fri Sep 8 21:00:37 UTC 2006 i686 
GNU/Linux
[EMAIL PROTECTED]:~# dpkg -l netbase
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name                              Version                           
Description
+++-=================================-=================================-==================================================================================
ii  netbase                           4.24ubuntu3                       Basic 
TCP/IP networking system
[EMAIL PROTECTED]:~# dpkg -l ifupdown
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name                              Version                           
Description
+++-=================================-=================================-==================================================================================
ii  ifupdown                          0.6.7ubuntu7                      high 
level tools to configure network interfaces
---------------

** Affects: netbase (Ubuntu)
     Importance: Undecided
         Status: Unconfirmed

-- 
/etc/init.d/networking does not stop dhclient3 when changing from dhcp to 
static ip
https://launchpad.net/bugs/88101

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to