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)#
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
switch(config-port-prof)# no inherit port-profile ppEth
switch(config-port-prof)#
Removing an Inherited Port Profile
You can remove an inherited port profile.
Procedure
PurposeCommand or Action
Enters configuration mode.configure terminal
Example:
switch# configure terminal
switch(config)#
Step 1
Enters port profile configuration mode for
the specified port profile.
port-profile name
Example:
switch(config)# port-profile test
switch(config-port-prof)#
Step 2
Removes an inherited port profile from
this port profile.
no inherit port-profile name
Example:
switch(config-port-prof)# no inherit
port-profile adam
switch(config-port-prof)#
Step 3
Cisco Nexus 5000 Series NX-OS Interfaces Configuration Guide, Release 5.2(1)N1(1)
78-26881-OL 23
Configuring Layer 2 Interfaces
Port Profiles