Cisco Nexus 7000 Series Configuration Manual page 88

Nx-os layer 2 switching
Hide thumbs Also See for Nexus 7000 Series:
Table of Contents

Advertisement

Configuring a Layer 2 Interface as a Private VLAN Host Port
Ensure that you are in the correct VDC (or enter the switchto vdc command). You can repeat VLAN names
and IDs in different VDCs, so you must confirm that you are working in the correct VDC.
SUMMARY STEPS
1. config t
2. interface type slot/port
3. switchport mode private-vlan host
4. Enter one of the following commands:
5. exit
6. (Optional) show interface switchport
7. (Optional) copy running-config startup-config
DETAILED STEPS
Command or Action
Step 1
config t
Example:
switch# config t
switch(config)#
Step 2
interface type slot/port
Example:
switch(config)# interface ethernet 2/1
switch(config-if)#
Step 3
switchport mode private-vlan host
Example:
switch(config-if)# switchport mode private-vlan host
switch(config-if)#
Step 4
Enter one of the following commands:
Option
switchport private-vlan
host-association
{primary-vlan-id}
{secondary-vlan-id}
no switchport private-vlan
host-association
Example:
switch(config-if)# switchport private-vlan host-association
10 50
Cisco Nexus 7000 Series NX-OS Layer 2 Switching Configuration Guide, Release 5.x
72
Description
Associates the Layer 2 host port with
the primary and secondary VLANs of
a private VLAN. The secondary
VLAN can be either an isolated or
community VLAN.
Removes the private VLAN
association from the port.
Configuring Private VLANs Using NX-OS
Purpose
Enters global configuration mode.
Selects the Layer 2 port to configure as a
private VLAN host port.
Configures the Layer 2 port as a host port for
a private VLAN.

Advertisement

Table of Contents
loading

Table of Contents