port-profile

To create or configure a port profile, use the port-profile command. To delete a port profile, use the no form of this command.

port-profile {port-profile-name | type {ethernet | interface-vlan | port-channel} port-profile-name}

no port-profile {port-profile-name | type {ethernet | interface-vlan | port-channel} port-profile-name}

Syntax Description

port-profile-name

Name of the port profile. The name is case sensitive, can be a maximum of 80 alphanumeric characters and can include an underscore and hyphen. The name cannot contain spaces or special characters.

type

Specifies the type of port profile to configure.

ethernet

Specifies that the port profile is to be applied to an Ethernet interface.

interface-vlan

Specifies that the port profile is to be applied to a VLAN interface.

port-channel

Specifies that the port profile is to be applied to a port channel.


Command Default

Ethernet type port profile

Command Modes

Global configuration mode

Command History

Release
Modification

5.0(2)N1(1)

This command was introduced.


Usage Guidelines

You can create a port profile that contains a batch of repetitive interface commands and apply that port profile to a range of interfaces on the switch. You can configure and apply port profiles to the following interface types:

•Ethernet

•VLAN interface

•Port channel

The port profile is configured for an interface so that the commands that are applicable to one interface do not show up when you configure a port profile for another interface. For example, the commands that are applicable to port channel interfaces do not show up when you configure a port profile that is attached to an Ethernet interface.

Each port profile must have a unique name across the interface types.

When you delete a port profile, the commands that are configured within the port profile are removed from the interfaces that have inherited the port profile. If you want to delete a port profile that has been inherited by other port profiles, you must remove the inheritance before you can delete the port profile.

Examples

This example shows how to create a port profile named ppEth for Ethernet interfaces:

switch# configure terminal 
switch(config)# port-profile type Ethernet ppEth 
switch(config-port-prof)# 

This example shows how to delete an Ethernet type port profile named ppEth:

switch# configure terminal 
switch(config)# no port-profile type Ethernet ppEth 
switch(config)# 

Related Commands

Command
Description

command (port profile)

Adds commands to a port profile.

copy running-config startup-config

Copies the running configuration to the startup configuration.

description

Adds a description for a port profile.

inherit port-profile

Inherits a port profile.

show port-profile

Displays information about a port profile.

show running-config port-profile

Displays the running configuration information for a port profile.