-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathexample-routing.yml
65 lines (56 loc) · 1.31 KB
/
example-routing.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
example-network-subnet:
host:
ifaces:
veth0:
type: "veth"
address: "192.168.2.254/24"
peer: "rt0-veth0"
routes:
- route:
gateway: "192.168.2.1"
dest: "192.168.0.0/24"
- route:
gateway: "192.168.2.1"
dest: "192.168.1.0/24"
netns:
rt0:
ifaces:
rt0-veth0:
type: "veth"
address: "192.168.2.1/24"
peer: "veth0"
rt0-veth1:
type: "veth"
address: "192.168.1.254/24"
peer: "rt1-veth0"
routes:
- route:
gateway: "192.168.2.254"
dest: "default"
- route:
gateway: "192.168.1.1"
dest: "192.168.0.0/24"
rt1:
ifaces:
rt1-veth0:
type: "veth"
address: "192.168.1.1/24"
peer: "rt0-veth1"
rt1-veth1:
type: "veth"
address: "192.168.0.254/24"
peer: "veth1"
routes:
- route:
gateway: "192.168.1.254"
dest: "default"
host1:
ifaces:
veth1:
type: "veth"
address: "192.168.0.1/24"
peer: "rt1-veth1"
routes:
- route:
gateway: "192.168.0.254"
dest: "default"