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 · 3 comments
Open

macvlan and vr-based nodes #1814

hellt opened this issue Jan 10, 2024 · 3 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

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

2 participants