I successfully used the Ubuntu Wiki page to configure a VLAN interface manually, but I want this to take place at boot. How can this be done?
sudo apt-get install vlan
sudo su -c 'echo "8021q" >> /etc/modules'
sudo su -c 'echo "source /etc/network/interfaces.d/*" >> /etc/network/interfaces'
- Create a new file in directory
vlan10with the following contents:
iface enp3s0.10 inet dhcp
* The actual device name,
enp3s0 in this case, will vary depending on your network driver