Configuring A Layer 2 Interface As A Private-Vlan Promiscuous Port - Cisco Catalyst 3750-X Software Configuration Manual

Hide thumbs Also See for Catalyst 3750-X:
Table of Contents

Advertisement

Configuring Private VLANs
Administrative private-vlan trunk encapsulation: dot1q
Administrative private-vlan trunk normal VLANs: none
Administrative private-vlan trunk private VLANs: none
Operational private-vlan:
20 501
<output truncated>

Configuring a Layer 2 Interface as a Private-VLAN Promiscuous Port

Beginning in privileged EXEC mode, follow these steps to configure a Layer 2 interface as a
private-VLAN promiscuous port and map it to primary and secondary VLANs:
Isolated and community VLANs are both secondary VLANs.
Note
Command
Step 1
configure terminal
Step 2
interface interface-id
Step 3
switchport mode private-vlan promiscuous
Step 4
switchport private-vlan mapping primary_vlan_id
{add | remove} secondary_vlan_list
Step 5
end
show interfaces [interface-id] switchport
Step 6
Step 7
copy running-config startup config
When you configure a Layer 2 interface as a private-VLAN promiscuous port, note this syntax
information:
This example shows how to configure an interface as a private-VLAN promiscuous port and map it to a
private VLAN. The interface is a member of primary VLAN 20 and secondary VLANs 501 to 503 are
mapped to it.
Switch# configure terminal
Switch(config)# interface gigabitethernet1/0/2
Switch(config-if)# switchport mode private-vlan promiscuous
Switch(config-if)# switchport private-vlan mapping 20 add 501-503
Switch(config-if)# end
Catalyst 3750-X and 3560-X Switch Software Configuration Guide
18-12
The secondary_vlan_list parameter cannot contain spaces. It can contain multiple comma-separated
items. Each item can be a single private-VLAN ID or a hyphenated range of private-VLAN IDs.
Enter a secondary_vlan_list, or use the add keyword with a secondary_vlan_list to map the
secondary VLANs to the private-VLAN promiscuous port.
Use the remove keyword with a secondary_vlan_list to clear the mapping between secondary
VLANs and the private-VLAN promiscuous port.
Chapter 18
Purpose
Enter global configuration mode.
Enter interface configuration mode for the Layer 2
interface to be configured.
Configure the Layer 2 port as a private-VLAN
promiscuous port.
Map the private-VLAN promiscuous port to a primary
VLAN and to selected secondary VLANs.
Return to privileged EXEC mode.
Verify the configuration.
(Optional) Save your entries in the switch startup
configuration file.
Configuring Private VLANs
OL-21521-01

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Catalyst 3560-x

Table of Contents