[opensuse] Re: Bonding two network cards
![](https://seccdn.libravatar.org/avatar/6a5533048d19b01710c8acbb091bf268.jpg?s=120&d=mm&r=g)
Jan Kalcic wrote:
Hi People,
I configured bonding (mode=1 - active-backup) and it seems to work properly but there's on thing which maybe I'm missing. Two network cards are used, as far as I understood one is the master (eth0) and the other one (eth1) is the slave. Testing the job I found that when eth0 goes down the bond0 interface still replies to the IP requests whereas if the eth1 goes down the bond0 doesn't work anymore though the it's up and running.
I also tried using the mode=3 (broadcast) which seems to be the other choice for multiple switch topology network but I have the same problem. What I simply need is a fault tolerance only configuration where one network card is connected to one switch and the other one to another switch.
Any advice?
Cheers, Jan
No advice about it? I tried several configuration but nothing has changed so far. Actually I did some simple changes but eventually it doesn't work correctly yet. The slave interfaces are eth0 and eth2 (eth1 si used for another purpose). The problem is now that when eth0 is switched off, the bond0 interface doesn't reply. What hell of bonding is this??? The configuration: # ifconfig bond0 Link encap:Ethernet HWaddr 00:0C:29:22:A8:08 inet addr:192.168.1.91 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:fe22:a808/64 Scope:Link UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1 RX packets:1438 errors:0 dropped:0 overruns:0 frame:0 TX packets:888 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1802044 (1.7 Mb) TX bytes:71235 (69.5 Kb) bond0:0 Link encap:Ethernet HWaddr 00:0C:29:22:A8:08 inet addr:192.168.1.93 Bcast:192.168.1.255 Mask:255.255.255.0 UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1 eth0 Link encap:Ethernet HWaddr 00:0C:29:22:A8:08 inet6 addr: fe80::20c:29ff:fe22:a808/64 Scope:Link UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1 RX packets:1408 errors:0 dropped:0 overruns:0 frame:0 TX packets:881 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1800180 (1.7 Mb) TX bytes:70809 (69.1 Kb) Interrupt:185 Base address:0x1400 eth1 Link encap:Ethernet HWaddr 00:0C:29:22:A8:12 inet addr:10.200.200.91 Bcast:10.200.200.255 Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:fe22:a812/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:282 errors:0 dropped:0 overruns:0 frame:0 TX packets:288 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:80300 (78.4 Kb) TX bytes:89415 (87.3 Kb) Interrupt:177 Base address:0x1480 eth2 Link encap:Ethernet HWaddr 00:0C:29:22:A8:08 inet6 addr: fe80::20c:29ff:fe22:a808/64 Scope:Link UP BROADCAST RUNNING NOARP SLAVE MULTICAST MTU:1500 Metric:1 RX packets:30 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:1864 (1.8 Kb) TX bytes:426 (426.0 b) Interrupt:193 Base address:0x1800 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:12 errors:0 dropped:0 overruns:0 frame:0 TX packets:12 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:820 (820.0 b) TX bytes:820 (820.0 b) # cat /proc/net/bonding/bond0 Ethernet Channel Bonding Driver: v3.0.1 (January 9, 2006) Bonding Mode: fault-tolerance (active-backup) Primary Slave: None Currently Active Slave: eth0 MII Status: up MII Polling Interval (ms): 100 Up Delay (ms): 0 Down Delay (ms): 0 Slave Interface: eth0 MII Status: up Link Failure Count: 0 Permanent HW addr: 00:0c:29:22:a8:08 Slave Interface: eth2 MII Status: up Link Failure Count: 0 Permanent HW addr: 00:0c:29:22:a8:1c # cat /etc/sysconfig/network/ifcfg-bond0 BOOTPROTO='static' BROADCAST='192.168.1.255' ETHTOOL_OPTIONS='' IPADDR='192.168.1.91' MTU='' NAME='AMD PCnet - Fast 79C971' NETMASK='255.255.255.0' NETWORK='192.168.1.0' REMOTE_IPADDR='' STARTMODE='onboot' UNIQUE='rBUF.weGuQ9ywYPF' USERCONTROL='no' #_nm_name='bus-pci-0000:00:11.0' PREFIXLEN='' BONDING_MASTER='yes' BONDING_MODULE_OPTS='miimon=100 mode=1' BONDING_SLAVE0='eth0' BONDING_SLAVE1='eth2' # cat /etc/sysconfig/network/ifcfg-eth-id-00\:0c\:29\:22\:a8\:08 BOOTPROTO='none' BROADCAST='' ETHTOOL_OPTIONS='' IPADDR='' MTU='' NAME='AMD PCnet - Fast 79C971' NETMASK='' NETWORK='' REMOTE_IPADDR='' STARTMODE='onboot' UNIQUE='rBUF.weGuQ9ywYPF' USERCONTROL='no' _nm_name='bus-pci-0000:00:11.0' PREFIXLEN='' # cat /etc/sysconfig/network/ifcfg-eth-id-00\:0c\:29\:22\:a8\:1c BOOTPROTO='none' BROADCAST='' ETHTOOL_OPTIONS='' IPADDR='' MTU='' NAME='AMD PCnet - Fast 79C971' NETMASK='' NETWORK='' REMOTE_IPADDR='' STARTMODE='onboot' UNIQUE='mY_N.weGuQ9ywYPF' USERCONTROL='no' _nm_name='bus-pci-0000:00:13.0' -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (1)
-
Jan Kalcic