New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LLDP packets are not received on bond interface #295
Comments
❦ 7 août 2018 10:11 -0700, fazorboy <notifications@github.com>:
Using options _/etc/sysconfig/lldpd_ file to overwrite
_-m !* -C bond0 -I bond0_
Do not use -I bond0. You need to specify physical interfaces instead.
For example, you can use eth0,eth1.
--
Program defensively.
- The Elements of Programming Style (Kernighan & Plauger)
|
Thanks for quick reply. I have been using bondX since long time and had no issues until i came to centos 7.5. Is that os specific or this lldp version specific? below link also says bondig support is fine since kernel >2.6.27. Please help me understand the change in behavior. Note: i have another code which expects packets on bond0(that's primary interface for me) and expected to send using same interface bond0 in my came. Thanks in advance. |
Bonding support is the ability to correctly receive packets on physical interfaces despite being attached to a bond interface. In the past, Linux made it very hard to grab packets before they were stolen by the bond device. On the other side, who is sending LLDP packets? |
Thanks i understood the bond part now.
lldp packets are being sent by another machine which get to this machine(cent 7.5 machine) and it also send some other information which is received by first machine(which is working fine). i still need to understand the behavior change. |
LLDP packets are special by using a link-local target MAC address. These addresses are not expected to pass a bridge. It's far possible a kernel change added restrictions on MAC addresses that will be transmitted to the bond interface. As tcdump doesn't see the packet, lldpd cannot see it either. You can use Other than that, I have no idea what has changed, but again, forcing lldpd to listen on a non-physical interface is not an expected configuration. |
Thanks Vincent! I wanted to know the meaning of below warning: thanks in advance. |
The warning is harmless and should be displayed only once. It means you may not get all the speeds available for Dot3 TLVs (anything above 10G). |
Thanks Vincent. thanks for quick replies. |
Hi Vincent,
First of all thank you for working on a great product.
I just migrated from centos 7.4. to 7.5, in centos 7.4 lldp packets were getting sent and received fine on bond interface. But with centos 7.5 i see only sent none received.
i have ran lldp with -dddd option nothing suspicious as such, with -ddd i see a warning:
[WARN/interfaces] cannot get ethtool link information with GLINKSETTINGS (requires 4.9+): Operation not permitted
More output:
this is coming from https://github.com/vincentbernat/lldpd/blob/master/src/daemon/interfaces-linux.c
but not sure if that is the cause of failure and how to fix that. (On centos7.4 this warning is not seen)
Using options /etc/sysconfig/lldpd file to overwrite
-m !* -C bond0 -I bond0
checked with tcpdump and saw packets are sent but not received.
Now if i change interface pattern from bond to ethX i see packets are received/sent fine.
Expected outcome
lldpcli show neighbors details
should show received lldp.Current outcome
lldpcli show neighbors details
shows empty.Additional information
lldpd -vv
:ps -fp $(pgrep -d, -x lldpd)
:uname -sro
:tcpdump -pni bond0 -vv -X ether host 01:80:c2:00:00:0e
:Let me know if you want me to try something or need more information.
Thank you
The text was updated successfully, but these errors were encountered: