Score:0

Can LACP run over Linux tunnel devices?

in flag

I'm looking for a way to know if a tunnel device is up or down without needing to use ping myself. Every single tunnel device (gre, ipip, l2tp, geneve, etc) does not have a logical mechanism to decide if the tunnel is up or down, it is determined by the ip command. Maybe IPSec can do that (because you can look at the status of IPSec) but that's more work than I want to go to.

To address this situation I thought of using lacp (bonding, mode 802.3ad) over a tunnel device but after configuring the bond interface as the master of a geneve devices, I cannot see any LACP conversation over geneve (either in stats or with tcpdump.) This might be complicated by the fact that geneve does not advertise a speed or duplex - which I expect will be the same for other tunnels?

The problem appears to be that none of the virtual network devices that are tunnels advertise a "speed" - except for "tun"?

djdomi avatar
za flag
i think the Question will be answered with "it _depenends_" due the fact in case of the Hardware Abilites.
Score:0
in flag

I did a lot more reading and testing. The answer is no - kind of. For LACP to work, the links over which it is being used must advertise a link speed. For the "virtual" network interfaces in Linux, only the tun driver does that and it advertises a link speed of 10Mbps.

I've opened a Linux bug for this to be ignored with: https://bugzilla.kernel.org/show_bug.cgi?id=213821

In short the answer is that if "ethtool" doesn't show you the link speed for a network interface then you can't use LACP over it.

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.