VLAN and SWITCH
U
SER
G
UIDE
128
VLAN
AND
SWITCH
Imola supports the 802.1q protocol which allows to create completely independent virtual LANs on
a single physical link. The header of LAN packets is modified so including a tag which identifies the
VLAN and a priority value associated with the packet. A maximum of 4096 different VLANs can be
handled, each one having a maximum of 8 priority levels.
In order to configure a VLAN, with a specific tag, the syntax is:
set vlan add vid <vid> interface eth0|eth1
For Imola-LX models the interface is eth0 and for other models it is eth1.
The command creates a VLAN device with notation:
<interface>.<vid>
For example: eth1.100 to which it is possible to associate IP address and Netmask as follows:
set vlan <vlan-device> ipaddr <value> netmask <value>
It is also available a command to map one more DSCP values (Diffserv Code Point) on a COS value
(Class of Service) of 802.1p protocol:
set vlan <vlan-device> map-to-cos <cos> dscp <dscp_0 ... dscp_7>
In order to cancel a VLAN the command is:
set vlan rem <vlan-device>
In order to remove all the VLANs the command is:
set no-vlan
In order to display all the configured VLANs and their statistics, the command is:
show interface vlan status
root@Imola >
show interface vlan status
eth0.100 VID: 100 REORDER_HDR: 1 dev->priv_flags: 1
total frames received: 0
total bytes received: 0
Broadcast/Multicast Rcvd: 0
total frames transmitted: 0
total bytes transmitted: 0
total headroom inc: 0
total encap on xmit: 0
Device: eth0
INGRESS priority mappings: 0:0 1:0 2:0 3:0 4:0 5:0 6:0 7:0
EGRESSS priority mappings:
EGRESSS dscp mappings:
The switch inside the router Imola has 5 Fast Ethernet 10/100/1000 auto sensitive ports. It is
connected to the MAC of the Imola‟s CPU identified by eth1 Ethernet interface. In Imola LX model,
there are 4 ports and they are connected to MAC of CPU identified by eth0.
It can be used in Transparent or Controlled mode.