16-12
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 an interface as a private-VLAN host port, associate it with a
private-VLAN pair, and verify the configuration:
Switch#
configure terminal
Switch(config)#
interface gigabitethernet1/0/22
Switch(config-if)#
switchport mode private-vlan host
Switch(config-if)#
switchport private-vlan host-association 20 501
Switch(config-if)#
end
Switch#
show interfaces gigabitethernet1/0/22 switchport
Name: Gi1/0/22
Switchport: Enabled
Administrative Mode: private-vlan host
Operational Mode: private-vlan host
Administrative Trunking Encapsulation: negotiate
Operational Trunking Encapsulation: native
Negotiation of Trunking: Off
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Administrative Native VLAN tagging: enabled
Voice VLAN: none
Administrative private-vlan host-association: 20 501
Administrative private-vlan mapping: none
Administrative private-vlan trunk native VLAN: none
Administrative private-vlan trunk Native VLAN tagging: enabled
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:
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
{
add
|
remove
}
secondary_vlan_list
Map the private-VLAN promiscuous port to a primary
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.
Содержание Catalyst 3750-E Series
Страница 48: ...Contents xlviii Catalyst 3750 E and 3560 E Switch Software Configuration Guide OL 9775 08 ...
Страница 52: ...lii Catalyst 3750 E and 3560 E Switch Software Configuration Guide OL 9775 08 Preface ...
Страница 1414: ...Index IN 58 Catalyst 3750 E and 3560 E Switch Software Configuration Guide OL 9775 08 ...