I have a gentoo box, which is connected with 2 network cards to the same subnet.
eth0 192.168.1.10/24
eth1 192.168.1.11/24
Yesterday, I finally decided to update my /etc/conf.d/net
from the old syntax:
Code: Select all
iface_eth0="192.168.1.10 broadcast 192.168.1.255 netmask 255.255.255.0"
iface_eth1="192.168.1.11 broadcast 192.168.1.255 netmask 255.255.255.0"
gateway="eth0/192.168.1.1"
to the new syntax:
Code: Select all
config_eth0=( "192.168.1.10/24 brd 192.168.1.255" )
routes_eth0=( "default via 192.168.1.1" )
config_eth1=( "192.168.1.11/24 brd 192.168.1.255" )
routes_eth1=( "default via 192.168.1.1" )
Code: Select all
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.1 * 255.255.255.0 U 0 0 0 eth0
192.168.1.1 * 255.255.255.0 U 0 0 0 eth1
loopback * 255.0.0.0 U 0 0 0 lo
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth1
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
It seams somehow logically to me, that only one can be working with 2 default gateways in the routing table. But why and how worked it with the old
config?
Would it make more sense to bond the interfaces together?
Code: Select all
slaves_bond0="eth0 eth1"
config_bond0=( "192.168.1.10/24 brd 192.168.1.255" "192.168.1.11/24 brd 192.168.1.255" )
routes_bond0=( "default via 192.168.1.1" )




