Cisco Systems N5KC5596TFA Switch User Manual


 
This example shows how to add the interface commands to a port profile named ppEth 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)#
Modifying a Port Profile
You can modify a port profile in port-profile configuration mode.
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 attached to
the port profile.
Procedure
PurposeCommand or Action
Enters configuration mode.configure terminal
Example:
switch# configure terminal
switch(config)#
Step 1
Enters the port profile configuration mode
for the specified port profile and allows you
port-profile [type {ethernet | interface-vlan |
port channel}] name
Step 2
to add or remove configurations to the
profile.
Example:
switch(config)# port-profile type ethernet
test
switch(config-port-prof)#
Exits the port profile configuration mode.exit
Example:
switch(config-port-prof)# exit
switch(config)#
Step 3
(Optional)
Displays the port profile configuration.
show port-profile
Example:
switch(config)# show port-profile name
Step 4
(Optional)
Copies the running configuration to the
startup configuration.
copy running-config startup-config
Example:
switch(config)# copy running-config
startup-config
Step 5
Cisco Nexus 5000 Series NX-OS Interfaces Configuration Guide, Release 5.2(1)N1(1)
20 78-26881-OL
Configuring Layer 2 Interfaces
Port Profiles