Configuration Examples For Port Profiles - Cisco Nexus 5000 Series Configuration Manual

Nx-os layer 2 switching configuration guide, release 5.0(3)n1(1)
Hide thumbs Also See for Nexus 5000 Series:
Table of Contents

Advertisement

Configuring Port Profiles
Command or Action
Step 2
interface [ethernet slot/port | interface-vlan vlan-id |
port-channel number]
Example:
switch(config)# interface ethernet 7/3-5, 10/2, 11/20-25
switch(config-if)#
Step 3
no inherit port-profile name
Example:
switch(config-if)# no inherit port-profile adam
switch(config-if)#
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 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)#

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
switch(config-port-prof)# switchport mode trunk
switch(config-port-prof)# switchport trunk allowed vlan 10-15
switch(config-port-prof)#
switch(config-port-prof)# show running-config port-profile alpha
Cisco Nexus 5000 Series NX-OS Layer 2 Switching Configuration Guide, Release 5.0(3)N1(1)
36
Configuring Ethernet Interfaces
Purpose
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)
Copies the running configuration to the startup
configuration.

Advertisement

Table of Contents
loading

Table of Contents