centos 配置bond_centos6.x 配置bond

centos6.x 配置bond

摘要: centos6.x下使用双网卡配置bond0, centos6 bond配置不需要在/etc/modprobe 中定义bond 直接在网卡中定义BONDING_OPTS 即可,例如bond0: BONDING_OPTS="mode=0 miimon=100"

物理网卡eth0 eth1绑定为bond0

1 物理网卡配置

ifcfg-eth0

DEVICE=eth0

ONBOOT=yes

BOOTPROTO=none

MASTER=bond0

SLAVE=yes

ifcfg-eth1

DEVICE=eth1

ONBOOT=yes

BOOTPROTO=none

MASTER=bond0

SLAVE=yes

2 bond0网卡配置

ifcfg-bond0

DEVICE=bond0

ONBOOT=yes

BOOTPROTO=none

IPADDR=xx.xx.xx.xx

NETMASK=xx.xx.xx.xx

GATEWAY=xx.xx.xx.xx

DNS1=xx.xx.xx.xx

BONDING_OPTS="mode=0 miimon=100"

重启网卡

service network restart

3 查看bond0网卡状态

[root@localhost network-scripts]# cat /proc/net/bonding/bond0

EthernetChannelBondingDriver: v3.7.1(April27,2011)

BondingMode: load balancing (round-robin)

MII Status: up

MII PollingInterval(ms):100

UpDelay(ms):0

DownDelay(ms):0

SlaveInterface: eth1

MII Status: up

Speed:1000Mbps

Duplex: full

LinkFailureCount:0

Permanent HW addr:00:0c:29:a1:34:eb

Slave queue ID:0

SlaveInterface: eth2

MII Status: up

Speed:1000Mbps

Duplex: full

LinkFailureCount:0

Permanent HW addr:00:0c:29:a1:34:e1

Slave queue ID:0

Tips: 日志可以使用tailf /var/log/messages实时查看

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值