-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathvlan_example.yaml
53 lines (50 loc) · 906 Bytes
/
vlan_example.yaml
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
---
# host10 ---- vnet-br0 ---- host20
switches: 1
machines:
host10:
type: host
interfaces:
eth1:
ipv4: 10.0.101.1/24
mac: 00:00:00:00:11:11
bridge: 0
vlans:
vlan.10:
id: 10
link: eth1
addresses:
- 10.0.10.1/24
vlan.20:
id: 20
link: eth1
addresses:
- 10.0.20.1/24
vlan.30:
id: 30
link: eth1
addresses:
- 10.0.30.1/24
host20:
type: host
interfaces:
eth2:
ipv4: 10.0.202.2/24
mac: 00:00:00:00:22:22
bridge: 0
vlans:
vlan.10:
id: 10
link: eth2
addresses:
- 10.0.10.2/24
vlan.20:
id: 20
link: eth2
addresses:
- 10.0.20.2/24
vlan.30:
id: 30
link: eth2
addresses:
- 10.0.30.2/24