首页 > 代码库 > 配置bond

配置bond

[root@node4 ~]# cat /etc/sysconfig/network-scripts/ifcfg-bond0

DEVICE=bond0

ONBOOT=yes

BOOTPROTO=static

IPADDR=10.240.217.104

NETMASK=255.255.255.0

GATEWAY=10.240.217.1

USERCTL=no

BONDING_OPTS="mode=0 miimon=100 "

[root@node4 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE="eth0"

HWADDR="B4:99:BA:BF:1F:36"

ONBOOT="yes"

MASTER="bond0"

SLAVE="yes"

[root@node4 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1

DEVICE="eth1"

HWADDR=B4:99:BA:BF:1F:38

ONBOOT="yes"

MASTER="bond0"

SLAVE="yes"

[root@node4 ~]# 


本文出自 “zhanguo1110” 博客,请务必保留此出处http://zhanguo1110.blog.51cto.com/5750817/1433336