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
标签:netplan,bond0,addresses,centos,vlan,renderer,ubuntu 来源: https://blog.csdn.net/SunJavaApplet/article/details/114663139