Ubuntu18.04 配置 bond 网卡

Ubuntu18.04 配置 bond 网卡

bond 概念解释参考:

https://www.cnblogs.com/dkblog/p/3613407.html

编辑配置文件 /etc/netplan/*.yaml (缩进一定要注意)

network:
  bonds:
    bond6:
      addresses:
      - 192.168.0.2/24
      gateway4: 192.168.0.1
      interfaces:
      - enp0s3
      - enp0s8
      nameservers:
        addresses:
        - 223.5.5.5
        - 223.6.6.6
      parameters:
        mode: balance-alb
  ethernets:
    enp0s3: {}
    enp0s8: {}
  version: 2

 重启或者执行下面命令使配置生效

netplan apply

 

posted @ 2021-06-22 21:59  运维工作栈  阅读(1903)  评论(0)    收藏  举报