Linux-Bond-Configure

Posted 运维的自我修养

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Linux-Bond-Configure相关的知识,希望对你有一定的参考价值。

Centos 6.6



1. modify  /etc/modprobe.d/bond.conf

alias bond0 bonding

2. config eth0 & eth1

cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
TYPE=Ethernet
ONBOOT=yes
BOOTPROTO=none
MASTER=bond0
SLAVE=yes
USERCTL=no

cat /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
TYPE=Ethernet
ONBOOT=yes
BOOTPROTO=none
MASTER=bond0
SLAVE=yes
USERCTL=no

3. modify /etc/sysconfig/network-scripts/ifcfg-bond0 

DEVICE=bond0
TYPE=Ethernet
ONBOOT=yes
BOOTPROTO=static
USERCTL=no
BONDING_OPTS="mode=1 miimon=100"
IPADDR=10.11.192.10
NETMASK=255.255.255.0
GATEWAY=10.11.192.1

4. service network restart 

  

以上是关于Linux-Bond-Configure的主要内容,如果未能解决你的问题,请参考以下文章