Configuring Port Profiles
Command or Action
Step 3
inherit port-profile name
Example:
switch(config-port-prof)#
adam
switch(config-port-prof)#
Step 4
exit
Example:
switch(config-port-prof)# exit
switch(config)#
Step 5
show port-profile
Example:
switch(config)# show port-profile name
Step 6
copy running-config startup-config
Example:
switch(config)# copy running-config startup-config
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)#
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)#
This example shows how to inherit a port profile named ppEth configured for Ethernet interfaces into an
existing port profile named test:
switch# configure terminal
switch(config)# port-profile test
switch(config-port-prof)# inherit port-profile ppEth
switch(config-port-prof)#
This example shows how to assign a port profile named ppEth configured for Ethernet interfaces to a range
of Ethernet interfaces:
switch# configure terminal
switch(config)# interface ethernet 1/2-5
switch(config-if)# inherit port-profile ppEth
switch(config-if)#
This example shows how to remove an inherited port profile named ppEth from an existing port profile named
test:
switch# configure terminal
switch(config)# port-profile test
Cisco Nexus 5000 Series NX-OS Layer 2 Switching Configuration Guide, Release 5.0(3)N1(1)
32
Purpose
Inherits another port profile onto the existing one. The
original port profile assumes all the configurations of
the inherited port profile.
inherit port-profile
Exits the port profile configuration mode.
(Optional)
Displays the port profile configuration.
(Optional)
Copies the running configuration to the startup
configuration.
Configuring Ethernet Interfaces