[关闭]
@zphj1987 2016-07-15T18:21:25.000000Z 字数 719 阅读 1911

centos6配置bond

zbkc


centos6配置bond.pdf36kB

原始配置文件

  1. DEVICE="eth0"
  2. BOOTPROTO="dhcp"
  3. HWADDR="00:0C:29:04:AE:65"
  4. IPV6INIT="no"
  5. NM_CONTROLLED="no"
  6. ONBOOT="yes"
  7. TYPE="Ethernet"

配置文件2

  1. DEVICE="eth1"
  2. BOOTPROTO="dhcp"
  3. HWADDR="00:0C:29:04:AE:6F"
  4. IPV6INIT="no"
  5. NM_CONTROLLED="no"
  6. ONBOOT="yes"
  7. TYPE="Ethernet"

创建/etc/sysconfig/network-scripts/ifcfg-bond0

  1. DEVICE="bond0"
  2. BOOTPROTO="dhcp"
  3. IPV6INIT="no"
  4. NM_CONTROLLED="no"
  5. ONBOOT="yes"
  6. TYPE="bond"
  7. BONDING_MASTER=yes
  8. BONDING_OPTS="mode=0 miimon=100"
  1. DEVICE="eth0"
  2. MASTER=bond0
  3. SLAVE=yes
  4. USERCTL=no
  5. BOOTPROTO=none
  6. ONBOOT=yes
  7. HWADDR="00:0C:29:04:AE:65"
  8. NM_CONTROLLED="no"
  1. DEVICE="eth1"
  2. MASTER=bond0
  3. SLAVE=yes
  4. USERCTL=no
  5. BOOTPROTO=none
  6. ONBOOT=yes
  7. HWADDR="00:0C:29:04:AE:6F"
  8. NM_CONTROLLED="no"

换模式重启就可以了
检查bond模式

cat /proc/net/bonding/bond0

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注