Centos 网卡做bond

[root@localhost network-scripts]# cat ifcfg-eth0

DEVICE=eth0
HWADDR=B8:AC:6F:12:66:3C
TYPE=Ethernet
UUID=16036f05-47b0-46e7-9fc3-b7cafe2d7a14
ONBOOT=yes
NM_CONTROLLED=no
MASTER="bond0"
SLAVE="yes"

[root@localhost network-scripts]# cat ifcfg-eth1

DEVICE=eth1
HWADDR=B8:AC:6F:12:66:3E
TYPE=Ethernet
UUID=53a55e74-9c13-4aff-bd39-afd8dd1901fb
ONBOOT=no
NM_CONTROLLED=yes
BOOTPROTO=dhcp
MASTER="bond0"
SLAVE="yes"

[root@localhost network-scripts]# cat ifcfg-bond0

DEVICE=bond0
ONBOOT=yes
NM_CONTROLLED=no
IPADDR=192.168.10.233
NETMASK=255.255.255.0
GATEWAY=192.168.10.254
USERCTL=no
BONDING_OPTS="mode=0 miimon=100 "

你可能感兴趣的:(linux)