Configures a physical interface to an EtherChannel.
Interface config mode
An EtherChannel in the on channel mode is a pure EtherChannel (static-lag) and can aggregate a maximum of 64 ports.
Only one port can be mapped with one channel-group.
This command requires that a group is already present.
MTU must not be configured.
The speed of member-ports should be same as that of the current port.
When the last physical interface is deleted from an EtherChannel, the EtherChannel is not removed. To remove the interface from the channel group, use the no interface port-channel command.
Message | Reason |
---|---|
Error: Invalid configuration, port-channel 2 not present. | Trying to configure the channel-group without creating the port-channel |
Error: already mapped to port-channel 1. | Trying to configure the channel-group which is already mapped to the port-channel |
Error: MTU needs to be unconfigured before adding an interface to port-channel. | Trying to add interfaces to the port-channel without removing MTU configuration |
Error: speed configuration not allowed when interface is already member of a port-channel. | Trying to configure speed when the interface is already a port-channel member |
The following example configures the physical interface from the Ether Channel.
device# configure terminal device(config)# interface ethernet 1/1 device(config-if-eth-1/1)# channel-group 1 mode on device(config-if-eth-1/1)# no shutdown device(config-if-eth-1/1)# end device# show running-configuration interface ethernet 1/1 channel-group 1 mode on no shutdown