Debian和Ubuntu上的多网卡绑定
实验环境Ubuntu 6.06 Dadder,内核版本2.6.15-23 server
首先安装ifenslave
#apt-get install ifenslave-2.6
编辑/etc/network/interfaces
auto lo bond0 eth0 eth1
iface bond0 inet static
address 10.31.1.5
netmask 255.255.255.0
network 10.31.1.0
gateway 10.31.1.254
up /sbin/ifenslave bond0 eth0
up /sbin/ifenslave bond0 eth1
iface lo loopback
iface eth0 inet static
address 10.1.1.101
netmask 255.255.255.0
iface eth1 inet static
address 10.1.1.102
netmask 255.255.255.0
再编辑 /etc/modprobe.d/arch/i386
加上两行:
alias bond0 bonding
options bonding mode=0 miimon=100
最后重启网络即可
/etc/init.d/networking restart
阅读(357) | 评论(0) | 转发(0) |