113
enable
show vlan VLANID
This command displays the VLAN configurations.
enable
configure terminal
This command changes the node to configure node.
configure
vlan <1~4094>
This command enables a VLAN and enters the
VLAN node.
configure
no vlan <1~4094>
This command deletes a VLAN.
vlan
show
This command displays the current VLAN
configurations.
vlan
name STRING
This command assigns a name for the specific
VLAN.
The VLAN name should be the combination of the
digit or the alphabet or hyphens (-) or underscores
(_).
The maximum length of the name is 16 characters.
vlan
no name
This command configures the vlan name to default.
Note: The default vlan name is “VLAN”+vlan_ID,
VLAN1, VLAN2,…
vlan
add PORTLISTS
This command add a port or a range of ports to the
VLAN.
vlan
fixed PORTLISTS
This command assigns ports for permanent member
of the VLAN.
vlan
no fixed PORTLISTS
This command removes all fixed member from the
VLAN.
vlan
tagged PORTLISTS
This command assigns ports for tagged member of
the VLAN group. The ports should be one/some of
the permanent members of the VLAN.
vlan
no tagged PORTLISTS This command removes all tagged member from the
VLAN.
vlan
untagged PORTLISTS This command assigns ports for untagged member of
the VLAN group. The ports should be one/some of
the permanent members of the VLAN.
vlan
no untagged
PORTLISTS
This command removes all untagged member from
the VLAN.
configure
interface IFNAME
This command enters the interface configure node.
interface
pvid <1-4094>
This command configures a default VLAN ID for the
port.
interface
no pvid
This command resets the port default VLAN to
default value(1).
Example:
L2SWITCH#configure terminal
L2SWITCH(config)#vlan 2
L2SWITCH(config-vlan)#fixed 1-5
L2SWITCH(config-vlan)#untagged 1-3