@@ -10,6 +10,9 @@ In folder nodeconf/
10
10
- host folders contain start.sh for each host
11
11
- sets IPv6 address for hosts
12
12
- adds IPv6 routing to gateway
13
+ - datacenter folders contain start.sh for each datacenter
14
+ - sets IPv6 address for datecenters
15
+ - adds IPv6 routing to gateway
13
16
- router folders contain
14
17
- zebra.conf
15
18
- sets for each interface the IPv6 address
@@ -42,6 +45,12 @@ host - router links:
42
45
h82 - r8: fd00:0:82::2/64 r8 - h82: fd00:0:82::1/64
43
46
h83 - r8: fd00:0:83::2/64 r8 - h83: fd00:0:83::1/64
44
47
48
+ datacenter - router links:
49
+
50
+ hdc1 - r2: fcff:2:1::2/48 r2 - hdc1: fcff:2:1::1/48
51
+ hdc2 - r8: fcff:8:1::2/48 r8 - hdc2: fcff:8:1::1/48
52
+ hdc3 - r5: fcff:5:1::2/48 r5 - hdc3: fcff:5:1::1/48
53
+
45
54
router - router links:
46
55
47
56
r1 -r2: fcf0:0:1:2::1/64 r2 - r1: fcf0:0:1:2::2/64
@@ -53,4 +62,24 @@ router - router links:
53
62
r5 -r6: fcf0:0:5:6::1/64 r6 - r5: fcf0:0:5:6::2/64
54
63
r6 -r7: fcf0:0:6:7::1/64 r7 - r6: fcf0:0:6:7::2/64
55
64
r6 -r8: fcf0:0:6:8::1/64 r8 - r6: fcf0:0:6:8::2/64
56
- r7 -r8: fcf0:0:7:8::1/64 r8 - r7: fcf0:0:7:8::2/64
65
+ r7 -r8: fcf0:0:7:8::1/64 r8 - r7: fcf0:0:7:8::2/64
66
+
67
+
68
+ Note that datacenters are special hosts, which have a public address.
69
+
70
+
71
+ The file etc-hosts in the topology folder maps each IP address to its hostname.
72
+
73
+ For example,
74
+ fcff:1::1 r1
75
+ fd00:0:11::2 h11
76
+ fcff:2:1::2 hdc1
77
+ ...
78
+
79
+ When you start the topology, the entries defined in this file are loaded and added to the system /etc/hosts file.
80
+
81
+ This allows you to ping the nodes using their hostnames instead of the IP addresses:
82
+ h11# ping6 h83
83
+ h83# ping6 h11
84
+
85
+ The entries are automatically removed from the /etc/hosts file when the emulation is stopped.
0 commit comments