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

Native routed VLAN breaks all other VLANs on the same trunk #421

Closed
ipspace opened this issue Sep 9, 2022 · 1 comment
Closed

Native routed VLAN breaks all other VLANs on the same trunk #421

ipspace opened this issue Sep 9, 2022 · 1 comment

Comments

@ipspace
Copy link
Owner

ipspace commented Sep 9, 2022

The following topology creates three routed segments on the R1-R2 link (native, red, and blue):

defaults.device: iosv
module: [ vlan ]
vlans:
  red:
  blue:
  pxeboot:
    mode: route

nodes:
  r1:
  r2:

links:
- r1:
  r2:
  vlan.trunk: [ red, blue, pxeboot ]
  vlan.native: pxeboot

Removing native VLAN results in correct data structure (two bridged VLANs, one routed VLAN on a VLAN-tagged subinterface). It looks like the vlan.mode from pxeboot VLAN is copied to the main interface (too soon?). Bad idea...

@ipspace
Copy link
Owner Author

ipspace commented Sep 9, 2022

See also #415

jbemmel pushed a commit to jbemmel/netlab that referenced this issue Sep 10, 2022
fixes ipspace#421)

* VLAN trunk is created before changing any link attributes based on access/native VLAN
* On routed access/native VLANs, set vlan.mode on all interfaces, not just on link
  (because it won't be copied into interface attributes)
* Check whether routed native VLAN is supported by the platform
  (implements feature flag discussed in ipspace#415)
* Cisco IOSv is the only device so far known to support routed native VLANs.
  FRR/Cumulus should be able to do that as well, but that needs to be verified.
* Add 'routed native VLAN' test case
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

1 participant