Hi Expert ,
I am using OpenSuse 11 plus Xen on the Server with 2 NICs.
I wanna redundant the Network connection for VMs and followed Bonding Interface article on forum but it does not work
linux-7klc:/etc/sysconfig/network # cat ifcfg-eth0
NAME=‘88E8001 Gigabit Ethernet Controller’
DEVICE=‘eth0’
USERCTL=‘no’
ONBOOT=‘yes’
MASTER=‘bond0’
SLAVE=‘yes’
BOOTPROTO=‘none’
STARTMODE=’’
linux-7klc:/etc/sysconfig/network # cat ifcfg-eth1
NAME=‘RTL-8029(AS)’
DEVICE=‘eth1’
USERCTL=‘no’
ONBOOT=‘yes’
MASTER=‘bond0’
SLAVE=‘yes’
BOOTPROTO=‘none’
STARTMODE=’’
linux-7klc:/etc/sysconfig/network # cat ifcfg-bond0
DEVICE=‘bond0’
IPADDR=‘192.168.5.30/24’
NETMASK=‘255.255.255.0’
NETWORK=’’
BROADCAST=’’
ONBOOT=‘yes’
BOOTPROTO=‘static’
USERCTL=‘no’
BONDING_MASTER=‘yes’
BONDING_MODULE_OPTS=‘mode=active-backup miimon=100’
ETHTOOL_OPTIONS=’’
MTU=’’
NAME=’’
REMOTE_IPADDR=’’
STARTMODE=’’
USERCONTROL=‘no’
linux-7klc:/etc/sysconfig/network # ifconfig
bond0 Link encap:Ethernet HWaddr 00:14:85:27:B0:A1
inet addr:192.168.5.30 Bcast:192.168.5.255 Mask:255.255.255.0
inet6 addr: fe80::214:85ff:fe27:b0a1/64 Scope:Link
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:136430 errors:0 dropped:0 overruns:0 frame:0
TX packets:53450 errors:0 dropped:0 overruns:0 carrier:0
collisions:10 txqueuelen:0
RX bytes:12486652 (11.9 Mb) TX bytes:5496999 (5.2 Mb)
eth0 Link encap:Ethernet HWaddr 00:14:85:27:B0:A1
inet addr:192.168.5.30 Bcast:192.168.5.255 Mask:255.255.255.0
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:39807 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3624389 (3.4 Mb) TX bytes:1083 (1.0 Kb)
Interrupt:21
eth1 Link encap:Ethernet HWaddr 00:14:85:27:B0:A1
inet addr:192.168.5.30 Bcast:192.168.5.255 Mask:255.255.255.0
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:96623 errors:0 dropped:0 overruns:0 frame:0
TX packets:53443 errors:0 dropped:0 overruns:0 carrier:0
collisions:10 txqueuelen:1000
RX bytes:8862263 (8.4 Mb) TX bytes:5495916 (5.2 Mb)
Interrupt:20 Base address:0x9000
Then invoke the commands
/sbin/ifconfig bond0 192.168.5.30 up
/sbin/ifenslave bond0 eth0 eth1
result :
eth0 is already a slave
When i plugged out eth1 , i still can ping to 192.168.5.30 , but plugged out eth0 keep eth1 , can not ping more , and invert .
Can u pls help me on this issue , i need redundant the network , if eth0 fail eth1 will take over and keep connection and invert ?.
Thanks
Simon with regards