Cisco Systems 3750E Switchport mode private-vlan promiscuous, Add remove secondaryvlanlist, 16-13

Models: 3750E

1 1236
Download 1236 pages 40.08 Kb
Page 415
Image 415

Chapter 16 Configuring Private VLANs

Configuring Private VLANs

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:

 

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 promiscuous

Configure the Layer 2 port as a private-VLAN

 

 

 

promiscuous port.

Step 4

 

 

switchport private-vlan mapping primary_vlan_id

Map the private-VLAN promiscuous port to a primary

 

{add remove} secondary_vlan_list

VLAN and to selected secondary VLANs.

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.

 

 

 

 

When you configure a Layer 2 interface as a private-VLAN promiscuous port, note this syntax information:

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.

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

Use the show vlan private-vlanor the show interface status privileged EXEC command to display primary and secondary VLANs and private-VLAN ports on the switch.

 

 

Catalyst 3750-E and 3560-E Switch Software Configuration Guide

 

 

 

 

 

 

OL-9775-02

 

 

16-13

 

 

 

 

 

Page 415
Image 415
Cisco Systems 3750E manual Switchport mode private-vlan promiscuous, Switchport private-vlan mapping primaryvlanid, 16-13