Replies: 7 comments 5 replies
-
Yes. There's no difference between a regular interface and a native routed VLAN.
That's exactly as it should be. Native VLAN makes sense only on trunk ports, it's called access VLAN on non-trunk ports. |
Beta Was this translation helpful? Give feedback.
-
In my case it breaks the topology I want to pass multiple vlans to a node, hence I put a trunk port. I need one of those vlans to be untagged - used for PXE boot - so I set a native vlan. If I add 'mode: route' to that vlan, the setting is silently ignored The code should not auto-convert a native routed vlan to a regular interface if its part of a trunk port |
Beta Was this translation helpful? Give feedback.
-
I want to pass multiple vlans to h1, including a native untagged one. If I add The difference is having a working setup, or not |
Beta Was this translation helpful? Give feedback.
-
If an untagged routed VLAN is the only vlan on a port, then it can be replaced by a native IP interface However, if an untagged routed VLAN is part of a trunk containing other VLANs, then the interface needs to be tagged. So, in order to realize a "routed" native VLAN, it needs to be configured as "bridged", added to a mac-vrf together with a separate IRB interface which has the IP and performs the routing ("irb" effectively, unless mac learning would be disabled explicitly). If the native VLAN is the only VLAN, none of this is necessary and you can put an untagged, routed native IP interface instead. |
Beta Was this translation helpful? Give feedback.
-
If I were to focus solely on SR Linux, I'd simply refrain from using routed native vlans in my designs, and there would be no issue. However, SR Linux runs on top of Broadcom chipsets, and they have certain limitations and particularities. I suspect this is one of them. The feature flag solves that That would leave users of platforms that do support routed native vlans hanging though - so in my mind, the issue starts there (Setting mode=route removes native vlan) |
Beta Was this translation helpful? Give feedback.
-
With all due respect, I may not "get it" but the current implementation remains broken for platforms that don't supported routed native vlans. Meaning The issue is that the 'native' flag gets removed before 'check_native_routed_vlan' gets a chance to run. There is no need for native VLAN in the final output, but it needs to remain in place long enough for the check to happen. I would suggest moving it earlier: As soon as a 'native' vlan is defined on a port, check if it's mode is not "routed" or the platform supports routed vlans |
Beta Was this translation helpful? Give feedback.
-
Some of the above has been addressed with fixes in VLAN module. |
Beta Was this translation helpful? Give feedback.
-
A vlan with mode=route cannot be set as native; the resulting YAML does not include it
Is that intended?
Note that SR Linux only supports bridged untagged vlans on trunk ports, we should probably have a flag for this and validate/error out
Beta Was this translation helpful? Give feedback.
All reactions