Score:0

How to make sure my link on a host is not a part of a LACP (LAG)

dj flag

How to make sure my link on a host is not a part of a LACP (LAG)?

I'm trying to start booting from PXE but DHCP-requests don't reach DHCP-server most of time. I only can boot intermittently from one host of four. However, installed Linux OS can obtain an IP address. So I wonder if link aggregation is set on a switch, but network owner just provide me incorrect information saying that they have disabled aggregation

Score:0
cn flag

For the LAG in general - you can't. Lots of vendor-specific LAG implementations are passive and do not emit anything, like a classic EtherChannel without PAgP or LACP.

For LACP (802.3ad) configured on the uplink switch in active mode do a Wireshark capture when link is up and look for LACP BPDUs with filter ether proto 0x8809. If you see anything it means that uplink expects this link to became a LAG member.

The above won't work if uplink is in LACP passive mode or any old-school pre-configured modes like PAgP that expect that other side is configured symmetrically.

Макс Кринж avatar
dj flag
I tried to setup bond-mode 802.3ad and it worked. I've seen in dump 0x8809 frames from server's interface to 01-80-C2-00-00-02 But if set active-backup mode it works too, without sending that frames. I still cannot figure out if the fact that bond works in 802.3ad mode means that LACP is configured on the switch side. Or it doesn't
Peter Zhabin avatar
cn flag
Do you see LACP BPDUs from the uplink when bond mode is set to 802.3ad? If your bond works, please provide the output of `cat /proc/net/bonding/bond0` when it is up.
Макс Кринж avatar
dj flag
It reads: `Bonding Mode: IEEE 802.3ad Dynamic link aggregation` `Transmit Hash Policy: layer3+4 (1)` `MII Status: up` `MII Pulling Interval (ms): 100` `Up Delay (ms): 0` `Down Delay (ms): 0` `Peer Notification Delay (ms): 0` `802.3ad info` `LACP rate:‘slow` `Min links: 0` `Aggregator selection policy (ad_select): stable` `System priority: 65535` `System MAC-address: 60:b3:11:21:85:40` `Active Aggregator Info:` `Aggregator ID: 1` `Number of ports: 1` `Actor Key: 21` `Partner Key: 1` `Partner Mac Address: 00 00:00:00:00 00`
Peter Zhabin avatar
cn flag
If this a complete output? If it is it means that your bond interface has no slaves linked to it and is defunct. If there were some slaves listed that you didn't include and bond actually works, please post complete output.
Макс Кринж avatar
dj flag
When bond mode is set to 802.3ad I only see this in pcap: 60:b3:11:21:85:40 > 01:80:c2:00:00:02, ethertype Slow Protocols (Ox8809), length 124: LaCPv1, length 110
Макс Кринж avatar
dj flag
full /proc/net/bonding/bond0: https://pastebin.pl/view/e86b2a08 It has slaves, I just omitted them
Peter Zhabin avatar
cn flag
All of your interfaces have partner as churned, so the LACP negotiation with peer has failed (which is expected as you see no LACP BPDU coming from the switch). So LACP is definitively not configured upstream in any form. For other forms of LAG see my original response, there's no way you can tell if any form of silent EtherChannel (like active-backup mode you have tried your side) is configured upstream. You can collect `tcpdump` on all interfaces while trying to send your DHCP requests on one of them to see if response comes on a different link, that will indicate a config issue upstream..
Макс Кринж avatar
dj flag
Thank you, very helpful!
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.