Skip to content
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 probe doesn't add switches to the graph until a tcpdump command is explicitly executed on the interface #1962

Open
tu-pm opened this issue Aug 23, 2019 · 3 comments

Comments

@tu-pm
Copy link

tu-pm commented Aug 23, 2019

Hi, I'm currently testing skydive on a virtual test environment. I've noticed that unlike when tested on a physical network, if a lldp probe is listening on a specified interface on a libvirt guest, it seems not to be able to automatically detect lldp packets sent to that interface and display on the graph. But when I run a tcpdump command on that interface, just to make sure that those packets have arrived, then the probe can finally detect the switch sending them. Can anyone explain it to me?

@safchain
Copy link
Collaborator

Hi, I suspect an issue with the destination MAC address. Skydive adds multicast address to the interface in order to get LLDP packets. I think the issue disappear with tcpdump because of the promiscuous mode. Can you confirm that the issue disappear if you set this mode to your interface.

ip link set promisc on dev eth0

Can you check if you see in the agent log the follow error message

Failed to add multicast address

Thanks

@tu-pm
Copy link
Author

tu-pm commented Aug 26, 2019

Thanks for answering @safchain,

Adding promiscuous mode to the interface does solve my problem, and I don't have any error messages about attaching multicast addresses. This is strange because if the multicast addresses are added to the interface, the probe should be able to capture LLDP packets without having to go to promiscuous mode. Does the virtual environment have anything to do with this?

I've run into this problem in two cases:

  1. Run skydive binary on a libvirt guest
  2. Run skydive-agent on a docker container as a part of kolla-ansible deployment

@bechavod
Copy link

bechavod commented Sep 3, 2019

@safchain
Hi any idea how to fix : "Failed to add multicast address"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants