-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathexample.yml
40 lines (37 loc) · 1.12 KB
/
example.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
example-network:
host:
ifaces:
host-veth:
type: "veth"
address: "192.168.0.5/24"
netns:
host1:
ifaces:
host1-veth1:
type: "veth"
address: "192.168.0.1/24"
peer: "host2-veth1"
host1-veth2:
type: "veth"
address: "192.168.1.5/24"
peer: "host2-veth2"
routes:
- route:
dest: "default"
gateway: "192.168.0.1"
- route:
dest: "192.168.0.100"
gateway: "192.168.0.100"
host2:
ifaces:
host2-veth1:
type: "veth"
address: "192.168.0.2/24"
peer: "host1-veth1"
host2-veth2:
type: "veth"
address: "192.168.1.3/24"
routes:
- route:
dest: "default"
gateway: "192.168.0.1"