Installa la nostra toolbar!
Howto / Linux
addthis
Debian VLAN 8021q Routing HowTo
Author: Katrame
Visits: 4176
Date: 23.04.2007

On this little tutorial we will show how to setup inter VLAN routing on debian with cisco switch.
The purpose of this brief is to enable 2 or much more subnet networks to connect to each other
allowing traffic to be routed from a VLAN to another VLAN.
VLAN could be considered as virtual lan, we can immagine to have VLAN 1 on 10.0.1.0/24
and VLAN 2 on 10.0.2.0/24, this is allowed by the 802.1q modules that we need to enable on startup.

First of all we have to get vlan support:

# apt-get install vlan

After that we can try to get up 802.1q module:

# modprobe 8021q
this module fill a "tag" on the etherrnet frame that identify VLAN id, and permit packets to
go on the right place through the switch ports, we are talking infact of Layer 2 routing.

now we can setup vlan interfaces with "vconfig" command:

vconfig add vlan1
vconfig add vlan2


and we can set also /etc/network/interfaces

# VLAN 1
iface vlan1 inet static
address 10.0.1.254
netmask 255.255.255.0
vlan_raw_device eth1

# VLAN 2
iface vlan2 inet static
address 10.0.2.254
netmask 255.255.255.0
vlan_raw_device eth1





Page 1 of 2 >>


Se vuoi discutere con noi su questo articolo o comunque vuoi porci delle domande usa il nostro Forum

COMMENTI

Aggiungi un commento! +
(I commenti verranno moderati prima della pubblicazione)



Top