Hi,
I have setup bonding on two interfaces, but it appears that only one of them is being used by the bond?
bond0 Link encap:Ethernet HWaddr 00:0E:A6:B2:CB
A
inet addr:192.168.42.5 Bcast:192.168.42.255 Mask:255.255.255.0
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:731429 errors:0 dropped:0 overruns:0 frame:0
TX packets:434426 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:904766573 (862.8 MiB) TX bytes:110703535 (105.5 MiB)
eth0 Link encap:Ethernet HWaddr 00:0E:A6:B2:CB
A
inet addr:192.168.42.5 Bcast:192.168.42.255 Mask:255.255.255.0
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:731433 errors:0 dropped:0 overruns:0 frame:0
TX packets:434433 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:904766813 (862.8 MiB) TX bytes:110704729 (105.5 MiB)
Interrupt:12 Base address:0xe000
eth1 Link encap:Ethernet HWaddr 00:0E:A6:B2:CB
A
inet addr:192.168.42.5 Bcast:192.168.42.255 Mask:255.255.255.0
UP BROADCAST SLAVE MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:5 Base address:0xc000
Note how it doesn't say "RUNNING" under eth1?
And no traffic has gone through it.
What have I done wrong?
Config files:
/etc/modules.conf
alias bond0 bonding
options bond0 miimon=100 mode=balance-rr
/etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
BOOTPROTO=none
ONBOOT=yes
IPADDR=192.168.42.5
NETMASK=255.255.255.0
NETWORK=192.168.42.0
BROADCAST=192.168.42.255
GATEWAY=192.168.42.254
Then the two /etc/sysconfig/network-scripts/ifcfg-ethX files look like this
DEVICE=ethX
BOOTPROTO=none
ONBOOT=yes
TYPE=Ethernet
MASTER=bond0
SLAVE=yes
where X is 0 or 1, respectively.
EDIT: Forgot to mention:
[root@zaphod ~]# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v2.6.1 (October 29, 2004)
Bonding Mode: load balancing (round-robin)
MII Status: up
MII Polling Interval (ms): 0
Up Delay (ms): 0
Down Delay (ms): 0
Slave Interface: eth0
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:0e:a6:b2:cb:da
Slave Interface: eth1
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:50:fc:21:a2:20