linux bond 配置步驟

1、網卡綁定:

1:建立一個ifcfg-bond0

#cd /etc/sysconfig/network-scripts/ide

#vi ifcfg-bond0spa

DEVICE=bond0rest

TYPE=Ethernetorm

ONBOOT=yesip

BOOTPROTO=staticit

IPADDR=10.5.20.13io

NETMASK=255.255.252.0class

GATEWAY=10.5.20.253module

BONDING_OPTS="mode=0 miimon=100" ##mode有多種模式實現不一樣的功能配置

2:修改/etc/sysconfig/network-scripts/ifcfg-eth*

#vi ifcfg-eth0

DEVICE=eth0

ONBOOT=yes

BOOTPROTO=none

MASTER=bond0

SLAVE=yes


#vi ifcfg-eth1

DEVICE=eth1

ONBOOT=yes

BOOTPROTO=none

MASTER=bond0

SLAVE=yes

3:配置/etc/modules.conf,添加alias bond0 bonding

此配置可能沒有,須要建立

#vi /etc/modules.conf

alias net-pf-10 off

alias ipv6 off

options ipv6 disable=1

alias bond0 bonding

4:重啓服務

#service network restart


能夠經過查看/proc/net/bonding/bond0,查看當前是用的bond是什麼模式

相關文章
相關標籤/搜索