I am trying to setup vlans on my eth0 network card. The following are the steps that I've taken:
- Install
vlan
withsudo apt-get install vlan
Edit
/etc/network/interfaces
in vi by adding:auto eth0.100 iface eth0.100 inet dhcp
Restarted networking and/or restarted Ubuntu
- Ran
ifconfig
I don't see the eth0.100 listed, I'm not sure what I am doing wrong.
I can add vlans using vconfig but they don't stay after a reboot.
eth0.100
for you. – 2707974 Aug 13 '15 at 11:24universe
repository to installvlan
, but note thatvconfig
is deprecated now anyway. – mwfearnley May 05 '21 at 16:10ip link
andnetplan
. – zwets May 10 '22 at 22:08