cisco — Configuring Layer 2 EtherChannels

Configuring EtherChannels Configuring Layer 2 EtherChannels Command or Action Purpose For a PAgP EtherChannel, you can configure up to eight ports of the same type and speed for the same group. For a LACP EtherChannel, you can configure up to 16 Ethernet ports of the same type. Up to eight ports can be active, and up to eight ports can be in standby mode. Step 4 switchport mode {access | trunk} Example: Device(config-if)# switchport mode access Assigns all ports as static-access ports in the same VLAN, or configure them as trunks. If you configure the port as a static-access port, assign it to only one VLAN. The range is 1 to 4094. Step 5 switchport access vlan vlan-id Example:

Device(config-if)# switchport access vlan 22 (Optional) If you configure the port as a static-access port, assign it to only one VLAN. The range is 1 to 4094. Step 6 channel-group channel-group-number mode {auto [non-silent] | desirable [non-silent ] | on } | { active | passive} Example: Device(config-if)# channel-group 5 mode auto Assigns the port to a channel group, and specifies the PAgP or the LACP mode. For mode, select one of these keywords: • auto —Enables PAgP only if a PAgP device is detected. It places the port into a passive negotiating state, in which the port responds to PAgP packets it receives but does not start PAgP packet negotiation.

• desirable —Unconditionally enables PAgP. It places the port into an active negotiating state, in which the port starts negotiations with other ports by sending PAgP packets. • on —Forces the port to channel without PAgP or LACP. In the on mode, an EtherChannel exists only when a port group in the on mode is connected to another port group in the on mode. • non-silent —(Optional) If your device is connected to a partner that is PAgP-capable, configures the device port for nonsilent operation when the port is in the auto or desirable mode. If you do not specify non-silent, silent is assumed. The silent setting is for connections to file servers or packet analyzers.

This setting allows PAgP to operate, to attach the port Configuring EtherChannels 14