Page 50
6.1.26 VLAN Table (VLAN)
The
vlan
command adds and displays the configured VLANs on the switch.
A list of options is displayed when the
vlan -h
command is entered.
> vlan -h
Description:
vlan - vlan configuration
Syntax:
vlan [-h]
vlan -s
vlan -add vlanId [-vname vlanName]
vlan -rem vlanList
vlan -mod vlanId -vname vlanName
Switches:
-add add a VLAN ID, [vlanId]: {1..4095}
-h display help information
-mod modify an existing VLAN ID, [vlanId]: {1..4095}
-rem remove selected VLANs, [vlanList]: {1..4095|all}
-s show configuration
-vname VLAN name, [vlanName]: 1-64 ASCII characters
>
The options available using the
vlan
command are shown below.
The
-add
switch add a new VLAN instance.
The
-h
switch displays the help screen presented above. It is static and provides help information for the
specific command.
The
-mod
switch modifies the name of an existing VLAN instance.
The
-rem
switch deletes one or more existing VLAN instances.
The
-s
switch displays the VLAN configuration on the switch.
The
-vname
switch specifies a VLAN ID name.
To configure a VLAN instance, use the following command.
> vlan -add 200 -vname Video
> vlan -s
VLAN ID 1 “VLAN1”
VLAN ID 100 “data”
VLAN ID 200 “Video”
>
Use the
switchport
command to assign the VLAN IDs to specific port numbers.