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.
Best Answer
First you must install
vlan
load kernel module
Create a new interface that is a member of a specific VLAN, VLAN id 100
We use the physical interface eth0 in this example. This command will add an additional interface next to the interfaces which have been configured already
Assign an address to the new interface:
To make this setup permanent. Add the module to the kernel on boot
Create the interface and make it available when the system boots. Add the following lines to
/etc/network/interfaces