1248
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
OL-27880-02
Chapter S Commands
switchport private-vlan host-association
switchport private-vlan host-association
To define a private VLAN association for an isolated or community port, use the
switchport private-vlan
host-association
command. To remove the private VLAN association from the port, use the
no
form of
this command.
switchport private-vlan host-association
{
primary-vlan-id
} {
secondary-vlan-id
}
no switchport private-vlan host-association
Syntax Description
Command Default
None
Command Modes
Interface configuration mode
Virtual Ethernet interface configuration mode
Command History
Usage Guidelines
There is no run-time effect on the port unless it is in private VLAN-host mode. If the port is in private
VLAN-host mode but neither of the VLANs exist, the command is allowed but the port is made inactive.
The port also may be inactive when the association between the private VLANs is suspended.
The secondary VLAN may be an isolated or community VLAN.
See the
private-vlan
command for more information on primary VLANs, secondary VLANS,
and
isolated or community ports.
Examples
This example shows how to configure a Layer 2 host private VLAN port with a primary VLAN (VLAN
18) and a secondary VLAN (VLAN 20):
switch(config-if)#
switchport private-vlan host-association 18 20
This example shows how to remove the private VLAN association from the port:
switch(config-if)#
no switchport private-vlan host-association
This example shows how to configure a virtual Ethernet interface host private VLAN port with a primary
VLAN (VLAN 5) and a secondary VLAN (VLAN 23):
switch#
configure terminal
switch(config)#
interface vethernet 1
switch(config-if)#
switchport private-vlan host-association 5 23
primary-vlan-id
Number of the primary VLAN of the private VLAN relationship. The range
is from 1 to 3967 and 4048 to 4093.
secondary-vlan-id
Number of the secondary VLAN of the private VLAN relationship. The
range is from 1 to 3967 and 4048 to 4093.
Release
Modification
5.2(1)N1(1)
This command was introduced.
Содержание Nexus 5500 Series
Страница 4: ...4 Cisco Nexus 5500 Series NX OS Layer 2 Interfaces Command Reference OL 27880 02 Chapter ...
Страница 6: ...18 Cisco Nexus 5500 Series NX OS Layer 2 Interfaces Command Reference OL 27880 02 Chapter ...
Страница 36: ...130 Cisco Nexus 5500 Series NX OS Layer 2 Interfaces Command Reference OL 27880 02 Chapter C Commands connect ...
Страница 50: ...144 Cisco Nexus 5500 Series NX OS Layer 2 Interfaces Command Reference OL 27880 02 Chapter D Commands dvs name ...
Страница 124: ...1118 Cisco Nexus 5500 Series NX OS Layer 2 Interfaces Command Reference OL 27880 02 Chapter M Commands mvr type ...
Страница 126: ...1120 Cisco Nexus 5500 Series NX OS Layer 2 Interfaces Command Reference OL 27880 02 Chapter M Commands mvr vlan ...
Страница 131: ...1125 Cisco Nexus 5500 Series NX OS Layer 2 Interfaces Command Reference OL 27880 02 Chapter N Commands no switchport ...
Страница 132: ...1126 Cisco Nexus 5500 Series NX OS Layer 2 Interfaces Command Reference OL 27880 02 Chapter N Commands no switchport ...
Страница 158: ...1152 Cisco Nexus 5500 Series NX OS Layer 2 Interfaces Command Reference OL 27880 02 Chapter R Commands revision ...
Страница 438: ...1432 Cisco Nexus 5500 Series NX OS Layer 2 Interfaces Command Reference OL 27880 02 Chapter U Commands udld Ethernet ...