首页 > 代码库 > 多网卡绑定。。。bond实现

多网卡绑定。。。bond实现

添加多网卡

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

DEVICE=bond0
NAME=bond0
TYPE=Bond
BONDING_MASTER=yes
IPADDR=192.168.1.142
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
DNS1=192.168.1.1
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
BONDING_OPTS="mode=6 miimon=100"

 

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

DEVICE="eth0"
ONBOOT="yes"
MASTER=bond0
SLAVE=yes
USERCTL=no

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

DEVICE="eth1"
ONBOOT="yes"
MASTER=bond0
SLAVE=yes
USERCTL=no

 

vi /etc/modprobe.d/bonding.conf

alias bond0 bonding
options bond0 miimon=100 mode=6

 

技术分享

多网卡绑定。。。bond实现