Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 157498 - /etc/init.d/net.br0 restart does not work properly with bridge
Summary: /etc/init.d/net.br0 restart does not work properly with bridge
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-08 01:39 UTC by Nathan Spaeth
Modified: 2007-01-10 12:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
A log of when I stop and start net.br0 6 times (stopstart.log,9.51 KB, text/plain)
2006-12-08 01:41 UTC, Nathan Spaeth
Details
A log of when I restart net.br0 12 times (restartlog.log,9.47 KB, text/plain)
2006-12-08 01:42 UTC, Nathan Spaeth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Spaeth 2006-12-08 01:39:39 UTC
I setup a network bridge on br0, net.br0 start works fine. net.br0 restart works inconsistently.

Using baselayout 1.12.6

Here is my /etc/conf.d/net
bridge_br0="eth0 eth1"
config_eth0=( "null" )
config_eth1=( "null" )
config_br0=( "dhcpcd" )
dhcpcd_br0="-s 192.168.0.6"
brctl_br0=( "setfd 0" "sethello 0" "stp off" )


Attached is the output of what happends when I a) Stop+start net.br0 6 times. (Works fine) After that is what happends when I restart 12 times. There are so many because I want to illustrate how many different results there are.
Comment 1 Nathan Spaeth 2006-12-08 01:41:48 UTC
Created attachment 103610 [details]
A log of when I stop and start net.br0 6 times

Start Stop Log
Comment 2 Nathan Spaeth 2006-12-08 01:42:56 UTC
Created attachment 103611 [details]
A log of when I restart net.br0 12 times

Restart log
Comment 3 Roy Marples (RETIRED) gentoo-dev 2006-12-08 12:07:57 UTC
Is any better if you upgrade to dhcpcd-3.0.5?
Comment 4 Nathan Spaeth 2006-12-08 22:10:36 UTC
Upgrading fixed part of the problem.

You'll notice that in of the restarts, dhcpcd failed because br0 was not up. 
Upgrading dhcpcd fixed the restarts for when br0 was up and still failed, eg...

 *   Bringing up br0
 *     dhcpcd
 *       Running dhcpcd ...                                               [ ok ]
 *       br0 received address 192.168.0.6/24

LopServ2Xeon /root # ping google.com -c 1
ping: unknown host google.com

....now works. I can ping successfully.

Unfortunately, because br0 is down after half of the restarts, dhcpcd has no interface to work on, and is destine to fail.
You should also note, that if after I restart br0, and it fails, I can manually do an 'ifconfig br0 up && dhcpcd br0' to make it work.
Comment 5 Roy Marples (RETIRED) gentoo-dev 2006-12-09 10:54:45 UTC
I'm pretty certain that this is fixed in baselayout-1.13
Comment 6 Roy Marples (RETIRED) gentoo-dev 2007-01-10 12:21:55 UTC
This should be fixed in baselayout-1.13.0_alpha11. Re-open if you disagree.