linux多网卡绑定

 vim /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE="bond0"
BOOTPROTO="static"
IPADDR=192.168.1.253
NETMASK=255.255.255.0
GATEWAY=192.168.1.2
DNS1=192.168.1.3
NM_CONTROLLED="no"
MASTER="yes"
ONBOOT="yes"
TYPE="Ethernet"
USERCTL="no"
BONDING_OPTS="mode=0 miimon=100"

vim /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
BOOTPROTO="none"
ONBOOT="yes"
MASTER="bond0"
SLAVE="yes"
NM_CONTROLLED="no"
~
vim /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE="eth1"
BOOTPROTO="none"
ONBOOT="yes"
MASTER="bond0"
SLAVE="yes"
NM_CONTROLLED="no"

service network restart
 

你可能感兴趣的:(linux,网卡)