Procedure
PurposeCommand or Action
Enters global configuration mode.switch# configure terminal
Step 1
Enters port profile configuration mode for the
named port profile.
switch(config)# port-profile name
Step 2
Assigns (or pins) a control VLAN or packet
VLAN to a port channel subgroup (0 to 31).
switch(config-port-prof)# pinning
{control-vlan | packet-vlan} subgroup_id
Step 3
(Optional)
Displays the configuration for verification.
switch(config-port-prof)# show port-profile
[brief | expand-interface | usage] [name
profile-name]
Step 4
(Optional)
Saves the change persistently through reboots and
restarts by copying the running configuration to
the startup configuration.
switch(config-port-prof)# copy
running-config startup-config
Step 5
This example shows how to configure static pinning on a control VLAN:
switch# configure terminal
switch(config)# port-profile SystemProfile1
switch(config-port-prof)# pinning control-vlan 3
switch(config-port-prof)# show port-profile SystemProfile1
port-profile SystemProfile1
description:
type: ethernet
status: disabled
capability l3control: no
pinning control-vlan: 3
pinning packet-vlan: -
system vlans: 1
port-group: SystemProfile1
max ports: -
inherit:
config attributes:
switchport mode trunk
switchport trunk allowed vlan 1-5
no shutdown
evaluated config attributes:
switchport mode trunk
switchport trunk allowed vlan 1-5
no shutdown
assigned interfaces:
switch(config-port-prof)# copy running-config startup-config
This example shows how to configure static pinning on a packet VLAN:
switch# configure terminal
switch(config)# port-profile SystemProfile1
switch(config-port-prof)# pinning packet-vlan 0
switch(config-port-prof)# show port-profile name SystemProfile1
port-profile SystemProfile1
description:
type: ethernet
status: disabled
capability l3control: no
pinning control-vlan: -
pinning packet-vlan: 0
system vlans: 1
Cisco Nexus 1000V for VMware vSphere Interface Configuration Guide, Release 5.x
68
Configuring Port Channels
Creating a Port Profile for a Port Channel