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

macvlan and vr-based nodes #1814

Open
hellt opened this issue Jan 10, 2024 · 4 comments
Open

macvlan and vr-based nodes #1814

hellt opened this issue Jan 10, 2024 · 4 comments

Comments

@hellt
Copy link
Member

hellt commented Jan 10, 2024

It has been reported that vr-based nodes have datapath connectivity issue when using the macvlan mode.

Considering the following topology:

name: mvlantest


topology:
  kinds:
    vr-sros:
      image: vrnetlab/vr-sros:22.5.R1
      license: license-vsr-i-22.txt
 
  nodes:
    pe1:
      kind: vr-sros

  links:
    - endpoints: ["pe1:eth1", "macvlan:ens33"]

the following has been observed:

The ping replies initiated from vr node to an IP reachable from the macvlan segment do not propagate to the macvlan interface from the parent interface:

image

I think this might be related to the tc mirred redirect rules, which might require some tuning for macvlan interfaces?

@hellt
Copy link
Member Author

hellt commented Jan 10, 2024

setting the macvlan mode to passthru solved this
need to check if our default bridge mode must be switched to passthru

@steiler
Copy link
Collaborator

steiler commented Jan 10, 2024

Passthru: allows a single VM to be connected directly to the physical interface.

I don't think this is what we want?!
I exposed the mode in the extensive version of the MacVlan link definition. So simply set it that way.
https://containerlab.dev/manual/topo-def-file/#macvlan

@hellt
Copy link
Member Author

hellt commented Jan 10, 2024

the question is why in bridge mode connectivity breaks, and what passthru does differently

@marcosfsch
Copy link
Contributor

marcosfsch commented Sep 19, 2024

I was testing this scenario and confirm that connectiviy works only with passthru mode, but LLDP doesn't. I fixed the issue setting the corresponding ethX contaner interface to promiscuous mode.
I believe the reason why bridge mode doesn't work is because the interface insede QEMU is using a different mac address than tha macvlan interface. Probably if it uses the same one it should work transparently.

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