Gentoo Archives: gentoo-user

From: Dan Farrell <dan@×××××××××.cx>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Bridge interface doesn't set default gateway.
Date: Thu, 18 Jan 2007 21:27:56
Message-Id: 20070118151953.723cf2a4@pascal.spore.ath.cx
In Reply to: [gentoo-user] Bridge interface doesn't set default gateway. by Huib van Wees
1 On Wed, 17 Jan 2007 18:57:54 +0100
2 "Huib van Wees" <hvwees@×××××.com> wrote:
3
4 > Hi List,
5 >
6 > I don't know when this happend, I don't reboot my system very often.
7 > Here is the issue.
8 >
9 > This Gentoo box has 5 ethernet interfaces. All together in bridge br0
10 >
11 > But somehow the default gateway isn't set at boot time which is quiete
12 > anoying, this worked before but I think the net startup script has
13 > been updated and this is changed.
14 >
15 > Anyone any clues?
16 >
17 > This is how mijn /etc/conf.d/net looks like:
18 > bridge_br0="eth0 eth1 eth2 eth3 eth4"
19 > config_br0=( "172.30.0.4 broadcast 172.30.255.255 netmask
20 > 255.255.0.0" ) gateway="br0/172.30.0.1"
21 >
22 from /etc/conf.d/net.example:
23
24 #-----------------------------------------------------------------------------
25 # Bridging (802.1d)
26 # For bridging support emerge net-misc/bridge-utils
27
28 # To add ports to bridge br0
29 #bridge_br0="eth0 eth1"
30 # or dynamically add them when the interface comes up
31 #bridge_add_eth0="br0"
32 #bridge_add_eth1="br0"
33
34 # You need to configure the ports to null values so dhcp does not get
35 started #config_eth0=( "null" )
36 #config_eth1=( "null" )
37
38 # Finally give the bridge an address - dhcp or a static IP
39 #config_br0=( "dhcp" ) # may not work when adding ports dynamically
40 #config_br0=( "192.168.0.1/24" )
41
42 # If any of the ports require extra configuration - for example
43 wireless or # ppp devices - we need to depend on them like so.
44 #RC_NEED_br0="net.eth0 net.eth1"
45
46 # Below is an example of configuring the bridge
47 # Consult "man brctl" for more details
48 #brctl_br0=( "setfd 0" "sethello 0" "stp off" )
49
50 #-----------------------------------------------------------------------------
51 --
52 gentoo-user@g.o mailing list