ubuntu vlan

ubuntu@ubuntu:/etc/netplan$ cat 01-network-manager-all.yaml
# Let NetworkManager manage all devices on this system
network:
  version: 2
  #renderer: NetworkManager
  renderer: networkd
  ethernets:
    eports:
      match:
        name: enp*
  bonds:
    bond0:
      interfaces: [eports]
      dhcp4: no
      parameters:
        mode: 802.3ad
        lacp-rate: fast
        mii-monitor-interval: 100

  vlans:
    bond0.8:
      id: 8
      link: bond0
      addresses: ["190.63.18.88/24"]
      gateway4: 190.63.18.1
      nameservers:
        addresses: [223.5.5.5]
      #nameservers:
      # addresses:["223.5.5.5"]       
centos@centos:/etc/netplan$

 

sudo netplan apply

 

 

 

 

 

上一篇:shell脚本批量监控Linux server配置文件的更改


下一篇:bonding