Configuring A Layer 2 Interface As A Private Vlan Host Port - Cisco 7609 Configuration Manual

Cisco ios software configuration guide—12.1e
Hide thumbs Also See for 7609:
Table of Contents

Advertisement

Configuring Private VLANs

Configuring a Layer 2 Interface as a Private VLAN Host Port

To configure a Layer 2 interface as a private VLAN host port, perform this task:
Command
Step 1
Router(config)# interface type
Step 2
Router(config-if)# switchport
Step 3
Router(config-if)# switchport mode private-vlan
{host | promiscuous}
Router(config-if)# no switchport mode
private-vlan
Step 4
Router(config-if)# switchport private-vlan
host-association primary_vlan_ID
secondary_vlan_ID
Router(config-if)# no switchport private-vlan
host-association
Step 5
Router(config-if)# end
Step 6
Router# show interfaces [type
switchport
1.
type = ethernet, fastethernet, gigabitethernet, or tengigabitethernet
This example shows how to configure interface FastEthernet 5/1 as a private VLAN host port and verify
the configuration:
Router# configure terminal
Router(config)# interface fastethernet 5/1
Router(config-if)# switchport mode private-vlan host
Router(config-if)# switchport private-vlan host-association 202 303
Router(config-if)# end
Router# show interfaces fastethernet 5/1 switchport
Name: Fa5/1
Switchport: Enabled
Administrative Mode: private-vlan host
Operational Mode: down
Administrative Trunking Encapsulation: negotiate
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Administrative private-vlan host-association: 202 (VLAN0202) 303 (VLAN0303)
Administrative private-vlan mapping: none
Operational private-vlan: none
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001
Capture Mode Disabled
Cisco 7600 Series Router Cisco IOS Software Configuration Guide—12.1E
10-8
Purpose
1
slot/port
Selects the LAN port to configure.
Configures the LAN port for Layer 2 switching:
Configures the Layer 2 port as a private VLAN host port.
Clears private VLAN port configuration.
Associates the Layer 2 port with a private VLAN.
Clears the association.
Exits configuration mode.
1
slot/port]
Verifies the configuration.
Chapter 10
You must enter the switchport command once
without any keywords to configure the LAN port as a
Layer 2 interface before you can enter additional
switchport commands with keywords.
Required only if you have not entered the switchport
command already for the interface.
Configuring Private VLANs
78-14064-04

Advertisement

Table of Contents
loading

This manual is also suitable for:

7600 series

Table of Contents