create interface enp3s0; vlan id is 10:
ip link add link enp3s0 name enp3s0.10 type vlan id 10
ip link
ip -d link show enp3s0.10
activate and add an IP address to vlan link:
ip addr add 10.10.1.200/24 brd 10.10.1.255 dev enp3s0.10
ip link set dev enp3s0.10 up
make VLAN configuration permanent
nano /etc/network/interfaces
auto enp3s0.10
iface enp3s0.10 inet static
address 10.10.1.200/24
netmask 255.255.255.0
vlan-raw-device enp3s0
Remove VLAN ID 10
ip link set dev enp3s0.10 down
ip link delete enp3s0.10