To install: sudo apt install vlan
To load: sudo modprobe 8021q
To check: lsmod | grep 8021
To configure:
sudo ip link add link eth0 name eth0.23 type vlan id 23
sudo ip address add 192.168.1.1 dev eth0.23
sudo link set up eth0.23
To configure persistent:
sudo ‘echo “8021q” >> /etc/modules’
sudo vi /etc/network/interfaces
auto eth0.23
iface enp0.23 inet static
address 192.168.1.1
netmask 255.255.255.0
vlan-raw-device eth0