sudo apt-get install vlan.
Load the 8021q module into the kernel. sudo modprobe 8021q.
Create a new interface that is a member of a specific VLAN, VLAN id 10 is used in this example. ...
Assign an address to the new interface. ...
Starting the new interface. ...
Create the interface and make it available when the system boots.