环境说明:

服务器bond mode=4,需要交换机侧配置lacp

ifcfg-em1

  1. TYPE=Ethernet
  2. PROXY_METHOD=none
  3. BROWSER_ONLY=no
  4. BOOTPROTO=none
  5. IPV4_FAILURE_FATAL=no
  6. NAME=em1
  7. DEVICE=em1
  8. ONBOOT=yes
  9. MASTER=bond0
  10. SLAVE=yes

ifcfg-em2

  1. TYPE=Ethernet
  2. PROXY_METHOD=none
  3. BROWSER_ONLY=no
  4. BOOTPROTO=none
  5. IPV4_FAILURE_FATAL=no
  6. NAME=em2
  7. DEVICE=em2
  8. ONBOOT=yes
  9. MASTER=bond0
  10. SLAVE=yes

ifcfg-br0

  1. TYPE=Bridge
  2. DEVICE=br0
  3. ONBOOT=yes
  4. BOOTPROTO=static
  5. IPADDR=192.168.8.18
  6. NETMASK=255.255.255.0
  7. GATEWAY=192.168.8.184
  8. DNS1=192.168.0.201
  9. DNS2=192.168.0.202

ifcfg-bond0

  1. DEVICE=bond0
  2. TYPE=bond
  3. BONDING_MASTER=yes
  4. BONDING_OPTS="mode=4 miimon=100"
  5. ONBOOT=yes
  6. BOOTPROTO=static
  7. DEFROUTE=yes
  8. PEERDNS=yes
  9. PEERROUTES=yes
  10. BRIDGE=br0