The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
This chapter contains the following sections:
Information About Port Profiles
The following table describes port profile behavior.
State |
Behavior |
---|---|
Disabled (the default) |
When disabled, a port profile behaves as follows: |
Enabled |
When enabled, a port profile behaves as follows: |
You can configure either static, dynamic, or ephemeral port binding for vEthernet port profiles. The following table shows how this setting controls how ports are assigned in the VMware port group.
Type |
Behavior |
||
---|---|---|---|
Static (the default) |
A DVPortID is assigned from the port group pool when you first assign the port group to the port. The DVPortID persists for the life of the network adapter. The port group has a fixed number of ports. |
||
Dynamic |
Please verify if the dynamic port profile is related to the vcenter server in the enterprise. A DVPortID is assigned to a virtual machine only when the virtual machine is powered on and its NIC is in a connected state. The DVPortID is freed when the virtual machine is powered off or the virtual machine's NIC is disconnected. Virtual machines connected to a port group configured with dynamic binding must be powered on and off through the VMware vCenter Server. Dynamic binding can be used in environments where you have more virtual machines than available ports, but do not plan to have a greater number of virtual machines active than you have available ports. For example, if you have 300 virtual machines and 100 ports, but will never have more than 90 virtual machines active at one time, then dynamic binding would be appropriate for your port group. |
||
Ephemeral |
A new DVPortID is assigned to the port every time the VM is powered on. The port keeps this same DVPortID while the VM is up. All available DVS ports are shared. Ports are not allocated from the port group pool.
|
The following table lists the default settings in the port profile configuration.
Parameter |
Default |
---|---|
capability l3control |
No |
description |
- |
administrative state |
all ports disabled |
switchport mode (access or trunk) |
access |
system vlan vlan_list |
- |
type |
vethernet |
access port vlan |
VLAN 1 |
max-ports |
32 |
min-ports |
32 |
vEthernet port-bindings |
Static |
Configuring Port Profiles
Port Mode Configuration
In accordance with the IEEE 802.1Q standard, up to 128 active VLANs are supported and the valid range for VLANs is 1-4094. The following table describes the available VLAN ranges and their use.
VLAN Numbers | Range | Usage |
---|---|---|
1 |
Normal |
Cisco default. You can use this VLAN, but you cannot modify or delete it. |
2-1005 |
Normal |
You can create, use, modify, and delete these VLANs. |
1006-4094 |
Extended |
You can create, name, and use these VLANs. You cannot change the following parameters: You cannot shut down these VLANs. |
3968-4047 and 4094 |
Internally allocated |
These 80 VLANs, plus VLAN 4094, are allocated for internal device use. You cannot create, delete, or modify any VLANs within the block reserved for internal use. |
Use this procedure to configure a trunk port profile.
This example shows how to configure a trunk port profile.
switch# configure terminal switch(config)# port-profile port-profile type vethernet Trunk_To_Cloud switch(config-port-prof)# switchport mode trunk switch(config-port-prof)# switchport trunk allowed vlan 72,2315-2350 switch(config-port-prof)# no shutdown switch(config-port-prof)# state enabled switch(config-port-prof)# max ports 64 switch(config-port-prof)# system vlan 72 switch(config-port-prof)# publish port-profile switch(config-port-prof)#
An access port transmits packets on only one untagged VLAN. You can specify the VLAN, and it becomes the access VLAN. If you do not specify a VLAN for an access port, that interface carries traffic only on the default VLAN 1.
Step 1 |
switch# configure terminal Enters global configuration mode. |
||
Step 2 |
switch(config)# [no] vlan vlan-id Creates or deletes, and saves in the running configuration, a VLAN or a range or VLANs. |
||
Step 3 |
switch(config)# port-profile type 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: |
||
Step 4 |
switch(config-port-prof)# switchport mode access Sets port mode access. |
||
Step 5 |
switch(config-port-prof)# switchport access vlan [vlan-id-access] Assigns an access VLAN ID to this port profile.
|
||
Step 6 |
switch(config-port-prof)# no shutdown Administratively enables all ports in the profile. |
||
Step 7 |
switch(config-port-prof)# state enabled Enables the port profile and applies its configuration to the assigned ports. |
||
Step 8 |
switch(config-port-prof)# system vlan vlan-id Adds system VLAN to this port profile. Specify the VLAN as configured in step 5. |
||
Step 9 |
switch(config-port-prof)# publish port-profile <name> Publishes port profile to Cisco Prime Network Services Controller. |
||
Step 10 |
(Optional)switch(config-port-prof)# copy running-config startup-config Saves the change persistently through reboots and restarts by copying the running configuration to the startup configuration. |
This example shows how to configure a port profile for InterCloud Switch management interface:
switch# configure terminal switch(config)# port-profile type vethernet mgmt-access switch(config-port-prof)# switchport mode access switch(config-port-prof)# switchport access vlan 72 switch(config-port-prof)# no shutdown switch(config-port-prof)# state enabled switch(config-port-prof)# system vlan 72 switch(config-port-prof)# publish port-profile mgmt-access switch(config-port-prof)#
You can use this procedure to remove either of the following port management policies from an existing port profile configuration:
Note |
After removing the configuration for an attribute, the attribute does not appear in show command output. |
Command or Action | Purpose | |
---|---|---|
Step 1 | switch# configure terminal | Enters global configuration mode. |
Step 2 | switch(config)# port-profile name | Enters port profile configuration mode for the named port profile. |
Step 3 | default {shutdown | switchport mode} |
Removes either the shutdown or the switchport mode configuration from the port profile. |
Step 4 | switch(config-port-prof)# show port-profile [brief | expand-interface | usage] [name profile-name] | (Optional) Displays the configuration for verification. |
Step 5 | 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. |
This example shows how to change the administrative state of a port profile back to its default setting (all ports disabled):
switch# configure treminal switch(config)# port-profile AccessProf switch(config-port-prof)# default shutdown switch(config-port-prof)# show port-profile name AccessProf switch(config-port-prof)#
Port Binding for vEthernet Port Profiles Configuration
You can use this procedure to configure the type of port binding (static, dynamic, or ephemeral) to apply by default to all new vEthernet port profiles.
Before beginning this procedure, you must know or do the following:
Command or Action | Purpose | |
---|---|---|
Step 1 | switch# configure terminal | Enters global configuration mode. |
Step 2 | switch(config)# port-profile default port-binding {static [auto] dynamic [auto] | ephemeral} | Configures a default port binding type to be applied automatically to all new vEthernet port profiles unless explicitly configured otherwise:
|
Step 3 | switch(config-port-prof)# show running-config | (Optional) Displays the configuration for verification. |
Step 4 | 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. |
This example shows how to configure the dynamic port binding type as the default for all new vEthernet port profiles created:
switch# configure terminal switch(config)# port-profile default port-binding dynamic switch(config-port-prof)#
You can use this procedure to configure the type of port binding (static, dynamic, or ephemeral) for an existing vEthernet port profile.
Command or Action | Purpose | |
---|---|---|
Step 1 | switch# configure terminal | Enters global configuration mode. |
Step 2 | switch(config)# port-profile [type {vethernet}] profile-name | Enters port profile configuration mode for the named vEthernet port profile. |
Step 3 | switch(config-port-prof)# port-binding {static [auto] dynamic [auto] | ephemeral} | Configures a default port binding type to be applied automatically to all new vEthernet port profiles unless explicitly configured otherwise:
|
Step 4 | switch(config-port-prof)# show port-profile [name profile-name] | (Optional) Displays the configuration for verification. |
Step 5 | 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. |
This example shows how to configure the dynamic port binding type for the existing port profile named target-pp.
switch# configure terminal switch(config)# port-profile target-pp switch(config-port-prof)# port-binding dynamic switch(config-port-prof)#
Command or Action | Purpose | |
---|---|---|
Step 1 | switch# configure terminal | Enters global configuration mode. |
Step 2 | switch(config)# port-profile [type {vethernet}] profile-name | Enters port profile configuration mode for the named vEthernet port profile. |
Step 3 | switch(config-port-prof)# state enabled | Enables the port profile and applies its configuration to the assigned ports. |
Step 4 | switch(config-port-prof)# publish port-profile <name> | Publishes port profile to Cisco Prime Network Services Controller. |
Step 5 | switch(config-port-prof)# show port-profile [brief | expand-interface | usage] [name profile-name] | Displays the configuration for verification. |
Step 6 | 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. |
This example shows how to enable a port profile.
switch# configure terminal switch(config)# port-profile AccessProf switch(config-port-prof)# state enabled switch(config-port-prof)# publish port-profile AccessProf switch(config-port-prof)# show port-profile name AccessProf switch(config-port-prof)#
Command or Action | Purpose | |||
---|---|---|---|---|
Step 1 | switch# configure terminal | Enters global configuration mode. |
||
Step 2 | switch(config)# show port-profile virtual usage name profile_name | (Optional) Verifies if active interfaces use this port profile.
|
||
Step 3 | switch(config)# no port-profile profile_name | Removes the port profile configuration and operational settings. |
||
Step 4 | switch(config)# show port-profile [name profile-name] | (Optional) Displays the configuration for verification. |
||
Step 5 | switch(config)# copy running-config startup-config | (Optional) Saves the change persistently through reboots and restarts by copying the running configuration to the startup configuration. |
This example shows how to remove a port profile:
switch# configure terminal switch(config)# no port-profile AccessProf switch(config)# show port-profile name AccessProf ERROR: port-profile AccessProf does not exist switch(config)# copy running-config startup-config switch(config)#
Feature Name |
Releases |
Feature Information |
---|---|---|
Port Profiles |
Release 5.2(1)IC1(1.1) |
This feature was introduced. |