N-Tron 7014TX Switch User Manual


 
6/28/2007 page 117 of 145
VLAN Related Commands
Add VLAN Entry
Command Name
vlan add
Description To create a Port based Virtual LAN
Syntax vlan add <vlan id> <mgmt port>
<at least one of: [-untagged <port mask>] or [-tagged <port mask>]>
[-name <vlan name>]
[-admit <tagged-only|all>] [-mirror <port-no>]
Parameters
vlan-id
Unique vlan id (2 ~ 4094).
mgmt port
Either 1 or 0. ‘1’ sets this vlan as a management vlan.
vlan name
Unique vlan name, which can be used to identify the
group. The name may include characters and numbers,
but should start with an alphabetic. Maximum number of
characters must not exceed 25.
-untagged port mask
List of ports that are to be included under this VLAN. Commas
can be used to separate individual ports (2,5,9) and the range can
be specified using a hyphen (10-15). The port numbers cannot
exceed the maximum number of ports on the board.
-tagged port mask
Tagged port mask values can be specified in the same way as that of
an untagged port mask.
-admit
Allow tagged-only or all (untagged and tagged) packets.
port-no
Optional parameter. Port number that data should be mirrored to.
Examples
N-TRON/Admin#[1]> vlan add 2 1 –untagged 1-12 –name vlan2 –
admit all
N-TRON/Admin#[2]> vlan add 3 1 –tagged 13-24 –name “vlan 3” –
admit tagged-only
NOTES Ensure that the ports included in the tagged port list do not exist in the untagged
ports-list field. Changing anything on a VLAN will turn on RSTP on all VLANS as
a precautionary measure.
Show List of Configured VLANs
Command Name
vlan show config
Description Displays the list of configured VLANS
Syntax
vlan show config
Parameters
None
Examples
N-TRON/Admin#[1]> vlan show config
NOTES It displays the information of the default vlan if no vlan is configured.
Display Information of a particular VLAN
Command Name
vlan get info
Description Displays the details of a particular VLAN.
Syntax vlan get info <vlan-id>
Parameters
vlan-id
Vlan id of the existing vlan whose individual
configuration is required.
Examples
N-TRON/Admin#[1]> vlan get info 2
vlan ID : 2
vlan Name : “vlan 2”
port list : 1-4,11
tagged port mask: 10-15
management port : NO
NOTES