linux bond 配置步骤 |
您所在的位置:网站首页 › linux做bond › linux bond 配置步骤 |
一、网卡绑定:1:创建一个ifcfg-bond0 #cd /etc/sysconfig/network-scripts/ #vi ifcfg-bond0 DEVICE=bond0 TYPE=Ethernet ONBOOT=yes BOOTPROTO=static IPADDR=10.5.20.13 NETMASK=255.255.252.0 GATEWAY=10.5.20.253 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是什么模式 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |