0
点赞
收藏
分享

微信扫一扫

Ubuntu 18.04捆绑网卡

心存浪漫 2022-05-23 阅读 68

Ubuntu 18.04捆绑网卡:

注:需在ilo上操作(因为网络要断开)

modprobe bonding

lsmod | grep bonding

apt-get install ifenslave

systemctl stop networking

ifconfig ens3f0 down

ifconfig ens3f1 down

ip link add bond0 type bond mode 802.3ad

ip link set ens3f0 master bond0

ip link set ens3f1 master bond0

vi /etc/netplan/50-cloud-init.yaml

network:
version: 2
ethernets:
ens3f0:
dhcp4: no
ens3f1:
dhcp4: no
bonds:
bond0:
interfaces: [ens3f0,ens3f1]
addresses:

  • 10.0.0.3/24

gateway4: 10.0.0.1
nameservers: {}
parameters:
mode: balance-rr
# mode: active-backup
mii-monitor-interval: 100
:wq

netplan apply

ip a

ethtool bond0

reboot (重启依然在)

举报

相关推荐

0 条评论