47-26
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS 15.2(5)Ex
Chapter 47 Configuring Private VLANs
Configuring PVLANs
Configuring a Layer 2 EtherChannel as a PVLAN Host Port
To configure a Layer 2 EtherChannel as a PVLAN host port, perform this task:
This example shows how to configure interface port channel 63 as a PVLAN host port and to verify the
configuration:
Switch#
configure terminal
Switch(config)#
interface port-channel 63
Switch(config-if)#
switchport mode private-vlan host
Switch(config-if)#
switchport private-vlan host-association 202 440
Switch(config-if)#
end
Switch#
show interfaces port-channel 63 switchport
Name: Po63
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)
Voice VLAN: none
Appliance trust: none
Administrative Private Vlan
Host Association: 202 (VLAN0202) 440 (VLAN0440)
Promiscuous Mapping: none
Trunk encapsulation : dot1q
Trunk vlans:
Operational private-vlan(s):
202 (VLAN0202) 440 (VLAN0440)
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001
Capture Mode Disabled
Capture VLANs Allowed: ALL
Command
Purpose
Step 1
Switch#
configure terminal
Enters global configuration mode.
Step 2
Switch(config)#
interface port
-
channel
interface
-
number
Specifies the LAN interface to configure.
Step 3
Switch(config-if)#
switchport mode private-vlan
{
host
|
promiscuous
|
trunk promiscuous
|
trunk
[
secondary
]}
Configures a Layer 2 Etherchannel as a
PVLAN host port.
Step 4
Switch(config-if)# [
no
]
switchport private-vlan
host-association
primary_vlanb_ID
secondary_vlan_ID
Associates the Layer 2 interface with a
PVLAN.
You can use the
no
keyword to delete all
associations from the primary VLAN.
Step 5
Switch(config-if)#
end
Exits configuration mode.
Step 6
Switch#
show interface port-channel
interface-number
switchport
Verifies the configuration.
Содержание Catalyst 4500 Series
Страница 2: ......
Страница 4: ......
Страница 2086: ...Index IN 46 Software Configuration Guide Release IOS XE 3 9 0E and IOS 15 2 5 E ...