Comments (2)
Initial systemd-networkd configuration:
/etc/systemd/network/10-swbridge.netdev
[NetDev]
Name=swbridge
Kind=bridge
[Bridge]
DefaultPVID=none
VLANFiltering=1
/etc/systemd/network/10-swbridge.network
[Match]
Name=swbridge
[BridgeVLAN]
VLAN=2
/etc/systemd/network/20-port7.network
[Match]
Name=port7
[Network]
Bridge=swbridge
[BridgeVLAN]
VLAN=2
PVID=2
-> will create this grouptable:
groupId = 0x00020007 (L2 Interface, VLAN ID = 2, Port ID = 7): duration: 5, refCount:1
bucketIndex = 0: outputPort = 7 (Physical) popVlanTag = 0 allowVlanTranslation = 0
When updating the /etc/systemd/network/20-port7.network file
[Match]
Name=port7
[Network]
Bridge=swbridge
[BridgeVLAN]
VLAN=2
PVID=2
EgressUntagged=2
by adding EgressUntagged=2
we expect the grouptable entry mentioned before to change from popVlanTag = 0
to popVlanTag = 1
, but currently nothing changes until the configured port is detached and reattached to the bridge (either manually or by rebooting). The configuration change is however correctly reflected in the kernel, just not forwarded to the grouptables.
from basebox.
until the configured port is detached and reattached to the bridge
I think I stumbled over it earlier today as well and deleting and readding the vlan worked, too. I did not need to reattach the port to the bridge.
So (starting with no vlan assigned to port7):
bridge vlan add vid 2 dev port7
bridge vlan add vid 2 dev port7 pvid untagged
didn't work, but
bridge vlan add vid 2 dev port7
bridge vlan del vid 2 dev port7
bridge vlan add vid 2 dev port7 pvid untagged
worked (for me).
So maybe we miss vlan update/change notifications, if these exist, or don't properly handle them.
from basebox.
Related Issues (20)
- baseboxd exception with GLOG_v=3 in cnetlink.cc on line 1080 HOT 2
- Untagged packets on port without a PVID should be handled HOT 1
- Incorrect ipv6 Termination MAC entries when enslaving port to bridge HOT 4
- baseboxd: properly drop termination mac entry reference when removing l3 addresses from vlan interfaces
- Termination MAC entries not being removed after changing SVI MAC address HOT 2
- ip neighbors are assumed and made routable regardless of actually having a route
- Termination MAC cleanup on bonds may sometimes fail HOT 1
- DHCP packets are not received by port interfaces HOT 1
- BGP routes are not getting cleared in the ASIC tables under stress tests HOT 2
- Assigned MACs are not used on data ports
- Question: Using keepalived with option use_vmac HOT 1
- carrier state may get out of sync if ports are set up during start up
- generic glog configuration options are undocumented
- baseboxd should properly cleanup behind itself on shutdown
- VxLAN tunneled packets are always untagged
- received VxLAN tunneled packets are copied to controller HOT 1
- Help about enabling QinQ HOT 6
- VxLAN packets are encapsulated with an outer VLAN tag with VID 1 on Trident3
- Bridge Ageing Time Configuration
- OFDPA fielad for Usage (STG) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from basebox.