17.
Virtual LANs (VLANs)
MN700004 Rev 01
203
======================================================================
Name |VTag| Tagged ports | Untagged ports
--------------------+----+---------------------+---------------
default |1 | |1/1/1-1/1/26
Vlan_19 |19 | |1/1/1-1/1/3
Vlan_20 |20 | |1/1/1-1/1/3
config
The
config
command, in VLAN Configuration mode, changes the mode to Configuration
mode of a specific VLAN. You can also use this command in a specific VLAN Configuration
mode to switch the Configuration mode to another specific VLAN.
Commands available in a specific VLAN Configuration mode are listed in Table 17-3. These
commands are described below.
Command Syntax
device-name
(config vlan)#
config
NAME1
device-name
(config-vlan
NAME1
)#
config
NAME2
Argument Description
NAME1, NAME2
Represent the names of existing VLANs
Examples
1. Changing from the global VLAN configuration mode to a specific VLAN Configuration
mode, as indicated by the prompt-line that follows:
device-name
(config vlan)#
config vlan_52
device-name
(config-vlan vlan_52)#
2. Switching the configuration mode from one specific VLAN to another, as indicated by the
prompt-line that follows:
device-name
(config-vlan vlan_52)#
config XYZ
device-name
(config-vlan XYZ)#
add ports
The
add ports
command, in Specific VLAN Configuration mode, adds the specified port(s)
as either tagged or untagged ports. The command assigns the port the ability to handle the
VLAN tagging in the Ethernet packet in ingress and egress. Tagged ports look for a VLAN
tag that is assigned in ingress packets. In egress packets, the VLAN is assigned to the packet
according to the configuration.
Command Syntax
device-name
(config-vlan
VLAN-NAME
)#
add ports
PORT-LIST
{
tagged
|
untagged
}
Argument Description
PORT-LIST
One or more port numbers, specified by the following options:
•
UU/SS/PP – (unit, slot and port number), e.g. – 1/1/8 specifying a single port;