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

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

Advertisement

Chapter 18
Configuring Private VLANs
Switch(config-vlan)# end
Switch(config)# show vlan private vlan
Primary Secondary Type
------- --------- ----------------- ------------------------------------------
20
20
20
20

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:
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 host
Step 4
switchport private-vlan host-association
primary_vlan_id secondary_vlan_id
Step 5
end
show interfaces [interface-id] switchport
Step 6
Step 7
copy running-config startup config
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
OL-21521-01
501
isolated
502
community
503
community
504
non-operational
Ports
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 host port.
Associate the Layer 2 port with a private VLAN.
Return to privileged EXEC mode.
Verify the configuration.
(Optional) Save your entries in the switch startup
configuration file.
Catalyst 3750-X and 3560-X Switch Software Configuration Guide
Configuring Private VLANs
18-11

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Catalyst 3560-x

Table of Contents