netplan
netplan
see also ip, ipconfig, ifconfig, netplan
configure virtual interface with vlan
the most basic example, create a virtual network interface with a tagged vlan and use dhcp to acquire an IP address:
edit /etc/netplan/00-installer-config.yaml
network:
version: 2
ethernets:
enp2s0:
dhcp4: true
vlans:
vlan2:
id: 2
link: enp2s0
dhcp4: trueapply the config with
netplan apply