端口聚合

1. Red Hat Enterprise Linux AS release 4 (Nahant Update 2)

ethtool -i eth0

ethtool -i eth1

which mii-tool

which ifenslave

modinfo bonding

modprobe bonding

lsmod|grep bond*

vi /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes

vi /etc/sysconfig/network-scripts/ifcfg-eth1

DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes

vi /etc/sysconfig/network-scripts/ifcfg-bond0

DEVICE=bond0
BOOTPROTO=static
ONBOOT=yes
IPADDR=10.12.22.21
ETMASK=255.255.255.0

vi /etc/sysconfig/network

GATEWAY=10.12.22.1

vi /etc/sysconfig/static-routes

any net 10.12.0.0 netmask 255.255.0.0 bond0

vi /etc/modprobe.conf

alias bond0 bonding
options bond0 miimon=100 mode=6

reboot

cat /proc/net/bonding/bond0

ifconfig

ping

ifdown eth0

ifenslave bond0 eth0

2. CentOS release 5.5 (Final)

vi /etc/modprobe.d/bond

alias bond0 bonding
options bond0 miimon=100 mode=4

reboot

3. SUSE Linux Enterprise Server 10 SP2 (x86_64)

sed -i "s/default 1/default 0/" /boot/grub/menu.lst

cd /etc/sysconfig/network/

mkdir /root/network/

mv ifcfg-eth-id* /root/network/

vi ifcfg-bond0

BOOTPROTO=static
IPADDR=10.12.5.40
NAME=Bond0
NETMASK=255.255.255.0
STARTMODE=auto
BONDING_MASTER=yes
BONDING_SLAVE_0=eth0
BONDING_SLAVE_1=eth1

vi /etc/modprobe.conf.local

alias bond0 bonding
options bonding miimon=100 mode=4

vi /etc/sysconfig/network/routes

reboot

vi /etc/xen/xend-config.sxp

(network-script 'network-bridge netdev=bond0')

sed -i "s/default 0/default 1/" /boot/grub/menu.lst

reboot

brctl show

vi /etc/xen/vm/domU

vif=[ 'mac=00:16:3E:29:43:76,model=rtl8139,type=ioemu,bridge=bond0', ]

xm new domU

xm start domU

http://blog.sina.com.cn/s/blog_5ff42d490100dwy2.html

http://blog.zhanxb.com/read.php?462

http://blog.csdn.net/mushog/article/details/3582900

http://blog.chinaunix.net/space.php?uid ... id=2088539

http://www.novell.com/coolsolutions/feature/17605.html

http://www.novell.com/communities/node/ ... es-sles-10

http://acooly.iteye.com/blog/1290284

http://jianlee.ylinux.org/Computer/%E6% ... nding.html

http://jackysz.blogbus.com/logs/141850947.html

http://wenku.baidu.com/view/1fc42d3b87c ... fc346.html

http://wenku.baidu.com/view/8d05c3fa770 ... 95427.html

http://lenovobbs.lenovo.com.cn/archiver ... 08711.html

http://www.cclove.me/read_journal.php?id=55

http://blog.webwlan.net/wordpress/?p=2390

http://blog.chinaunix.net/space.php?uid ... id=1951335

http://ciscoshop.maifou.net/goods-107.html

http://hi.baidu.com/leowang715/blog/ite ... fb454.html

绑定网卡需要网卡、交换机支持

部分交换机需要配置,部分交换机能自适应,不用配置,按上面配置能正常使用说明交换机是自适应的

绑定的前提条件:芯片组型号相同,而且网卡应该具备自己独立的BIOS芯片。

你可能感兴趣的:(端口聚合)