12-11
Cisco ME 3400 Ethernet Access Switch Software Configuration Guide
OL-9639-07
Chapter 12 Configuring Private VLANs
Configuring Private VLANs
Switch(config-vlan)#
private-vlan community
Switch(config-vlan)#
exit
Switch(config)#
vlan 20
Switch(config-vlan)#
private-vlan association 501-503
Switch(config-vlan)#
end
Switch(config)#
show vlan private vlan
Primary Secondary Type Ports
------- --------- ----------------- ------------------------------------------
20 501 isolated
20 502 community
20 503 community
20 504 non-operational
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:
Note
Isolated and community VLANs are both secondary 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 fastethernet0/22
Switch(config-if)#
no shutdown
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 fastethernet0/22 switchport
Name: Fa0/22
Switchport: Enabled
Administrative Mode: private-vlan host
Operational Mode: private-vlan host
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: native
Negotiation of Trunking: Off
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
no shutdown
Enable the port, if necessary. By default, UNIs and ENIs
are disabled, and NNIs are enabled.
Step 4
switchport mode private-vlan
host
Configure the Layer 2 port as a private-VLAN host port.
Step 5
switchport private-vlan host-association
primary_vlan_id
secondary_vlan_id
Associate the Layer 2 port with a private VLAN.
Step 6
end
Return to privileged EXEC mode.
Step 7
show interfaces
[
interface-id
]
switchport
Verify the configuration.
Step 8
copy running-config startup config
(Optional) Save your entries in the switch startup
configuration file.
Содержание ME 3400 Series
Страница 40: ...Contents xl Cisco ME 3400 Ethernet Access Switch Software Configuration Guide OL 9639 07 ...
Страница 44: ...xliv Cisco ME 3400 Ethernet Access Switch Software Configuration Guide OL 9639 07 Preface ...
Страница 1138: ...Index IN 52 Cisco ME 3400 Ethernet Access Switch Software Configuration Guide OL 9639 07 ...