Skip to content

Commit 8e4ea93

Browse files
committed
Add docs for 8routers topology
1 parent a28cd13 commit 8e4ea93

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

nets-unmantained/8routers/README.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ In folder nodeconf/
1010
- host folders contain start.sh for each host
1111
- sets IPv6 address for hosts
1212
- 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
1316
- router folders contain
1417
- zebra.conf
1518
- sets for each interface the IPv6 address
@@ -42,6 +45,12 @@ host - router links:
4245
h82 - r8: fd00:0:82::2/64 r8 - h82: fd00:0:82::1/64
4346
h83 - r8: fd00:0:83::2/64 r8 - h83: fd00:0:83::1/64
4447

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+
4554
router - router links:
4655

4756
r1 -r2: fcf0:0:1:2::1/64 r2 - r1: fcf0:0:1:2::2/64
@@ -53,4 +62,24 @@ router - router links:
5362
r5 -r6: fcf0:0:5:6::1/64 r6 - r5: fcf0:0:5:6::2/64
5463
r6 -r7: fcf0:0:6:7::1/64 r7 - r6: fcf0:0:6:7::2/64
5564
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

Comments
 (0)