181
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 Ethernet1/1 Ethernet1/2
Ethernet1/3 Ethernet1/4
Ethernet1/9 Ethernet1/10
Ethernet1/11 Ethernet1/12
2 VLAN0002 Static ENET Ethernet1/5 Ethernet1/6
Ethernet1/7 Ethernet1/8
Switch#sh vlan summary
The max. vlan entrys: 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)
6.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
Default:
All ports belong to VLAN1 by default.