16 switchport access vlan – PLANET WGSW-50040 User Manual
Page 129

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#show vlan summary
The max. vlan entrys: 4094
Existing Vlans:
Universal Vlan:
1 12 13 15 16 22
Total Existing Vlans is:6
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
7.1.16 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.