command (port profile)

To add or modify commands in a port profile, use any command that is supported in the port profile. To remove a command from the switch profile, use the no form of the supported command.

command argument

no command argument

Syntax Description

command
Command supported in a port profile.
argument
Argument for the supported command.

Command Default

None

Command Modes

Port profile configuration mode

Command History

Release
Modification
5.0(2)N1(1)
This command was introduced.

Usage Guidelines

Use this command to configure interface commands (in batch mode) for Ethernet, VLAN, or EtherChannel interfaces.

A command that is included in a port profile can be configured outside of the port profile. If the new configuration in the port profile conflicts with the configurations that exist outside the port profile, the commands configured for an interface in the configuration terminal mode have higher priority than the commands in the port profile. If any changes are made to the interface configuration after a port profile is attached to it, and the configuration conflicts with the configuration in the port profile, the configurations in the interface are given priority.

You can remove commands from a port profile using the no form of the command. When you remove a command from the port profile, the corresponding command is removed from the interface that is atached to the port profile.

Examples

This example shows how to add the interface commands to the port profile named ppEth that is configured for Ethernet interfaces:

switch# configure terminal
switch(config)# port-profile ppEth
switch(config-port-prof)# switchport mode trunk
switch(config-port-prof)# switchport trunk allowed vlan 300-400
switch(config-port-prof)# flowcontrol receive on
switch(config-port-prof)# speed 10000
switch(config-port-prof)#
 

This example shows how to remove commands from the port profile named ppEth that is configured for Ethernet interfaces:

switch# configure terminal
switch(config)# port-profile ppEth
switch(config-port-prof)# switchport mode trunk
switch(config-port-prof)# switchport trunk allowed vlan 300-400
switch(config-port-prof)# flowcontrol receive on
switch(config-port-prof)# no speed 10000
switch(config-port-prof)#
 

Related Commands

Command
Description
copy running-config startup-config
Copies the running configuration to the startup configuration.
inherit
Attaches a port profile to an interface.
show port-profile name
Displays information about a specific port profile.
show running-config port-profile
Displays the running configuration for the port profile.
state enabled
Enables a port profile.