153
Command mode:
Admin Mode
Usage Guide:
If no
<vlan-id>
or
<vlan-name>
is specified, then information for all
VLANs in the switch will be displayed.
Example:
Display the status for the current VLAN; display statistics for the current VLAN.
Switch#show vlan
VLAN Name Type Media Ports
---- ------------ ---------- --------- ----------------------------------------
1 default Static ENET Ethernet0/0/1
Ethernet0/0/2
Ethernet0/0/3
Ethernet0/0/4
Ethernet0/0/9
Ethernet0/0/10
Ethernet0/0/11 Ethernet0/0/12
2 VLAN0002 Static ENET Ethernet0/0/5 Ethernet0/0/6
Ethernet0/0/7
Ethernet0/0/8
Switch#sh vlan summary
The max vlan entries: 4094
Universal Vlan:
1 2
Total Existing Vlans is: 2
Displayed information
Explanation
VLAN
VLAN number
Name VLAN
name
Type
VLAN type, statically configured or
dynamically learned.
Media
VLAN interface type: Ethernet
Ports
Access port within a VLAN
Universal Vlan
Universal VLAN.
Dynamic Vlan
Dynamic VLAN (not shown in this example)
5.1.3.5 switchport access vlan
Command: switchport access vlan <vlan-id>
no switchport access vlan
Function:
Add the current Access port to the specified VLAN. The “
no switchport
access vlan
” command deletes the current port from the specified VLAN, and the port
will be partitioned to VLAN1.
Parameter: <vlan-id>
is the VID for the VLAN to be added the current port, valid range
is 1 to 4094.
Command mode:
Interface Mode