Description of problem: Just recently i set up a bridge as follows in /etc/sysconfig/network-scripts/ifcfg-br0: BOOTPROTO=static BROADCAST=10.0.0.255 DELAY=0 DEVICE=br0 GCINT=0 IPADDR=10.0.0.5 NETMASK=255.255.255.0 NETWORK=10.0.0.0 ONBOOT=yes TYPE=Bridge To be complete here's my /etc/sysconfig/network-scripts/ifcfg-eth0: BOOTPROTO=static BRIDGE=br0 DEVICE=eth0 ONBOOT=yes TYPE=Ethernet When i restart the network the bridge comes up fully functional, but ifup prints an error message in the process. Version-Release number of selected component (if applicable): initscripts-8.54.1-1 How reproducible: Always Steps to Reproduce: 1. Add ifcfg-br0 and ifcfg-eth0 to /etc/sysconfig/network-scripts 2. Run: sudo /sbin/service network restart Actual results: Bringing up loopback interface: [ OK ] Bringing up interface eth0: [ OK ] Bringing up interface br0: never heard of command [br0] Usage: brctl [commands] commands: addbr <bridge> add bridge delbr <bridge> delete bridge addif <bridge> <device> add interface to bridge delif <bridge> <device> delete interface from bridge setageing <bridge> <time> set ageing time setbridgeprio <bridge> <prio> set bridge priority setfd <bridge> <time> set bridge forward delay sethello <bridge> <time> set hello time setmaxage <bridge> <time> set max message age setpathcost <bridge> <port> <cost> set path cost setportprio <bridge> <port> <prio> set port priority show show a list of bridges showmacs <bridge> show a list of mac addrs showstp <bridge> show bridge stp info stp <bridge> {on|off} turn stp on/off [ OK ] Expected results: Bringing up loopback interface: [ OK ] Bringing up interface eth0: [ OK ] Bringing up interface br0: [ OK ]
This problem exists in Fedora 8 as well.
I finally had a bit of time to look into this today, as i reported earlier this exists in Fedora 7 and 8. Its cause is /etc/sysconfig/network-scripts/ifup-eth calling brctl setgcint, which seems to be no longer supported by brctl (even though the manual page still mentions setgcint). At first i worked around this by removing the line that started with "GCINT=" from /etc/sysconfig/network-scripts/ifcfg-br0. But then i thought i might just as well fix this permanently, as in the following patch: --- /etc/sysconfig/network-scripts/ifup-eth.original 2008-03-19 21:11:44.000000000 +0100 +++ /etc/sysconfig/network-scripts/ifup-eth 2008-03-19 21:10:14.000000000 +0100 @@ -71,7 +71,6 @@ exit 1 fi [ -n "${DELAY}" ] && /usr/sbin/brctl setfd ${DEVICE} ${DELAY} - [ -n "${GCINT}" ] && /usr/sbin/brctl setgcint ${DEVICE} ${GCINT} [ -n "${STP}" ] && /usr/sbin/brctl stp ${DEVICE} ${STP} fi I've also patched the manual page as follows: --- brctl.8.original 2008-03-19 21:26:12.000000000 +0100 +++ brctl.8 2008-03-19 21:26:19.000000000 +0100 @@ -95,11 +95,6 @@ bridge will time out (delete) that address from the Forwarding DataBase (fdb). -.B brctl setgcint <brname> <time> -sets the garbage collection interval for the bridge <brname> to <time> -seconds. This means that the bridge will check the forwarding database -for timed out entries every <time> seconds. - .SH SPANNING TREE PROTOCOL Multiple ethernet bridges can work together to create even larger
This message is a reminder that Fedora 8 is nearing its end of life. Approximately 30 (thirty) days from now Fedora will stop maintaining and issuing updates for Fedora 8. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '8'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 8's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 8 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora please change the 'version' of this bug to the applicable version. If you are unable to change the version, please add a comment here and someone will do it for you. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
Fixed in git. http://git.fedorahosted.org/git/?p=initscripts.git;a=commitdiff;h=8526b5c44655b71484ba5458ef489bd60efdbd1b