Red Hat Bugzilla – Bug 125259
dhclient run on bridge before interfaces are added
Last modified: 2014-03-16 22:45:55 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6)
Description of problem:
I have configured a bridge as follows:
On running 'service network restart' the bridge is brought up and an
attempt is made to get an address for it. Running 'brctl show' reveals
that the bridge is configured, but has no interfaces yet. This is
obviously not the correct behavior.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Configure a bridge using the BRIDGE= and TYPE=Bridge directives in
2. Set the bridge device to get it's address by DHCP w/ BOOTPROTO=dhcp
3. Restart network.
Actual Results: Scripts are unable to get an address for the bridge
because the bridge has no interfaces when dhclient is run.
Expected Results: Bridge should be set up (with all appropriate
interfaces) before running dhclient.
I realize this breaks the paradigm of each device being configured
independant of other devices, but
Created attachment 102408 [details]
fixes to ifdown, ifup, and network
Here's a patch to /sbin/ifdown, /sbin/ifup, and /etc/init.d/network that fixes
this problem for me. Bridge devices are now brought up after normal devices and
shut down before them. To make this work, a bridge is addbr'd right before the
first addif (if it doesn't exist) and delbr'd right after the last delif (if
there are no more ports).
Created attachment 105220 [details]
Better patch, works with wireless
This fixes another bug: bridged wireless devices weren't getting initialized
Fixed in initscripts-8.32-1. Thanks for the patch!