Cisco Catalyst 3120 Command Reference Manual page 377

Catalyst blade switch 3120 for hp command reference
Hide thumbs Also See for Catalyst 3120:
Table of Contents

Advertisement

Chapter 2
Cisco Catalyst Blade Switch 3120 for HP Cisco IOS Commands
Examples
This example shows how to configure VLAN 20 as a primary VLAN, VLAN 501 as an isolated VLAN,
and VLANs 502 and 503 as community VLANs, and to associate them in a private VLAN:
Switch# configure terminal
Switch(config)# vlan 20
Switch(config-vlan)# private-vlan primary
Switch(config-vlan)# exit
Switch(config)# vlan 501
Switch(config-vlan)# private-vlan isolated
Switch(config-vlan)# exit
Switch(config)# vlan 502
Switch(config-vlan)# private-vlan community
Switch(config-vlan)# exit
Switch(config)# vlan 503
Switch(config-vlan)# private-vlan community
Switch(config-vlan)# exit
Switch(config)# vlan 20
Switch(config-vlan)# private-vlan association 501-503
Switch(config-vlan)# end
You can verify your setting by entering the show vlan private-vlan or show interfaces status privileged
EXEC command.
Related Commands
Command
show interfaces
show vlan
switchport mode private-vlan
OL-12248-01
Description
status
Displays the status of interfaces, including the VLANs to which they
belong.
private-vlan
Displays the private VLANs and VLAN associations configured on
the switch or switch stack.
Configures a private-VLAN port as a host port or promiscuous port.
Cisco Catalyst Blade Switch 3120 for HP Command Reference
private-vlan
2-349

Advertisement

Table of Contents
loading

Table of Contents