The following section lists and describes the steps that are required to configure Layer 2 PAgP EtherChannels. However, before we delve into these configuration steps, it is important that you are familiar with the following caveats when configuring Layer 2 EtherChannels:
- Each EtherChannel can have up to eight compatibly configured Ethernet interfaces. LACP allows you to have more than eight ports in an EtherChannel group. These additional ports are hot-standby ports.
- All interfaces in the EtherChannel must operate at the same speed and duplex modes. Keep in mind, however, that unlike PAgP, LACP does not support half-duplex ports.
- Ensure that all interfaces in the EtherChannel are enabled. In some cases, if the interfaces are not enabled, the logical port channel interface will not be created automatically.
- When first configuring an EtherChannel group, it is important to remember that ports follow the parameters set for the first group port added.
- If Switch Port Analyzer (SPAN) is configured for a member port in an EtherChannel, then the port will be removed from the EtherChannel group.
- It is important to assign all interfaces in the EtherChannel to the same VLAN or configure them as trunk links. If these parameters are different, the channel will not form.
- Keep in mind that similar interfaces with different STP path costs (manipulated by an administrator) can still be used to form an EtherChannel.
- It is recommended to shut down all member interfaces prior to beginning channelling configuration.
Configuring and Verifying Layer 2 EtherChannels
This section describes the configuration of Layer 2 EtherChannels by unconditionally forcing the selected interfaces to establish an EtherChannel.
- The first configuration step is to enter Interface Configuration mode for the desired EtherChannel interface(s) via the interface [name] or interface range [range] global configuration command.
- The second configuration step is to configure the interfaces as Layer 2 switch ports via the switchport interface configuration command.
- The third configuration step is to configure the switch ports as either trunk or access links via the switchport mode [access|trunk] interface configuration command.
- Optionally, if the interface or interfaces have been configured as access ports, assign them to the same VLAN using the switchport access vlan [number] command. If the interface or interfaces have been configured as a trunk port, select the VLANs allowed to traverse the trunk by issuing the switchport trunk allowed vlan [range] interface configuration command; if VLAN 1 will not be used as the native VLAN (for 802.1Q), enter the native VLAN by issuing the switchport trunk native vlan [number] interface configuration command. This configuration must be the same on all of the port channel member interfaces.
- The next configuration step is to configure the interfaces to unconditionally trunk via the channel-group [number] mode on interface configuration command.
The configuration of unconditional EtherChannels using the steps described above will be based on the network topology illustrated in Figure 33.5 below:
Figure 33.5 – Network Topology for EtherChannel Configuration Output Examples
The following output illustrates how to configure unconditional channelling on Switch 1 and Switch 2 based on the network topology depicted in Figure 33.5. The EtherChannel will be configured as a Layer 2 802.1Q trunk using default parameters:
| Switch-1#conf t |
Enter configuration commands, one per line. End with CNTL/Z.
Switch-1(config)#interface range fa0/1 – 3
Switch-1(config-if-range)#no shutdown
Switch-1(config-if-range)#switchport
Switch-1(config-if-range)#switchport trunk encapsulation dot1q
Switch-1(config-if-range)#switchport mode trunk
Switch-1(config-if-range)#channel-group 1 mode on
Creating a port-channel interface Port-channel 1
Switch-1(config-if-range)#exit
Switch-1(config)#exit
NOTE: Notice that the switch automatically creates interface port-channel 1 by default (refer to the output below). No explicit user configuration is required to configure this interface.
| Switch-2#conf t |
Enter configuration commands, one per line. End with CNTL/Z.
Switch-2(config)#interface range fa0/1 – 3
Switch-2(config-if-range)#switchport
Switch-2(config-if-range)#switchport trunk encapsulation dot1q
Switch-2(config-if-range)#switchport mode trunk
Switch-2(config-if-range)#channel-group 1 mode on
Creating a port-channel interface Port-channel 1
Switch-2(config-if-range)#exit
Switch-2(config)#exit
The show EtherChannel [options] command can then be used to verify the configuration of the EtherChannel. The available options (which may vary depending upon platform) are printed in the following output:
| Switch-2#show EtherChannel ? |
<1-6> Channel group number
detail Detail information
load-balance Load-balance/frame-distribution scheme among ports in port-channel
port Port information
port-channel Port-channel information
protocol protocol enabled
summary One-line summary per channel-group
| Output modifiers
<cr>
The following output illustrates the show EtherChannel summary command:
| Switch-2#show EtherChannel summary |
Flags: D – down
I – stand-alone
H – Hot-standby (LACP only)
R – Layer3
u – unsuitable for bundling
U – in use
d – default port
P – in port-channel
s – suspended
S – Layer2
f – failed to allocate aggregator
Number of channel-groups in use: 1
Number of aggregators: 1
Group Port-channel Protocol Ports
——+————-+———–+——————————–
1 Po1(SU) – Fa0/1(Pd) Fa0/2(P) Fa0/3(P)
In the output above, you can see that there are three links in Channel Group 1. Interface FastEthernet0/1 is the default port; this port will be used to send STP packets, for example. If this port fails, FastEthernet0/2 will be designated as the default port, and so forth. You can also see that this is an active Layer 2 EtherChannel by looking at the SU flag next to Po1. The following output shows the information printed by the show EtherChannel detail command:
| Switch-2#show EtherChannel detail |
Channel-group listing:
———————-
Group: 1
———-
Group state = L2
Ports: 3 Maxports = 8
Port-channels: 1 Max Port-channels = 1
Protocol: –
Ports in the group:
——————-
Port: Fa0/1
————
Port state = Up Mstr In-Bndl
Channel group = 1 Mode = On/FEC Gcchange = –
Port-channel = Po1 GC = – Pseudo port-channel = Po1
Port index = 0 Load = 0x00 Protocol = –
Age of the port in the current state: 0d:00h:20m:20s
Port: Fa0/2
————
Port state = Up Mstr In-Bndl
Channel group = 1 Mode = On/FEC Gcchange = –
Port-channel = Po1 GC = – Pseudo port-channel = Po1
Port index = 0 Load = 0x00 Protocol = –
Age of the port in the current state: 0d:00h:21m:20s
Port: Fa0/3
————
Port state = Up Mstr In-Bndl
Channel group = 1 Mode = On/FEC Gcchange = –
Port-channel = Po1 GC = – Pseudo port-channel = Po1
Port index = 0 Load = 0x00 Protocol = –
Age of the port in the current state: 0d:00h:21m:20s
Port-channels in the group:
—————————
Port-channel: Po1
————
Age of the Port-channel = 0d:00h:26m:23s
Logical slot/port = 1/0 Number of ports = 3
GC = 0x00000000 HotStandBy port = null
Port state = Port-channel Ag-Inuse
Protocol = –
Ports in the Port-channel:
Index Load Port EC state No of bits
——+——+——+——————+———–
0 00 Fa0/1 On/FEC 0
0 00 Fa0/2 On/FEC 0
0 00 Fa0/3 On/FEC 0
Time since last port bundled: 0d:00h:21m:20s Fa0/3
In the output above, you can see that this is a Layer 2 EtherChannel with three out of a maximum of eight possible ports in the channel group. You can also see that the EtherChannel mode is on, based on the protocol being denoted by a dash (-). In addition, you can also see that this is a FastEtherChannel (FEC).
Finally, you can also verify the Layer 2 operational status of the logical port-channel interface by issuing the show interfaces port-channel [number] switchport command. This is illustrated in the following output:
| Switch-2#show interfaces port-channel 1 switchport |
Name: Po1
Switchport: Enabled
Administrative Mode: trunk
Operational Mode: trunk
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: dot1q
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Voice VLAN: none
Administrative private-vlan host-association: none
Administrative private-vlan mapping: none
Administrative private-vlan trunk native VLAN: none
Administrative private-vlan trunk encapsulation: dot1q
Administrative private-vlan trunk normal VLANs: none
Administrative private-vlan trunk private VLANs: none
Operational private-vlan: none
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001
Protected: false
Appliance trust: none
Configuring and Verifying PAgP EtherChannels
This section describes the configuration of PAgP Layer 2 EtherChannels. The following steps need to be executed in order to configure and establish a PAgP EtherChannel.
- The first configuration step is to enter Interface Configuration mode for the desired EtherChannel interface(s) via the interface [name] or interface range [range] global configuration command.
- The second configuration step is to configure the interfaces as Layer 2 switch ports via the switchport interface configuration command.
- The third configuration step is to configure the switch ports as either trunk or access links via the switchport mode [access|trunk] interface configuration command.
- Optionally, if the interface or interfaces have been configured as access ports, assign them to the same VLAN using the switchport access vlan [number] command. If the interface or interfaces have been configured as a trunk port, select the VLANs allowed to traverse the trunk by issuing the switchport trunk allowed vlan [range] interface configuration command; if VLAN 1 will not be used as the native VLAN (for 802.1Q), enter the native VLAN by issuing the switchport trunk native vlan [number] interface configuration command. This configuration must be the same on all of the port channel member interfaces.
- Optionally, configure PAgP as the EtherChannel protocol by issuing the channel-protocol pagp interface configuration command. Because EtherChannels default to PAgP, this command is considered optional and is not required. It is considered good practice to issue this command just to be absolutely sure of your configuration.
- The next configuration step is to configure the interfaces to unconditionally trunk via the channel-group [number] mode interface configuration command.
The following output illustrates how to configure PAgP channelling on Switch 1 and Switch 2 based on the network topology depicted in Figure 33.5 above. The EtherChannel will be configured as a Layer 2 802.1Q trunk using default parameters:
| Switch-1#conf t |
Enter configuration commands, one per line. End with CNTL/Z.
Switch-1(config)#interface range fa0/1 – 3
Switch-1(config-if-range)#switchport
Switch-1(config-if-range)#switchport trunk encap dot1q
Switch-1(config-if-range)#switchport mode trunk
Switch-1(config-if-range)#channel-group 1 mode desirable
Creating a port-channel interface Port-channel 1
Switch-1(config-if-range)#exit
NOTE: In the output above, the port channel desirable mode has been selected. An additional keyword, [non-silent], may also be appended to the end of this command. This is because, by default, PAgP auto and desirable modes default to a silent mode. The silent mode is used when the switch is connected to a device that is not PAgP-capable and that seldom, if ever, transmits packets. An example of a silent partner is a file server or a packet analyser that is not generating traffic. It is also used if a device will not be sending PAgP packets (such as in auto mode).
In this case, running PAgP on a physical port connected to a silent partner prevents that switch port from ever becoming operational; however, the silent setting allows PAgP to operate, to attach the interface to a channel group, and to use the interface for transmission. In this example, because Switch 2 will be configured for auto mode (passive mode), it is preferred that the port uses the default silent mode operation. This is illustrated in the PAgP EtherChannel configuration output below:
| Switch-1#conf t |
Enter configuration commands, one per line. End with CNTL/Z.
Switch-1(config)#interface range fa0/1 – 3
Switch-1(config-if-range)#switchport
Switch-1(config-if-range)#switchport trunk encap dot1q
Switch-1(config-if-range)#switchport mode trunk
Switch-1(config-if-range)#channel-group 1 mode desirable ?
non-silent Start negotiation only after data packets received
<cr>
Switch-1(config-if-range)#channel-group 1 mode desirable non-silent
Creating a port-channel interface Port-channel 1
Switch-1(config-if-range)#exit
Proceeding with PAgP EtherChannel configuration, Switch 2 is configured as follows:
| Switch-2#conf t |
Enter configuration commands, one per line. End with CNTL/Z.
Switch-2(config)#int range fa0/1 – 3
Switch-2(config-if-range)#switchport
Switch-2(config-if-range)#switchport trunk encapsulation dot1q
Switch-2(config-if-range)#switchport mode trunk
Switch-2(config-if-range)#channel-group 1 mode auto
Creating a port-channel interface Port-channel 1
Switch-2(config-if-range)#exit
The following output illustrates how to verify the PAgP EtherChannel configuration by using the show EtherChannel summary command on Switch 1 and Switch 2:
| Switch-1#show EtherChannel summary |
Flags: D – down
I – stand-alone
H – Hot-standby (LACP only)
R – Layer3
u – unsuitable for bundling
U – in use
d – default port
P – in port-channel
s – suspended
S – Layer2
f – failed to allocate aggregator
Number of channel-groups in use: 1
Number of aggregators: 1
Group Port-channel Protocol Ports
——+————-+———–+——————————–
1 Po1(SU) PAgP Fa0/1(Pd) Fa0/2(P) Fa0/3(P)
PAgP EtherChannel configuration and statistics may also be viewed by issuing the show pagp [options] command. The options available with this command are illustrated in the following output:
| Switch-1#show pagp ? |
<1-6> Channel group number
counters Traffic information
internal Internal information
neighbor Neighbor information
NOTE: Entering the desired port channel number provides the same options as the last three options printed above. This is illustrated in the following output:
| Switch-1#show pagp 1 ? |
counters Traffic information
internal Internal information
neighbor Neighbor information
The [counters] keyword provides information on PAgP sent and received packets. The [internal] keyword provides information such as the port state, Hello interval, PAgP port priority, and the port learning method, for example. Using the show pagp internal command, this is illustrated in the following output:
|
Switch-1#show pagp 1 internal Flags: S – Device is sending Slow hello. C – Device is in Consistent state. A – Device is in Auto mode. d – PAgP is down. Timers: H – Hello timer is running. Q – Quit timer is running. S – Switching timer is running. I – Interface timer is running. Channel group 1 Hello Partner PAgP Learning Group Port Flags State Timers Interval Count Priority Method Ifindex Fa0/1 SC U6/S7 H 30s 1 128 Any 29 Fa0/2 SC U6/S7 H 30s 1 128 Any 29 Fa0/3 SC U6/S7 H 30s 1 128 Any 29 |
The [neighbor] keyword prints out the neighbour name, ID of the PAgP neighbour, the neighbour device ID (MAC), and the neighbour port. The flags also indicate the mode the neighbour is operating in, as well as if it is a physical learner, for example. Using the show pagp neighbor command, this is illustrated in the following output:
|
Switch-1#show pagp 1 neighbor Flags: S – Device is sending Slow hello. C – Device is in Consistent state. A – Device is in Auto mode. P – Device learns on physical port. Channel group 1 neighbors Partner Partner Partner Partner Group Port Name Device ID Port Age Flags Cap. Fa0/1 Switch-2 0014.a9e5.d640 Fa0/1 19s SAC 10001 Fa0/2 Switch-2 0014.a9e5.d640 Fa0/2 24s SAC 10001 Fa0/3 Switch-2 0014.a9e5.d640 Fa0/3 18s SAC 10001 |
Configuring and Verifying LACP EtherChannels
This section describes the configuration of LACP Layer 2 EtherChannels. The following steps need to be executed in order to configure and establish an LACP EtherChannel.
- The first configuration step is to enter Interface Configuration mode for the desired EtherChannel interface(s) via the interface [name] or interface range [range] global configuration command.
- The second configuration step is to configure the interfaces as Layer 2 switch ports via the switchport interface configuration command.
- The third configuration step is to configure the switch ports as either trunk or access links via the switchport mode [access|trunk] interface configuration command.
- Optionally, if the interface or interfaces have been configured as access ports, assign them to the same VLAN using the switchport access vlan [number] command. If the interface or interfaces have been configured as a trunk port, select the VLANs allowed to traverse the trunk by issuing the switchport trunk allowed vlan [range] interface configuration command; if VLAN 1 will not be used as the native VLAN (for 802.1Q), enter the native VLAN by issuing the switchport trunk native vlan [number] interface configuration command. This configuration must be the same on all of the port channel member interfaces.
- Configure LACP as the EtherChannel protocol by issuing the channel-protocol lacp interface configuration command. Because EtherChannels default to PAgP, this command is considered mandatory for LACP and is required.
- The next configuration step is to configure the interfaces to unconditionally trunk via the channel-group [number] mode interface configuration command.
In the above output illustrating how to configure LACP channelling on Switch 1 and Switch 2 based on the network topology depicted in Figure 33.5, the EtherChannel will be configured as a Layer 2 802.1Q trunk using default parameters, as shown in the following outputs:
| Switch-1#conf t |
Enter configuration commands, one per line. End with CNTL/Z.
Switch-1(config)#int range FastEthernet0/1 – 3
Switch-1(config-if-range)#switchport
Switch-1(config-if-range)#switchport trunk encapsulation dot1q
Switch-1(config-if-range)#switchport mode trunk
Switch-1(config-if-range)#channel-protocol lacp
Switch-1(config-if-range)#channel-group 1 mode active
Creating a port-channel interface Port-channel 1
Switch-1(config-if-range)#exit
| Switch-2#conf t |
Enter configuration commands, one per line. End with CNTL/Z.
Switch-2(config)#interface range FastEthernet0/1 – 3
Switch-2(config-if-range)#switchport
Switch-2(config-if-range)#switchport trunk encapsulation dot1q
Switch-2(config-if-range)#switchport mode trunk
Switch-2(config-if-range)#channel-protocol lacp
Switch-2(config-if-range)#channel-group 1 mode passive
Creating a port-channel interface Port-channel 1
Switch-2(config-if-range)#exit
The following output illustrates how to verify the LACP EtherChannel configuration by using the show EtherChannel summary command on Switch 1 and Switch 2:
| Switch-1#show EtherChannel summary |
Flags: D – down
I – stand-alone
H – Hot-standby (LACP only)
R – Layer3
u – unsuitable for bundling
U – in use
d – default port
P – in port-channel
s – suspended
S – Layer2
f – failed to allocate aggregator
Number of channel-groups in use: 1
Number of aggregators: 1
Group Port-channel Protocol Ports
——+————-+———–+——————————–
1 Po1(SU) LACP Fa0/1(Pd) Fa0/2(P) Fa0/3(P)
By default, LACP allows up to 16 ports to be entered into a port channel group. The first eight operational interfaces will be used by LACP, while the remaining eight interfaces will be placed into the hot-standby state. The show EtherChannel detail command shows the maximum number of supported links in an LACP EtherChannel, as illustrated in the following output:
|
Switch-1#show EtherChannel 1 detail Group state = L2 Ports: 3 Maxports = 16 Port-channels: 1 Max Port-channels = 16 Protocol: LACP Ports in the group: ——————- Port: Fa0/1 ———— Port state = Up Mstr In-Bndl Channel group = 1 Mode = Active Gcchange = – Port-channel = Po1 GC = – Pseudo port-channel = Po1 Port index = 0 Load = 0x00 Protocol = LACP Flags: S – Device is sending Slow LACPDUs. F – Device is sending fast LACPDUs. A – Device is in active mode. P – Device is in passive mode. Local information: LACP port Admin Oper Port Port Port Flags State Priority Key Key Number State Fa0/1 SA bndl 32768 0x1 0x1 0x0 0x3D Partner’s information: Partner Partner Partner Port System ID Port Number Age Flags Fa0/1 00001,0014.a9e5.d640 0x1 4s SP LACP Partner Partner Partner Port Priority Oper Key Port State 32768 0x1 0x3C Age of the port in the current state: 00d:00h:00m:35s Port: Fa0/2 ———— Port state = Up Mstr In-Bndl Channel group = 1 Mode = Active Gcchange = – Port-channel = Po1 GC = – Pseudo port-channel = Po1 Port index = 0 Load = 0x00 Protocol = LACP Flags: S – Device is sending Slow LACPDUs. F – Device is sending fast LACPDUs. A – Device is in active mode. P – Device is in passive mode. Local information: LACP port Admin Oper Port Port Port Flags State Priority Key Key Number State Fa0/2 SA bndl 32768 0x1 0x1 0x1 0x3D Partner’s information: Partner Partner Partner Port System ID Port Number Age Flags Fa0/2 00001,0014.a9e5.d640 0x2 28s SP LACP Partner Partner Partner Port Priority Oper Key Port State 32768 0x1 0x3C Age of the port in the current state: 00d:00h:00m:33s Port: Fa0/3 ———— Port state = Up Mstr In-Bndl Channel group = 1 Mode = Active Gcchange = – Port-channel = Po1 GC = – Pseudo port-channel = Po1 Port index = 0 Load = 0x00 Protocol = LACP Flags: S – Device is sending Slow LACPDUs. F – Device is sending fast LACPDUs. A – Device is in active mode. P – Device is in passive mode. Local information: LACP port Admin Oper Port Port Port Flags State Priority Key Key Number State Fa0/3 SA bndl 32768 0x1 0x1 0x2 0x3D Partner’s information: Partner Partner Partner Port System ID Port Number Age Flags Fa0/3 00001,0014.a9e5.d640 0x3 5s SP LACP Partner Partner Partner Port Priority Oper Key Port State 32768 0x1 0x3C Age of the port in the current state: 00d:00h:00m:29s Port-channels in the group: ———————- Port-channel: Po1 (Primary Aggregator) ———— Age of the Port-channel = 00d:00h:13m:50s Logical slot/port = 1/0 Number of ports = 3 HotStandBy port = null Port state = Port-channel Ag-Inuse Protocol = LACP Ports in the Port-channel: Index Load Port EC state ——+——+——+———— 0 00 Fa0/1 Active 0 00 Fa0/2 Active 0 00 Fa0/3 Active Time since last port bundled: 00d:00h:00m:32s Fa0/3 Time since last port Un-bundled: 00d:00h:00m:49s Fa0/1 |
LACP configuration and statistics may also be viewed by issuing the show lacp [options] command. The options available with this command are illustrated in the following output:
| Switch-1#show lacp ? |
<1-6> Channel group number
counters Traffic information
internal Internal information
neighbor Neighbor information
sys-id LACP System ID
The [counters] keyword provides information on LACP sent and received packets. The output printed by this command is illustrated below:
| Switch-1#show lacp counters |
LACPDUs Marker Marker Response LACPDUs
Port Sent Recv Sent Recv Sent Recv Pkts Err
———————————————————————
Channel group: 1
Fa0/1 14 12 0 0 0 0 0
Fa0/2 21 18 0 0 0 0 0
Fa0/3 21 18 0 0 0 0 0
The [internal] keyword provides information such as the port state, administrative key, LACP port priority, and the port number, for example. This is illustrated in the following output:
|
Switch-1#show lacp internal Flags: S – Device is sending Slow LACPDUs. F – Device is sending Fast LACPDUs. A – Device is in Active mode. P – Device is in Passive mode. Channel group 1 LACP port Admin Oper Port Port Port Flags State Priority Key Key Number State Fa0/1 SA bndl 32768 0x1 0x1 0x0 0x3D Fa0/2 SA bndl 32768 0x1 0x1 0x1 0x3D Fa0/3 SA bndl 32768 0x1 0x1 0x2 0x3D |
The [neighbor] keyword prints out the neighbour name, ID of the LACP neighbour, the neighbour device ID (MAC), and the neighbour port. The flags also indicate the mode the neighbour is operating in, as well as whether it is a physical learner, for example. This is illustrated in the following output:
| Switch-1#show lacp neighbor |
Flags: S – Device is sending Slow LACPDUs. F – Device is sending Fast
LACPDUs.
A – Device is in Active mode. P – Device is in Passive mode.
Channel group 1 neighbors
Partner’s information:
Partner Partner Partner
Port System ID Port Number Age Flags
Fa0/1 00001,0014.a9e5.d640 0x1 11s SP
LACP Partner Partner Partner
Port Priority Oper Key Port State
32768 0x1 0x3C
Partner’s information:
Partner Partner Partner
Port System ID Port Number Age Flags
Fa0/2 00001,0014.a9e5.d640 0x2 19s SP
LACP Partner Partner Partner
Port Priority Oper Key Port State
32768 0x1 0x3C
Partner’s information:
Partner Partner Partner
Port System ID Port Number Age Flags
Fa0/3 00001,0014.a9e5.d640 0x3 24s SP
LACP Partner Partner Partner
Port Priority Oper Key Port State
32768 0x1 0x3C
Finally, the [sys-id] keyword provides the system ID of the local switch. This is a combination of the switch MAC and LACP priority, as illustrated in the following output:
| Switch-1#show lacp sys-id |
1 ,000d.bd06.4100
