vim /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=none
MASTER=bond0
SLAVE=yes

vim /etc/sysconfig/network-scripts/ifcfg-eth1

DEVICE=eth1
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=none
MASTER=bond0
SLAVE=yes

vim /etc/sysconfig/network-scripts/ifcfg-bond0

DEVICE=bond0
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=none
IPADDR=192.168.112.139
PREFIX=24
GATEWAY=192.168.112.1

vim /etc/modprobe.d/bond.conf

alias bond0 bonding
options bond0 miimon=100 mode=6

两个网卡bond

service network restart

 

相关文章:

  • 2021-06-09
  • 2021-09-24
  • 2021-06-01
  • 2022-12-23
  • 2022-12-23
  • 2021-12-15
  • 2021-04-13
  • 2021-10-18
猜你喜欢
  • 2022-02-13
  • 2021-07-19
  • 2021-12-07
  • 2022-12-23
  • 2021-11-29
  • 2021-06-06
相关资源
相似解决方案