Skip to content

Commit

Permalink
Added port-vlans exmaple
Browse files Browse the repository at this point in the history
Signed-off-by: Patryk Strusiewicz-Surmacki <patryk-pawel.strusiewicz-surmacki@external.telekom.de>
  • Loading branch information
p-strusiewiczsurmacki-mobica committed Feb 7, 2025
1 parent 4902e90 commit 35b5e1c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions examples/bridge_port_vlans.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
network:
version: 2
renderer: networkd
ethernets:
eno1: {}
switchport: {}
bridges:
br0:
interfaces: [eno1, eno2]
parameters:
vlan-filtering: true
vlan-default-pvid: 42
vlans: [10 pvid untagged, 20 untagged, 50]
port-vlans:
eno1: [2 pvid untagged, 4 untagged]
eno2: [4000-4094, 0 pvid, 30 untagged] # 0 pvid can only be used with networkd backend

0 comments on commit 35b5e1c

Please sign in to comment.