183
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
OL-27880-02
Chapter I Commands
interface port-channel
You can configure one or more subinterfaces on a port channel made from routed interfaces.
Examples
This example shows how to create an EtherChannel group interface with channel-group number 50:
switch(config)#
interface port-channel 50
switch(config-if)#
This example shows how to create a Layer 3 EtherChannel group interface with channel-group number
10:
switch(config)#
interface port-channel 10
switch(config-if)#
no switchport
switch(config-if)#
ip address 192.0.2.1/24
switch(config-if)#
This example shows how to configure a Layer 3 EtherChannel subinterface with channel-group number
1 in interface configuration mode:
switch(config)#
interface port-channel 10
switch(config-if)#
no switchport
switch(config-if)#
interface port-channel 10.1
switch(config-subif)#
ip address 192.0.2.2/24
switch(config-subif)#
This example shows how to configure a Layer 3 EtherChannel subinterface with channel-group number
20.1 in global configuration mode:
switch(config)#
interface port-channel 20.1
switch(config-subif)#
ip address 192.0.2.3/24
switch(config-subif)#
Related Commands
Command
Description
encapsulation
(Layer 3 interfaces) Sets the encapsulation type for an interface.
ip address
(Layer 3 interfaces) Sets a primary or secondary IP address for an interface.
no switchport
(Layer 3 interfaces) Configures an interface as a Layer 3 interface.
show interface
Displays configuration information about interfaces.
show lacp
Displays LACP information.
show port-channel
summary
Displays information on the EtherChannels.
vtp (interface)
Enables VLAN Trunking Protocol (VTP) on an interface.