Skip to content

Commit 69fe1e3

Browse files
committed
routing-policy: Add an example with a blackhole rule and some iif statements
1 parent 9948266 commit 69fe1e3

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
network:
2+
version: 2
3+
ethernets:
4+
eno0:
5+
addresses:
6+
- 192.168.3.42/24
7+
dhcp4: no
8+
routes:
9+
- to: default
10+
via: 192.168.3.1
11+
eno1:
12+
addresses:
13+
- 192.168.4.24/24
14+
eno2:
15+
addresses:
16+
- 192.168.5.78/24
17+
routes:
18+
- to: default
19+
via: 192.168.4.1
20+
table: 100
21+
routing-policy:
22+
- from: 192.168.5.0/24
23+
iif: eno1
24+
table: 100
25+
preference: 100
26+
- from: 192.168.5.0/24
27+
iif: eno1
28+
type: blackhole
29+
preference: 200

0 commit comments

Comments
 (0)