04-15-2022 12:45 AM
Hi Need your help to understand for LACP I start continuous ping between PC0 and PC1 over etherchannel. When I shut one interface fa0/2 there is no ping drop but when I bring the interface back up I observer ping drop
Can you please explain me what is the reason for it and is it normal behavior of LACP as it is a Link aggregation and not a real HA solution. As once link comes back up it starts running algorithms again so etherchannel recalculates which ethernet to select for traffic flow
Solved! Go to Solution.
04-18-2022 01:57 AM
Switch mode access suggests where the end device is connected. (use case of Port-channel always pass more vlan tagging one switch to another switch).
If you like to use only one VLAN, then you need to use with control switch to allow VLAN command in the port channel.
add load-balance :
port-channel load-balance src-dst-mac
Can you post the output :
show run (from both the switches - latest running config)
show EtherChannel summary
04-15-2022 02:28 PM
Hello,
Hopefully this helps some.
A couple things I noticed.
1.) Your port channel was in access mode. I would change that to trunk mode as they are connected to another switch and not an end device. I don't think its required but if you want more than 1 VLAN across it at some point, it will fix that.
2.) I created an Interface VLAN 1 and put an IP address on each switch 192.168.10.3\192.168.10.4 255.255.255.0 respectively. This allowed me to do a continuous ping of 1000 packets to test
3.) When I shut down an interface and brought it back up it took a long time to come up and dropped pings as you said. My BEST guess for this happening is its still going through its initial spanning-tree states before actually sending traffic. So while it could show as UP in the port channel it may not be sending traffic until this process completes. I lost several packets while this was going on.
4.) I added this command to both port-channels 'spanning-tree portfast trunk' (this basically brings up the interface right away bypassing spanning-tree timers). This allowed me to achieve 100% continuous ping.
Hope that helps out a bit.
-David
04-16-2022 06:08 PM
Thankyou David,
I would like to keep it in access mode to replicate my production network. Your findings regarding STP is insightful.
To set etherchannel as trunk and enabling portfast we get this warring which indicates it is not best practice to use when connecting switches
Switch(config-if)#spanning-tree portfast trunk
%Warning: portfast should only be enabled on ports connected to a single
host. Connecting hubs, concentrators, switches, bridges, etc... to this
interface when portfast is enabled, can cause temporary bridging loops.
Use with CAUTION
Thank you
04-17-2022 05:44 AM
Yes. That is just the general warning but it should still have taken. If you want to keep it in access mode on a trunk link then don't use portfast. You might be able to play with modifying spanning-tree timers to see if this improves the ping loss as well. Make sure you're using RSTP or at least not the original Spanning-tree modes with slower timers.
04-18-2022 11:29 PM
Thank you David. It is working fine now after enabling portfast trunk on port channel interface.
interface Port-channel1
switchport mode trunk
spanning-tree portfast trunk
Thank you
04-19-2022 03:31 PM
PortFast in trunk connect two SW, I don't recommend this,
there is time that data not pass due to STP but run portfast lead in some case to Loop.
Use other protocol that have low time restore is better, from My side.
04-19-2022 04:18 PM
After looking into it more it seems it's only best practice to apply spanning-tree portfast trunk trunk to maybe a router with a Router on a Stick configuration or a server with multiple VLANs acting as a trunk. Thank you @MHM Cisco World for digging into it a bit more.
It does not look like good practice to issue that command when its another Bridging (L2) device. If that did fix your issue I would point the culprit to spanning tree still and try and modify the forward delay (listening/Learning) timers. Also I make sure all devices are running RSTP.
-David
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide