|Newer page:||version 6||Last edited on Tuesday, July 4, 2006 12:44:34 am||by AristotlePagaltzis|
|Older page:||version 3||Last edited on Sunday, July 2, 2006 10:22:35 pm||by PerryLorier||Revert|
@@ -1,37 +1,40 @@
are fairly trivial to set up. There are some vlan tools you'
ll need ('apt
- get install vlan' on a Debian based system)
+ under are fairly trivial to set up. ll need - .
ll need to make sure your switch is passing vlan
- tagged frames to
+ ll need - you .
Once you have the tools installed, you can
add a vlan to a physical interface with the
+ < >eth0 1234 eth0 2000</ >
Will add two vlans, 1234 and 2000,
to the physical eth0
device , and create two new interfaces, eth0
. 1234 and eth0.2000. These
interfaces still need to be configured with ifconfig
+ to the physical device. interfaces.
Note that you'll probably have to stop using the raw physical device,
and just use the vlan
+ and interfaces
!! VLANs and
Debian 's interfaces file
Debian has some fairly nice integration with
the vlan tools. You have a choice
of methods to use
+ the of :
This one will work out which ethernet device you are using based on the stub of the device name. Don't get it confused with an aliased ip address though!
-iface eth0.1234 inet dhcp
+ auto eth0.1234
+ iface eth0.1234 inet dhcp
-This one renames the interface to something easier to read, but you need to specify which
device you are using:
iface vlan1234 inet dhcp
+ This one renames the interface to something easier to read, but you need to specify which device you are using:
Both formats also have an option to have the
- padded to four digits, eg: eth0.1 or
eth0 .0001, vlan1 or vlan0001.
+ vlan- eth0
- interfaces manpage for more information
+ the -
cannot mix differing formats within the same machine (even using one form in <tt>interface</tt> and a different form from some other configuration system)
+__Note:__ cannot mix differing formats within the same machine (even using one form in <tt>interface</tt> and a different form from some other configuration system)