| Step 1 | switch# configure terminal
| Enters global configuration mode.
|
| Step 2 | switch(config)# port-profile [type {ethernet | vethernet}] name
| Enters port profile configuration mode for the named port profile. If the port profile does not already exist, it is created using the following characteristics:
- name—The port profile name can be up to 80 characters and must be unique for each port profile on the Cisco Nexus 1000V.
- type—(Optional) The port profile type can be Ethernet or vEthernet. Once configured, the type cannot be changed. The default is the vEthernet type.
Defining a port profile type as Ethernet allows the port profile to be used for physical (Ethernet) ports. In the vCenter Server, the corresponding port group can be selected and assigned to physical ports (PNICs).
| Note
| If a port profile is configured as an Ethernet type, then it cannot be used to configure VMware virtual ports.
|
|
| Step 3 | switch(config-port-prof)# switchport mode private-vlan {host| promiscuous|trunk promiscuous}
| Designates the port profile for use as a private VLAN and defines the ports as follows:
- promiscuous—vEthernet ports that belong to the primary VLAN and communicate with the Layer 3 gateway. Promiscuous ports can communicate with any interface in the PVLAN domain, including those associated with secondary VLANs.
- host—vEthernet ports that belong to the secondary VLAN as one of the following:
- Community PVLAN host port
- Isolated PVLAN host port
- trunk promiscuous—A physical Ethernet trunk port which carries both regular non-PVLAN traffic and PVLAN traffic. When traffic comes from a PVLAN host port, the packet is translated to the primary VLAN packet.
|
| Step 4 | switch(config-port-prof)# switchport private-vlan host-association primary-vlan secondary-vlan
| Assigns the primary and secondary VLAN IDs to the port profile and saves this association in the running configuration.
- primary-vlan—Specifies a primary VLAN ID. You can specify only one primary VLAN ID.
- secondary-vlan—Specifies the secondary VLAN ID. You can specify only one secondary VLAN ID.
|
| Step 5 | switch(config-port-prof)# switchport private-vlan trunk allowed vlan vlan-range
| Sets the allowed VLANs and VLAN IDs when interface is in private-vlan trunking mode.
|
| Step 6 | switch(config-port-prof)# switchport private-vlan mapping primary_vlan [add | remove] secondary_vlan
| Maps the primary VLAN ID to the secondary VLAN ID for the port profile.
|
| Step 7 | switch(config-port-prof)# switchport private-vlan mapping trunk primary_vlan [add | remove] secondary_vlan
| Designates the primary private VLAN.
The range of valid values is 1 to 3967.
|
| Step 8 | switch(config-port-prof)# show port-profile [brief | expand-interface | usage] [name profile-name]
| (Optional) Displays the configuration for verification.
|
| Step 9 | switch(config-port-prof)# copy running-config startup-config
| (Optional) Saves the change persistently through reboots and restarts by copying the running configuration to the startup configuration.
|