Skip to content

Commit 46964ca

Browse files
docs: Add example for configuring a Linux Bridge using network_state variable
Signed-off-by: Wen Liang <[email protected]>
1 parent 1630646 commit 46964ca

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1330,6 +1330,50 @@ network_state:
13301330
dhcp: false
13311331
```
13321332

1333+
Configuring the Linux bridge with custom multicast, stp options, along with a port
1334+
with specific stp settings:
1335+
1336+
```yaml
1337+
network_state:
1338+
interfaces:
1339+
- name: br0
1340+
type: linux-bridge
1341+
state: up
1342+
bridge:
1343+
options:
1344+
gc-timer: 29657
1345+
group-addr: 01:80:C2:00:00:00
1346+
group-forward-mask: 0
1347+
group-fwd-mask: 0
1348+
hash-max: 4096
1349+
hello-timer: 0
1350+
mac-ageing-time: 300
1351+
multicast-last-member-count: 2
1352+
multicast-last-member-interval: 100
1353+
multicast-membership-interval: 26000
1354+
multicast-querier: false
1355+
multicast-querier-interval: 25500
1356+
multicast-query-interval: 12500
1357+
multicast-query-response-interval: 1000
1358+
multicast-query-use-ifaddr: false
1359+
multicast-router: auto
1360+
multicast-snooping: true
1361+
multicast-startup-query-count: 2
1362+
multicast-startup-query-interval: 3125
1363+
stp:
1364+
enabled: false
1365+
forward-delay: 15
1366+
hello-time: 2
1367+
max-age: 20
1368+
priority: 32768
1369+
vlan-protocol: 802.1q
1370+
port:
1371+
- name: eth1
1372+
stp-hairpin-mode: false
1373+
stp-path-cost: 100
1374+
stp-priority: 32
1375+
```
1376+
13331377
Configuring the route:
13341378

13351379
```yaml

0 commit comments

Comments
 (0)