dhclient assigns all interfaces connected to a bridge addresses
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dhcp3 (Ubuntu) |
Opinion
|
Low
|
Unassigned |
Bug Description
After the bridge is up, dhclient assigns all interfaces connected to the bridge an IP address. This breaks networking: two (or more) default routes, two (or more) interfaces assigned the same address. In some cases: interfaces configured static are assigned dynamic addresses (absolutely unwanted!). After cleaning up the mess, dhclient produced, all is fine again --- until your leases expire ...
dhclient should only assign addresses to interfaces given on commandline!
I found this bug with maverik and lucid (bug report #677152)
Network setup:
manual eth0
iface eth0 inet manual
pre-up ifconfig eth0 0.0.0.0 promisc up
...
auto vb0
iface vb0 inet manual
pre-up ifup eth0
pre-up brctl addbr vb0
pre-up brctl addif vb0 eth0
pre-up dhclient vb0
...
root@ivory:~# dhclient3 -e IF_METRIC=100 -pf /var/run/
There is already a pid file /var/run/
removed stale PID file
Internet Systems Consortium DHCP Client V3.1.3
Copyright 2004-2009 Internet Systems Consortium.
All rights reserved.
For info, please visit https:/
Listening on LPF/eth0/
Sending on LPF/eth0/
Listening on LPF/vb0/
Sending on LPF/vb0/
Sending on Socket/fallback
DHCPREQUEST of 192.168.1.113 on eth0 to 255.255.255.255 port 67
DHCPREQUEST of 192.168.1.113 on vb0 to 255.255.255.255 port 67
DHCPACK of 192.168.1.113 from 192.168.1.1
bound to 192.168.1.113 -- renewal in 1382 seconds.
root@ivory:~# route -n
Kernel-
Ziel Router Genmask Flags Metric Ref Use Iface
172.16.38.0 0.0.0.0 255.255.255.0 U 0 0 0 vmnet8
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 vb0
172.16.31.0 0.0.0.0 255.255.255.0 U 0 0 0 vmnet1
0.0.0.0 192.168.1.1 0.0.0.0 UG 100 0 0 vb0
0.0.0.0 192.168.1.1 0.0.0.0 UG 100 0 0 eth0
root@ivory:~# ifconfig eth0
eth0 Link encap:Ethernet Hardware Adresse 00:1e:68:06:4b:e9
inet Adresse:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metrik:1
RX packets:7865272 errors:0 dropped:0 overruns:0 frame:0
TX packets:4017664 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:11925842333 (11.9 GB) TX bytes:287765516 (287.7 MB)
root@ivory:~# ifconfig vb0
vb0 Link encap:Ethernet Hardware Adresse 00:1e:68:06:4b:e9
inet Adresse:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metrik:1
RX packets:7841208 errors:0 dropped:0 overruns:0 frame:0
TX packets:4018042 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:11784284373 (11.7 GB) TX bytes:271726107 (271.7 MB)
root@ivory:~# brctl show
bridge name bridge id STP enabled interfaces
vb0 8000.001e68064be9 no eth0
ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: dhcp3-client 3.1.3-2ubuntu6
ProcVersionSign
Uname: Linux 2.6.35.8 x86_64
Architecture: amd64
Date: Thu Nov 18 20:12:51 2010
ProcCmdLine: BOOT_IMAGE=
ProcEnviron:
LANG=de_DE.utf8
SHELL=/bin/bash
SourcePackage: dhcp3
Changed in dhcp3 (Ubuntu): | |
importance: | Undecided → Low |
status: | New → Opinion |
dhclient-versions between maverick and lucid match --- looks as if it is the very same bug! I've marked the lucid one as being duplicate (#677152)