180
Community types.
Switch(Config)#vlan 100
Switch(Config-Vlan100)#private-vlan primary
Switch(Config-Vlan100)#exit
Switch(Config)#vlan 200
Switch(Config-Vlan200)#private-vlan isolated
Switch(Config-Vlan200)#exit
Switch(Config)#vlan 300
Switch(Config-Vlan300)#private-vlan community
Switch(Config-Vlan300)#exit
6.1.3.3 private-vlan association
Command: private-vlan association <secondary-vlan-list>
no private-vlan association
Function:
Set Private VLAN association; the “
no private-vlan association
” command
cancels Private VLAN association.
Parameter: <secondary-vlan-list>
Sets Secondary VLAN list which is associated to
Primary VLAN. There are two types of Secondary VLAN: Isolated VLAN and Community
VLAN. Users can set multiple Secondary VLANs by “;”.
Command mode:
VLAN Mode
Default:
There is no Private VLAN association by default.
Usage Guide:
This command can only used for Private VLAN. The ports in Secondary
VLANs which are associated to Primary VLAN can communicate to the ports in Primary
VLAN. Before setting Private VLAN association, three types of Private VLANs should
have no member ports; the Private VLAN with Private VLAN association can’t be deleted.
When users delete Private VLAN association, all the member ports in the Private VLANs
whose association is deleted are removed from the Private VLANs.
Example:
Associate Isolated VLAN200 and Community VLAN300 to Primary VLAN100.
Switch(Config-Vlan100)#private-vlan association 200;300
6.1.3.4 show vlan
Command: show vlan [brief| summary] [id <vlan-id>] [name <vlan-name>]
Function:
Display detailed information for all VLANs or specified VLAN.
Parameter: brief
stands for brief information;
summary
for VLAN statistics;
<vlan-id>
for VLAN ID of the VLAN to display status information, the valid range is 1 to 4094;
<vlan-name>
is the VLAN name for the VLAN to display status information, valid length
is 1 to 11 characters.
Command mode:
Admin Mode