I am trying to setup vlans on my eth0 network card. The following are the steps that I've taken:
- Install
vlanwithsudo apt-get install vlan Edit
/etc/network/interfacesin vi by adding:auto eth0.100 iface eth0.100 inet dhcpRestarted 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.100for you. – 2707974 Aug 13 '15 at 11:24universerepository to installvlan, but note thatvconfigis deprecated now anyway. – mwfearnley May 05 '21 at 16:10ip linkandnetplan. – zwets May 10 '22 at 22:08