-
Notifications
You must be signed in to change notification settings - Fork 0
/
dumbell-network-no-cost.yaml
61 lines (55 loc) · 1.17 KB
/
dumbell-network-no-cost.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
54
55
56
57
58
59
60
61
#
# This yaml file describes a simple dumbell network with two routers (r1 and r2) and 3 hosts per side.
#
# The network topology is as follows:
#
# (h1,h2,h3) --- r1 --- r2 --- (h4,h5,h6)
#
routers:
# Router 1 - left side of the dumbell
r1:
# Interface where users connect to
eth0:
address: 192.168.0.1
mask: 255.255.255.240
# Intra-router interface
eth1:
address: 10.0.2.1
mask: 255.255.255.0
# Router 2 - right side of the dumbell
r2:
# Intra-router interface
eth0:
address: 10.0.2.2
mask: 255.255.255.0
# Interface where other users can connect to
eth1:
address: 192.168.1.1
mask: 255.255.255.0
hosts:
# The left side of the dumbell
h1:
eth0:
address: 192.168.0.5
mask: 255.255.255.240
h2:
eth0:
address: 192.168.0.6
mask: 255.255.255.240
h3:
eth0:
address: 192.168.0.7
mask: 255.255.255.240
# Right side of the dumbell
h4:
eth0:
address: 192.168.1.100
mask: 255.255.255.0
h5:
eth0:
address: 192.168.1.101
mask: 255.255.255.0
h6:
eth0:
address: 192.168.1.102
mask: 255.255.255.0