1 编辑/etc/modprobe.conf
  在/etc/modprobe.conf里加入如下两行:

  alias bond0 bonding

  options bond0 mode=1 miimon=100 use_carrier=0

2 创建bond0虚拟设备
  vim /etc/sysconfig/network-scripts/ifcfg-bond0
 
  DEVICE=bond0

  BOOTPROTO=none

  ONBOOT=yes

  NETMASK=255.255.255.0

  IPADDR=192.168.68.150

  GATEWAY=192.168.68.254

3 配置 eth0 eth1

  vim /etc/sysconfig/network-scripts/ifcfg-eth0
 
  DEVICE=eth0
  BOOTPROTO=none
  ONBOOT=yes
  MASTER=bond0
  SLAVE=yes

  vim /etc/sysconfig/network-scripts/ifcfg-eth1
 
  DEVICE=eth1
  BOOTPROTO=none
  ONBOOT=yes
  MASTER=bond0
  SLAVE=yes

4 重启系统

相关文章:

  • 2022-03-10
  • 2021-09-23
  • 2021-12-05
  • 2021-09-23
  • 2021-05-17
  • 2022-01-18
  • 2022-01-17
猜你喜欢
  • 2021-12-12
  • 2021-08-16
  • 2021-10-13
  • 2021-12-31
  • 2022-01-09
  • 2022-12-23
  • 2021-06-03
相关资源
相似解决方案