分类: LINUX
2010-10-29 15:05:27
/etc/sysconfig/network-scripts/ifcfg-bond0/etc/sysconfig/network-scripts/ifcfg-eth0/etc/sysconfig/network-scripts/ifcfg-eth1/etc/modprobe.conf
DEVICE=bond0IPADDR=10.16.65.43NETMASK=255.255.248.0ONBOOT=yesBOOTPROTO=dhcpUSERCTL=noBONDING_OPTS="mode=1 miimon=50"
# Broadcom Corporation NetXtreme BCM5755 Gigabit Ethernet PCI ExpressDEVICE=eth0BOOTPROTO=dhcpHWADDR=00:1E:0B:A3:A5:F4ONBOOT=yes
# Broadcom Corporation NetXtreme BCM5755 Gigabit Ethernet PCI ExpressDEVICE=eth0BOOTPROTO=noneHWADDR=00:1E:0B:A3:A5:F4ONBOOT=yesMASTER=bond0SLAVE=yesUSERCTL=no
# Broadcom Corporation NetXtreme BCM5755 Gigabit Ethernet PCI ExpressDEVICE=eth1BOOTPROTO=noneHWADDR=00:1E:0B:A3:A5:F3ONBOOT=yesMASTER=bond0SLAVE=yesUSERCTL=no
alias bond0 bonding
alias bond0 bondingalias bond1 bondingalias bond2 bonding
[root@hp-xw8600-01 ~]# ifconfig -abond0 Link encap:Ethernet HWaddr 00:1E:0B:A3:A5:F4inet addr:10.16.65.43 Bcast:10.16.71.255 Mask:255.255.248.0inet6 addr: fec0:0:a10:4000:21e:bff:fea3:a5f4/64 Scope:Siteinet6 addr: fe80::21e:bff:fea3:a5f4/64 Scope:LinkUP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1RX packets:3000 errors:0 dropped:0 overruns:0 frame:0TX packets:378 errors:0 dropped:0 overruns:0 carrier:0collisions:0 txqueuelen:0RX bytes:267901 (261.6 KiB) TX bytes:51397 (50.1 KiB)eth0 Link encap:Ethernet HWaddr 00:1E:0B:A3:A5:F4UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1RX packets:3000 errors:0 dropped:0 overruns:0 frame:0TX packets:378 errors:0 dropped:0 overruns:0 carrier:0collisions:0 txqueuelen:1000RX bytes:267901 (261.6 KiB) TX bytes:51397 (50.1 KiB)Interrupt:209 Memory:f3300000-f3310000eth1 Link encap:Ethernet HWaddr 00:1E:0B:A3:A5:F4UP BROADCAST SLAVE MULTICAST MTU:1500 Metric:1RX packets:0 errors:0 dropped:0 overruns:0 frame:0TX packets:0 errors:0 dropped:0 overruns:0 carrier:0collisions:0 txqueuelen:1000RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)Interrupt:217 Memory:f3200000-f3210000lo Link encap:Local Loopbackinet addr:127.0.0.1 Mask:255.0.0.0inet6 addr: ::1/128 Scope:HostUP LOOPBACK RUNNING MTU:16436 Metric:1RX packets:8 errors:0 dropped:0 overruns:0 frame:0TX packets:8 errors:0 dropped:0 overruns:0 carrier:0collisions:0 txqueuelen:0RX bytes:560 (560.0 b) TX bytes:560 (560.0 b)sit0 Link encap:IPv6-in-IPv4NOARP MTU:1480 Metric:1RX packets:0 errors:0 dropped:0 overruns:0 frame:0TX packets:0 errors:0 dropped:0 overruns:0 carrier:0collisions:0 txqueuelen:0RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)[root@hp-xw8600-01 ~]# cat /proc/net/bonding/bond0Ethernet Channel Bonding Driver: v3.4.0-1 (October 7, 2008)Bonding Mode: fault-tolerance (active-backup)Primary Slave: NoneCurrently Active Slave: eth0MII Status: upMII Polling Interval (ms): 50Up Delay (ms): 0Down Delay (ms): 0Slave Interface: eth0MII Status: upSpeed: 100 MbpsDuplex: fullLink Failure Count: 0Permanent HW addr: 00:1e:0b:a3:a5:f4Slave Interface: eth1MII Status: downSpeed: 100 MbpsDuplex: fullLink Failure Count: 0Permanent HW addr: 00:1e:0b:a3:a5:f3本博文转载于:May the Force be with you 的博客