EasyManua.ls Logo

Cisco Catalyst 3750-E - Page 481

Cisco Catalyst 3750-E
1414 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
16-11
Catalyst 3750-E and 3560-E Switch Software Configuration Guide
OL-9775-08
Chapter 16 Configuring Private VLANs
Configuring Private VLANs
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, to associate them in a private VLAN, and to verify the
configuration:
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
Switch(config)# show vlan private vlan
Primary Secondary Type Ports
------- --------- ----------------- ------------------------------------------
20 501 isolated
20 502 community
20 503 community
20 504 non-operational
Configuring a Layer 2 Interface as a Private-VLAN Host Port
Beginning in privileged EXEC mode, follow these steps to configure a Layer 2 interface as a
private-VLAN host port and to associate it with primary and secondary VLANs:
Note Isolated and community VLANs are both secondary VLANs.
Command Purpose
Step 1
configure terminal Enter global configuration mode.
Step 2
interface interface-id Enter interface configuration mode for the Layer 2
interface to be configured.
Step 3
switchport mode private-vlan host Configure the Layer 2 port as a private-VLAN host port.
Step 4
switchport private-vlan host-association
primary_vlan_id secondary_vlan_id
Associate the Layer 2 port with a private VLAN.
Step 5
end Return to privileged EXEC mode.
Step 6
show interfaces [interface-id] switchport Verify the configuration.
Step 7
copy running-config startup config (Optional) Save your entries in the switch startup
configuration file.

Table of Contents

Other manuals for Cisco Catalyst 3750-E

Related product manuals