[clug] Debian: VLAN/802.11Q in /etc/network/interfaces?

Alex Satrapa grail at goldweb.com.au
Wed Aug 4 23:52:51 MDT 2010


Noob question time =(

In /etc/network/interfaces I know you can specify a basic interface like so:

  iface eth0 inet static
    address 192.168.1.100
    netmask 255.255.255.0
    gateway 192.168.1.1


And I can configure an "alias" like so:

  iface eth0:0 inet static
    address 192.168.2.1
    netmask 255.255.255.0

But how do I specify a VLAN?

In the shell, I have to do stuff like:

  [root at here]# vconfig add eth0 123
  [root at here]# ifconfig eth0.123 10.4.4.1 netmask 255.255.255.0

Is there a way I can specify this in /etc/ somewhere so the machine will come up with the same interfaces when it reboots?

Alex



More information about the linux mailing list