Configuring A Layer 2 Interface As A Pvlan Promiscuous Port - Cisco 4500M Software Manual

Software guide
Table of Contents

Advertisement

Chapter 36
Configuring Private VLANs
This example shows how to associate community VLANs 303 through 307 and 309 and isolated VLAN
440 with primary VLAN 202 and verify the configuration:
Switch# configure terminal
Switch(config)# vlan 202
Switch(config-vlan)# private-vlan association 303-307,309,440
Switch(config-vlan)# end
Switch# show vlan private-vlan
Primary Secondary Type
------- --------- ----------------- ------------------------------------------
202
202
202
202
202
202
202
The secondary VLAN 308 has no associated primary VLAN.
Note

Configuring a Layer 2 Interface as a PVLAN Promiscuous Port

To configure a Layer 2 interface as a PVLAN promiscuous port, perform this task:
Command
Step 1
Switch# configure terminal
Step 2
Switch(config)# interface {fastethernet |
gigabitethernet | tengigabitethernet} slot / port
Step 3
Switch(config-if)# switchport mode private-vlan
{host | promiscuous | trunk}
Step 4
Switch(config-if)# [no] switchport private-vlan
mapping primary_vlan_ID { secondary_vlan_list |
add secondary_vlan_list | remove
secondary_vlan_list }
Step 5
Switch(config-if)# end
Step 6
Switch# show interfaces {fastethernet |
gigabitethernet | tengigabitethernet} slot / port
switchport
When you configure a Layer 2 interface as a PVLAN promiscuous port, note the following:
OL-6696-01
Use the remove keyword with a secondary_vlan_list to clear the association between secondary
VLANs and a primary VLAN.
The command does not take effect until you exit VLAN configuration submode.
303
community
304
community
305
community
306
community
307
community
309
community
440
isolated
308
community
The secondary_vlan_list parameter cannot contain spaces. It can contain multiple comma-separated
items. Each item can be a single PVLAN ID or a hyphenated range of PVLAN IDs.
Enter a secondary_vlan_list or use the add keyword with a secondary_vlan_list to map the
secondary VLANs to the PVLAN promiscuous port.
Interfaces
Purpose
Enters global configuration mode.
Specifies the LAN interface to configure.
Configures a Layer 2 interface as a PVLAN promiscuous
port.
Maps the PVLAN promiscuous port to a primary VLAN
and to selected secondary VLANs.
You can use the no keyword to delete all associations
from the primary VLAN.
Exits configuration mode.
Verifies the configuration.
Software Configuration Guide—Release 12.2(25)EW
How to Configure PVLANs
36-7

Advertisement

Table of Contents
loading

This manual is also suitable for:

4500 series

Table of Contents