-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
examples: pass basic l2 configuration
bisdn/bisdn-linux#101 has raised the attention to the need of having a set of scripts to setup the switch with a default behaviour that remains. This PR adds a set of files to enable this behaviour. Signed-off-by: Rubens Figueiredo <[email protected]>
- Loading branch information
Showing
3 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
examples/bridging/networkd-l2bridge-example/20-bridge.l2-learn.netdev
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[NetDev] | ||
Name=swbridge | ||
Kind=bridge | ||
|
||
[Bridge] | ||
DefaultPVID=1 | ||
VLANFiltering=1 |
7 changes: 7 additions & 0 deletions
7
examples/bridging/networkd-l2bridge-example/20-bridge.l2-learn.network
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[Match] | ||
Name=swbridge | ||
|
||
[BridgeVLAN] | ||
PVID=1 | ||
EgressUntagged=1 | ||
VLAN=1 |
5 changes: 5 additions & 0 deletions
5
examples/bridging/networkd-l2bridge-example/20-port.l2-learn.network
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[Match] | ||
Name=port* | ||
|
||
[Network] | ||
Bridge=swbridge |