Configuring Ethernet Interfaces
SUMMARY STEPS
1. switch# configure terminal
2. interface [ethernet slot/port | interface-vlan vlan-id | port-channel number]
3. no inherit port-profile name
4. exit
5. (Optional) show port-profile
6. (Optional) switch(config)# copy running-config startup-config
DETAILED STEPS
Command or Action
Step 1
switch# configure terminal
Step 2
interface [ethernet slot/port | interface-vlan
vlan-id | port-channel number]
Step 3
no inherit port-profile name
Step 4
exit
Step 5
show port-profile
Step 6
switch(config)# copy running-config
startup-config
This example shows how tos remove the port profile named adam from Ethernet interfaces 1/3-5:
switch# configure terminal
switch(config)# interface ethernet 1/3-5
switch(config-if)# no inherit port-profile adam
switch(config-if)# exit
switch(config)# show port-profile
switch(config)# copy running-config startup-config
Configuration Examples for Port Profiles
The following example shows how to configure a port profile, inherit the port profile on an Ethernet interface,
and enabling the port profile.
switch(config)#
switch(config)# show running-config interface Ethernet1/14
!Command: show running-config interface Ethernet1/14
!Time: Thu Aug 26 07:01:32 2010
version 5.0(2)N1(1)
interface Ethernet1/14
switch(config)# port-profile type ethernet alpha
OL-25842-01
Purpose
Enters global configuration mode.
Selects the range of interfaces.
Removes the specified port profile from the selected interfaces.
Exits port profile configuration mode.
(Optional)
Displays the port profile configuration.
(Optional)
Saves the change persistently through reboots and restarts by
copying the running configuration to the startup configuration.
Cisco Nexus 5000 Series NX-OS Layer 2 Switching Configuration Guide, Release 5.1(3)N1(1)
Port Profiles
31