0
点赞
收藏
分享

微信扫一扫

两个网卡bond

以沫的窝 2022-06-27 阅读 69

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_vim

service network restart

 


举报

相关推荐

0 条评论