* [gentoo-user] bridge configuration problem
@ 2008-08-08 2:17 Shaochun Wang
2008-08-08 2:30 ` [gentoo-user] " Sven Köhler
2008-08-08 11:47 ` [gentoo-user] " Stroller
0 siblings, 2 replies; 6+ messages in thread
From: Shaochun Wang @ 2008-08-08 2:17 UTC (permalink / raw
To: gentoo user
Hi All:
I configure my network bridge as following:
/etc/conf.d/net
# Using Network Bridge
bridge_br0="eth0"
config_eth0=( "null" )
# Finally give the bridge an address - dhcp or a static IP
config_br0=( "192.168.8.20 netmask 255.255.255.0 brd 192.168.8.255" )
routes_br0=( "default gw 192.168.8.1" )
I also have
$ ls -l /etc/init.d/net.*
lrwxrwxrwx 1 root root 6 Apr 24 13:22 /etc/init.d/net.br0 -> net.lo
-rwxr-xr-x 1 root root 30696 Apr 3 18:27 /etc/init.d/net.lo
Normally, the bridge works well. But everytime I execute
"/etc/init.d/net.br0 restart", the following error occurs:
* network interface br0 does not exist
* Please verify hardware or kernel module (driver) [ !! ]
Then I execute such command one more time, it works well.
Does anyone know what's wrong with it?
THX
--
Shaochun Wang <scwang@ios.ac.cn>
Jabber: fungusw@jabber.org
^ permalink raw reply [flat|nested] 6+ messages in thread
* [gentoo-user] Re: bridge configuration problem
2008-08-08 2:17 [gentoo-user] bridge configuration problem Shaochun Wang
@ 2008-08-08 2:30 ` Sven Köhler
2008-08-08 2:47 ` Shaochun Wang
2008-08-08 11:47 ` [gentoo-user] " Stroller
1 sibling, 1 reply; 6+ messages in thread
From: Sven Köhler @ 2008-08-08 2:30 UTC (permalink / raw
To: gentoo-user
> Normally, the bridge works well. But everytime I execute
> "/etc/init.d/net.br0 restart", the following error occurs:
> * network interface br0 does not exist
> * Please verify hardware or kernel module (driver) [ !! ]
> Then I execute such command one more time, it works well.
>
> Does anyone know what's wrong with it?
So you have bridge-utits installed and there's also kernel-support for
bridging?
Can you create the bridge manually?
BTW: i would add a RC_NEED_xenbr0="net.eth0" to your /etc/conf.d/net
Regards,
Sven
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] Re: bridge configuration problem
2008-08-08 2:30 ` [gentoo-user] " Sven Köhler
@ 2008-08-08 2:47 ` Shaochun Wang
0 siblings, 0 replies; 6+ messages in thread
From: Shaochun Wang @ 2008-08-08 2:47 UTC (permalink / raw
To: gentoo-user
On Fri, Aug 08, 2008 at 04:30:31AM +0200, Sven K枚hler wrote:
> So you have bridge-utits installed and there's also kernel-support for
> bridging?
Yes, yes.
>
> Can you create the bridge manually?
Yes, yes.
>
> BTW: i would add a RC_NEED_xenbr0="net.eth0" to your /etc/conf.d/net
I will try it. But I think maybe the kernel need some time to restart
a just recently stopped bridge!
--
Shaochun Wang <scwang@ios.ac.cn>
Jabber: fungusw@jabber.org
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] bridge configuration problem
2008-08-08 2:17 [gentoo-user] bridge configuration problem Shaochun Wang
2008-08-08 2:30 ` [gentoo-user] " Sven Köhler
@ 2008-08-08 11:47 ` Stroller
2008-08-11 6:59 ` Shaochun Wang
1 sibling, 1 reply; 6+ messages in thread
From: Stroller @ 2008-08-08 11:47 UTC (permalink / raw
To: gentoo-user
On 8 Aug 2008, at 03:17, Shaochun Wang wrote:
> ...
> I configure my network bridge as following:
> ...
> Does anyone know what's wrong with it?
It looks quite different to mine:
$ cat /etc/conf.d/net
dns_domain="redacted.example.net"
dns_servers="192.168.1.43 192.168.1.1 212.104.130.9 212.104.130.65"
bridge_br0="eth0 eth1"
config_eth0=( "null" )
config_eth1=( "null" )
config_br0=( "192.168.1.44 netmask 255.255.255.0 broadcast
192.168.1.255" )
routes_br0=( "default via 192.168.1.1" )
preup() {
if [[ ${IFACE} == "br0" ]] ;
then sleep 30 ;
fi
return 0
}
$
Note that the preup is added in an attempt to overcome similar
problems to those you describe - starting or restarting the bridge
doesn't always work first time - but mine is still flakey.
Stroller.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] bridge configuration problem
2008-08-08 11:47 ` [gentoo-user] " Stroller
@ 2008-08-11 6:59 ` Shaochun Wang
2008-08-12 3:12 ` Shaochun Wang
0 siblings, 1 reply; 6+ messages in thread
From: Shaochun Wang @ 2008-08-11 6:59 UTC (permalink / raw
To: gentoo-user
On Fri, Aug 08, 2008 at 12:47:35PM +0100, Stroller wrote:
>
> preup() {
> if [[ ${IFACE} == "br0" ]] ;
> then sleep 30 ;
> fi
> return 0
> }
> $
>
> Note that the preup is added in an attempt to overcome similar problems to
> those you describe - starting or restarting the bridge doesn't always work
> first time - but mine is still flakey.
>
> Stroller.
After adding the preup() function, it works now!
--
Shaochun Wang <scwang@ios.ac.cn>
Jabber: fungusw@jabber.org
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] bridge configuration problem
2008-08-11 6:59 ` Shaochun Wang
@ 2008-08-12 3:12 ` Shaochun Wang
0 siblings, 0 replies; 6+ messages in thread
From: Shaochun Wang @ 2008-08-12 3:12 UTC (permalink / raw
To: gentoo-user
On Mon, Aug 11, 2008 at 02:59:03PM +0800, Shaochun Wang wrote:
> After adding the preup() function, it works now!
>
It seems that I celebrate too early. It still doesn't work. As a
matter of fact, it is so weird!
After executing the command "brctl addbr br0", the interface br0 is
available only for a few seconds. Then it vanished in the air!
--
Shaochun Wang <scwang@ios.ac.cn>
Jabber: fungusw@jabber.org
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-08-12 3:13 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-08 2:17 [gentoo-user] bridge configuration problem Shaochun Wang
2008-08-08 2:30 ` [gentoo-user] " Sven Köhler
2008-08-08 2:47 ` Shaochun Wang
2008-08-08 11:47 ` [gentoo-user] " Stroller
2008-08-11 6:59 ` Shaochun Wang
2008-08-12 3:12 ` Shaochun Wang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox