Etherchannels Flashcards
What are etherchannels?
Logical bundlings of two to eight links between two switches.
How does STP view etherchannels?
As a single port, no matter how many links make up the etherchannel.
In STP, how is the port cost of an etherchannel determined?
By the number and speed of the ports in the etherchannel. More, faster ports=lower port cost.
What action does STP take when a single port in an etherchannel goes down?
It increases the port cost for the etherchannel.
Does the channel group number have to match between two switches?
No. It’s a local value.
What are the three variations of etherchannel?
LACP, PAgP, and static.
What is a port channel?
The logical representation of an etherchannel. It’s how etherchannels are referred to within CIOS syntax.
What command is used to configure a port channel?
From interface config: channel-group (#) mode ( )
What is PAgP?
Port aggregation protocol. A Cisco proprietary etherchannel negotiation protocol.
What is LACP?
Link aggregation control protocol. Industry standard etherchannel negotiation protocol.
What is a good show command to check the overall status of etherchannels on a switch?
Show etherchannel brief, or Show etherchannel summary.
What does LACP use port priority for?
To determine which 8 of the total 16 allowed ports will be actively used in the etherchannel. Lower priority ports will be used.
What is a good command to check etherchannel relationship status?
Show LACP/PAgP neighbor.
How many ports can be assigned to a LACP etherchannel?
16, but only 8 will be used, determined by priority.
What are the LACP port modes?
Active and passive.
What are the PAgP port modes?
Auto and desirable.
What happens if you make a change to an individual PAgP port?
The change will be made on all ports in the etherchannel.
What criteria can be chosen for etherchannel load-distribution?
Source MAC, destination MAC, source & destination MAC, source IP, destination IP, source & destination IP, TCP/UDP source, TCP/UDP destination, TCP/UPD source & destination.
Can load-distribution criteria be chosen on an etherchannel-by-etherchannel basis?
No, it can only be configured globally.
How does etherchannel load-distribution work?
Values 0-7 are assigned equally among the etherchannel interfaces. Unique MAC/IPs (whatever you’re using for criteria) are mapped to these values, and in turn are assigned to an interface. This is NOT true load-balancing.
How is etherchannel load-balancing different when using source & destination MAC/IP?
The XOR (exclusive-or) operation is used to map each unique combination of addresses to a port. This operation compares the last few bits of the source and destination address to determine it’s value, which is then mapped to a port.
Describe STP etherchannel misconfig guard.
STP etherchannel misconfig guard protects against loops caused by statically configured etherchannels that are not configured on both switches. If a misconfiguration is detected, the switch will be placed into err-disable state.
What command will change the etherchannel load-distribution criteria?
From global config, “port-channel load-balance ___”
What command will enable STP etherchannel misconfig guard?
From global config, “spanning etherchannel guard misconfig”
Which etherchannel protocol supports half duplex?
PAgP
Do portchannel commands overwrite individual port commands?
Not always. It’s best practice to keep configurations for the port channel.
What must all ports in a layer 2 etherchannel agree on?
Speed, duplex, mapped VLANs, native VLAN, trunking protocol.
What must ports in a layer 3 etherchannel agree on?
No switch port, speed and duplex.
Refer to the exhibit. LACP has been configured on Switch1 as shown. Which is the correct command set to configure LACP on Switch2?
LACP_channel-group.jpg
A.
Switch2# configure terminal
Switch2(config)# interface range gigabitethernet3/1 -2
Switch2(config-if)# channel-group 5 mode auto
B.
Switch2# configure terminal
Switch2(config)# interface range gigabitethemet3/1 -2
Switch2(config-if)# channel-group 5 mode passive
C.
Switch2# configure terminal
Switch2(config)# interface range gigabitethernet3/1 -2
Switch2(config-if)# channel-group 5 mode desirable
D.
Switch2# configure terminal
Switch2(config)# interface range gigabitethernet3/1 -2
Switch2(config-if)# channel-group 5 mode on
Explanation
LACP trunking supports four modes of operation, as follows:
* On: The link aggregation is forced to be formed without any LACP negotiation. In other words, the switch will neither send the LACP packet nor process any incoming LACP packet. This is similar to the on state for PAgP.
* Off: The link aggregation will not be formed. We do not send or understand the LACP packet. This is similar to the off state for PAgP.
* Passive: The switch does not initiate the channel, but does understand incoming LACP packets. The peer (in active state) initiates negotiation (by sending out an LACP packet) which we receive and reply to, eventually forming the aggregation channel with the peer. This is similar to the auto mode in PAgP.
* Active: We are willing to form an aggregate link, and initiate the negotiation. The link aggregate will be formed if the other end is running in LACP active or passive mode. This is similar to the desirable mode of PAgP.
LACP does not have “auto” & “desirable” modes so A & C are not correct.
Also there are only three valid combinations to run the LACP link aggregate, as follows:
Switch Switch Description
active active Recommended
active passive Link aggregation occurs if negotiation is successful.
on on Link aggregation occurs without LACP. Although this works, it is not recommended.
Therefore if Switch1 is set “active” mode, we cannot set “on” mode on Switch2 -> D is not correct.
Only answer B is suitable in this case.
(Reference: http://www.cisco.com/en/US/tech/tk389/tk213/technologies_configuration_example09186a0080094470.shtml)
An example of configuring Layer 2 EtherChannel using LACP (applied these commands to both switches):
SW(config)#interface range f0/1 – 2
SW(config-if-range)#channel-group 1 mode active
Refer to the exhibit. The command switchport mode access is issued on interface FastEthernet0/13 on switch CAT1. What will be the result?
channel-group_switchport-mode-access.jpg
A. The command will be rejected by the switch.
B. Interfaces FastEthernet0/13 and FastEthemet0/14 will no longer be bundled.
C. Dynamic Trunking Protocol will be turned off on interfaces FastEthernet0/13 and FastEthemet0/14.
D. Interfaces FastEthernet0/13 and FastEthernet0/14 will only allow traffic from the native VLAN.
E. Interfaces FastEthernet0/13 and FastEthernet0/14 will continue to pass traffic for VLANs 88,100,360.
Answer: B
Explanation
The default channel protocol in Cisco switches is Port Aggregation Protocol (PAgP). PAgP groups the interfaces with the same speed, duplex mode, native VLAN, VLAN range, and trunking status and type. After grouping the links into an EtherChannel, PAgP adds the group to the spanning tree as a single switch port.
An interface in the on mode that is added to a port channel is forced to have the same characteristics as the already existing on mode interfaces in the channel (applied for both PAgP & LACP). So if we configure “switchport mode access” on Fa0/13, this interface will no longer be bundled with Fa0/14.
(Reference: http://www.cisco.com/en/US/docs/switches/lan/catalyst3550/software/release/12.1_14_ea1/configuration/guide/swethchl.html#wpxref12539)
What is the result of entering the command “port-channel load-balance src-dst-ip” on an EtherChannel link?
A. Packets are distributed across the ports in the channel based on both the source and destination MAC addresses.
B. Packets are distributed across the ports in the channel based on both the source and destination IP addresses.
C. Packets are balanced across the ports in the channel based first on the source MAC address, then on the destination MAC address, then on the IP address.
D. Packets are distributed across the access ports in the channel based first on the source IP address and then the destination IP addresses.
Answer: B
Explanation
The syntax of configuring load balancing on a Cisco switch is:
Switch(config)# port-channel load-balance method
Many methods can be used here. By default, the “src-dst-ip” (source and destination IP address) method is used for Layer 3 switching. Let’s take an example to understand more about this method.
EtherChannel_Load_balancing-src-dst-ip.jpg
In the topology above, Switch1 uses the “src-dst-ip” method to load balancing traffic to Switch2. With this method, only one link is used for a specific pair of source & destination IP address and the switch uses the XOR function to generate the hash that is used to determine which interface to use. Suppose the packets have the source IP of 1.1.1.1 & destination IP of 1.1.1.2. Write them in binary we get:
- 1.1.1 = 0000 0001.0000 0001.0000 0001.0000 0001
- 1.1.2 = 0000 0001.0000 0001.0000 0001.0000 0010
In this case we have only 2 interfaces in this channel group so the XOR function only gets the last bit, which means 1 XOR 0 = 1. Each interface is assigned an index that starts from 0 so Fa0/2 will be indexed 1 -> traffic will be sent over Fa0/2.
If we have 4 interfaces in a channel group then XOR function gets last 2 bits. If we have 8 interfaces, it gets 3 bits and so on. For example, with 8 interfaces the result will be 3 (because 001 XOR 010 = 011) -> Fa0/4 will be used.
Note: If the two address values have the same bit value, the XOR result is always 0. If the two address bits differ, the XOR result is always 1. For example, 0 XOR 0 = 0; 0 XOR 1 = 1; 1 XOR 0 = 1; 1 XOR 1 = 0.
In conclusion, the “port-channel load-balance src-dst-ip” command uses a pair of source & destination IP address to select the port to send traffic to -> B is correct.
Refer to the exhibit. Which statement is true about the display of the command “show pagp 1 neighbor” command?
show_pagp_neighbor.jpg
A. STP packets are sent out the Gi0/1 interface only.
B. STP packets are sent out both the Gi0/1 and Gi0/2 interfaces.
C. CDP packets are sent out the Gi0/1 interface only.
D. CDP packets are sent out the Gi0/2 interface only.
Answer: A
Explanation
DTP and CDP send and receive packets over all the physical interfaces in the EtherChannel while STP always chooses the first operational port in an EtherChannel bundle -> A is correct.
Refer to the exhibit. On the basis of the information that is generated by the show commands, which two EtherChannel statements are true? (Choose two)
show_etherchannel_summary.jpg
A. Interfaces FastEthernet 0/1 and 0/2 have been configured with the channel-group 1 mode desirable command.
B. Interfaces FastEthernet 0/3 and 0/4 have been configured with the no switchport command.
C. Interface Port-Channels 1 and 2 have been assigned IP addresses with the ip address commands.
D. Port-Channels 1 and 2 are providing two 400 Mbps EtherChannels.
E. Port-Channels 1 and 2 are capable of combining up to 8 FastEthernet ports to provide full-duplex bandwidth of up to 16 Gbps between a switch and another switch or host.
F. Switch SW1 has been configured with a Layer 3 EtherChannel.
Answer: A D
Explanation
In fact answer A is not totally correct because two ports Fa0/1 & Fa0/2 of Sw1 can use the “channel-group 1 mode auto” command while the peer ports use the “channel-group 1 mode desirable” command. But maybe it is the best choice in this case.
Answer B is not correct because this is a Layer 2 EtherChannel (from the lines “Po1 (SU)” & “Group state = L2″) but the “no switchport” is only used to configure Layer 3 EtherChannel.
Answer C is not correct because the port-channel is automatically created in a Layer 2 EtherChannel.
In this case we can see the ports are FastEthernet ports -> Port-Channels 1 and 2 are capable of combining up to 8 FastEthernet ports to provide full-duplex bandwidth of up to 1.6 Gbps (8 links of FastEthernet ports), not 16 Gbps. Port-Channels can provide up to 16 Gbps if they group 8 links of GigabitEthernet -> E is not correct.
SW1 has been configured with a Layer 2 EtherChannel (from the lines “Po1 (SU)” & “Group state = L2″) -> F is not correct.
Usually the EtherChannel protocol is shown when using the “show etherchannel summary” command (after the “Port-channel” column) but in this case we see no “protocol” column so we can assume it uses the default EtherChannel protocol PAgP.
There are 2 ports in each group so there are 4 Ethernet ports in total -> 4 x 100Mbps = 400Mbps in full duplex (which means “two 400 Mbps EtherChannels” in answer D) -> D is correct.
Which statement is true regarding the Port Aggregation Protocol?
A. Configuration changes made on the port-channel interface apply to all physical ports assigned to the portchannel interface.
B. Configuration changes made on a physical port that is a member of a port-channel interface apply to the port-channel interface.
C. Configuration changes are not permitted with Port Aggregation Protocol; instead, the standardized Link Aggregation Control Protocol should be used if configuration changes are required.
D. The physical port must first be disassociated from the port-channel interface before any configuration changes can be made.
Answer: A
Explanation
The port-channel interface represents for the whole bundle and all the configurations on this interface are applied to all physical ports that are assigned to this logical interface.
Note: We must manually create port-channel logical interface when configuring Layer 3 EtherChannels. The port-channel logical interface is automatically created when configuring Layer 2 EtherChannels (you can’t put Layer 2 ports into a manually created port channel interface).
An example of configuring Layer 3 EtherChannels with port-channel interfaces:
EtherChannel_Load_balancing-src-dst-ip.jpg
Switch1(config)# interface port-channel 1
Switch1(config-if)# no switchport
Switch1(config-if)# ip address 192.168.1.1 255.255.255.0
Switch1(config-if)# exit
Switch1(config)# interface range fastethernet0/1 -2
Switch1(config-if-range)# no switchport
Switch1(config-if-range)# no ip address
Switch1(config-if-range)# channel-group 1 mode desirable Switch2(config)# interface port-channel 1
Switch2(config-if)# no switchport
Switch2(config-if)# ip address 192.168.1.2 255.255.255.0
Switch2(config-if)# exit
Switch2(config)# interface range fastethernet0/1 -2
Switch2(config-if-range)# no switchport
Switch2(config-if-range)# no ip address
Switch2(config-if-range)# channel-group 1 mode auto
Note: The “no switchport” command is required to change interface from layer2 to layer3 mode.
Which three statements are true of the Link Aggregation Control Protocol (LACP)? (Choose three)
A. LACP is used to connect to non-Cisco devices.
B. LACP packets are sent with the command channel-group 1 mode desirable.
C. LACP packets are sent with the command channel-group 1 mode active.
D. Standby interfaces should be configured with a higher priority.
E. Standby interfaces should be configured with a lower priority.
Answer: A C D
Explanation
LACP is part of the IEEE specification 802.3ad so that it can be used on non-Cisco devices -> A is correct.
With mode “active”, the switch will send LACP packets, initiates negotiations with remote ports and willing to form a port-channel if it receives a response -> C is correct.
LACP uses the port priority with the port number to form the port identifier. The port priority determines which ports should be put in standby mode when there is a hardware limitation that prevents all compatible ports from aggregating.
An example of configuring LACP port priority:
Router(config-if)# lacp port-priority 100
Note: Valid range is from 1 to 65535. The higher the number, the lower the priority so standby interfaces should be configured with a higher priority -> D is correct.
Refer to the exhibit. What does the command channel-group 1 mode desirable do?
Interface FastEthernet 0/13
Channel-group 1 mode desirable
A. enables LACP unconditionally
B. enables PAgP only if a PAgP device is detected
C. enables PAgP unconditionally
D. enables Etherchannel only
E. enables LACP only if a LACP device is detected
Answer: C
Explanation
First, “desirable” is a mode on PAgP, not LACP. “enable PAgP unconditionally” means that port will send PAgP packets to form an EtherChannel port (initiate negotiations with other ports). A channel is formed with another port group in either desirable or auto mode.
Note:
Mode “auto” enables PAgP only if a PAgP device is detected and mode “on” forces the port to form a channel.
Which statement best describes implementing a Layer 3 EtherChannel?
A. EtherChannel is a Layer 2 and not a Layer 3 feature.
B. Implementation requires switchport mode trunk and matching parameters between switches.
C. Implementation requires disabling switchport mode.
D. A Layer 3 address is assigned to the channel-group interface.
Answer: C
Explanation
By default, the ports on a multilayer switch (MLS) will all be running in Layer 2 mode. A port must be configured as a routing port before it is configured as a Layer 3 EtherChannel -> require to use the “no switchport” command.
What are 2 types of Etherchannel?
- PAgP (Cisco Proprietary)
- LACP (IEEE Standard)
What must match between interfaces to form etherchannel?
- Duplex has to be the same.
- Speed has to be there same.
- Same native AND allowed VLANs.
- Same switchport mode (access or trunk).
How do you configure PAgP etherchannel?
interface port-channel 10
switchport mode trunk
interface fastehternet 0/10 [11]
channel-group 10 mode [Auto/Desirable]
How do you configure LACP etherchannel?
interface port-channel 10
switchport mode trunk
interface fastehternet 0/10 [11]
channel-group 10 mode [active/passive]
How many interface can be in a port channel?
8
Why do you always assign an even number of interfaces in a port channel?
Because a Port channel can not properly load balance with an odd number of links.
After an EtherChannel is configured between two Cisco switches, interface port channel 1 is in the down/down state. Switch A is configured with “channel-group 1 mode active”, while Switch B is configured with “channel-group 1 mode desirable”. Why is the EtherChannel bundle not working?
The switches are using mismatched EtherChannel negotiation modes.
Which statement about the use of PAgP link aggregation on a Cisco switch that is running Cisco IOS Software is true?
PAgP modes are off, auto, desirable, and on. Only the combinations auto-desirable, desirable- desirable, and on-on allow the formation of a channel.
Which EtherChannel negotiation protocol is configured on the interface f0/13 – f0/15?
Port Aggregation Protocol
A network engineer changed the port speed and duplex setting of an existing EtherChannel bundle that uses the PAgP protocol. Which statement describes what happens to all ports in the bundle?
PAgP changes the port speed and duplex for all ports in the bundle.
Which statement about using EtherChannel on Cisco IOS switches is true?
A switch can support up to eight compatibly configured Ethernet interfaces in an EtherChannel. The EtherChannel provides full-duplex bandwidth up to 800 Mbps only for Fast EtherChannel or 8 Gbps only for Gigabit EtherChannel.
A network engineer configured an Ethernet switch using these commands.
!
Switch1(config) # spanning-tree portfast bpdufilter default
!
Which statement about the spanning-tree portfast feature on the switch is true?
If an interface is enabled for portfast receives BDPU, the port goes through the spanning-tree listening, learning, and forwarding states
An EtherChannel bundle has been established between a Cisco switch and a corporate web server. The network administrator noticed that only one of the EtherChannel links is being utilized to reach the web server. What should be done on the Cisco switch to allow for better EtherChannel utilization to the corporate web server?
Adjust the EtherChannel load-balancing method based on source IP addresses.
An access switch has been configured with an EtherChannel port. After configuring SPAN to monitor this port, the network administrator notices that not all traffic is being replicated to the management server. What is a cause for this issue?
The port channel can be used as a SPAN source, but not a destination.
What is the result of the configuration?
The EtherChannels would form and function properly even though the load-balancing and EtherChannel modes do not match.
A network engineer tries to configure storm control on an EtherChannel bundle. What is the result of the configuration?
The settings will be applied to the EtherChannel bundle and all associated physical interfaces.
A network engineer must set the load balance method on an existing port channel. Which action must be done to apply a new load balancing method?
Configure the new load balancing method using port-channel load-balance