Cisco Systems N5KC5596TFA Manual De Usuario
This example shows how to enter port profile configuration mode and enable the port profile:
switch# configure terminal
switch(config)# port-profile type ethernet test
switch(config-port-prof)# state enabled
switch(config-port-prof)#
switch(config)# port-profile type ethernet test
switch(config-port-prof)# state enabled
switch(config-port-prof)#
Inheriting a Port Profile
You can inherit a port profile onto an existing port profile. The switch supports four levels of inheritance.
Procedure
Purpose
Command or Action
Enters configuration mode.
configure terminal
Example:
switch# configure terminal
switch(config)#
switch(config)#
Step 1
Enters port profile configuration mode for the
specified port profile.
specified port profile.
port-profile name
Example:
switch(config)# port-profile test
switch(config-port-prof)#
switch(config-port-prof)#
Step 2
Inherits another port profile onto the existing
one. The original port profile assumes all the
configurations of the inherited port profile.
one. The original port profile assumes all the
configurations of the inherited port profile.
inherit port-profile name
Example:
switch(config-port-prof)#
inherit
port-profile adam
switch(config-port-prof)#
switch(config-port-prof)#
Step 3
Exits the port profile configuration mode.
exit
Example:
switch(config-port-prof)# exit
switch(config)#
switch(config)#
Step 4
(Optional)
Displays the port profile configuration.
Displays the port profile configuration.
show port-profile
Example:
switch(config)# show port-profile name
Step 5
(Optional)
Copies the running configuration to the
startup configuration.
Copies the running configuration to the
startup configuration.
copy running-config startup-config
Example:
switch(config)# copy running-config
startup-config
startup-config
Step 6
This example shows how to inherit the port profile named adam onto the port profile named test:
switch# configure terminal
switch(config)# port-profile test
switch(config-ppm)# inherit port-profile adam
switch(config-ppm)#
switch(config)# port-profile test
switch(config-ppm)# inherit port-profile adam
switch(config-ppm)#
Cisco Nexus 5000 Series NX-OS Interfaces Configuration Guide, Release 5.2(1)N1(1)
22
78-26881-OL
Configuring Layer 2 Interfaces
Port Profiles