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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
## Color coding:
#########################
## Main FRR: #f08080 red
## Switches: #d0e0d0 gray
## RIP: #19e3d9 Cyan
## RIPng: #fcb314 dark yellow
## OSPFv2: #32b835 Green
## OSPFv3: #19e3d9 Cyan
## ISIS IPv4 #fcb314 dark yellow
## ISIS IPv6 #9a81ec purple
## BGP IPv4 #eee3d3 beige
## BGP IPv6 #fdff00 yellow
##### Colors (see http://www.color-hex.com/)
graph ospf_topo1 {
label="ospf dual stack";
# Routers
r1 [
label="r1\nrtr-id 1.1.1.1/32",
shape=doubleoctagon,
fillcolor="#f08080",
style=filled,
];
r2 [
label="r2\nrtr-id 2.2.2.2/32",
shape=doubleoctagon,
fillcolor="#f08080",
style=filled,
];
r3 [
label="r3\nrtr-id 3.3.3.3/32",
shape=doubleoctagon,
fillcolor="#f08080",
style=filled,
];
r4 [
label="r4\nrtr-id 4.4.4.4/32",
shape=doubleoctagon,
fillcolor="#f08080",
style=filled,
];
r5 [
label="r5\nrtr-id 5.5.5.5/32",
shape=doubleoctagon,
fillcolor="#f08080",
style=filled,
];
# Switches
s1 [
label="s1\n10.0.13.0/24\n2013:13::/64",
shape=oval,
fillcolor="#d0e0d0",
style=filled,
];
s2 [
label="s2\n10.0.23.0/24\n2023:23::/64",
shape=oval,
fillcolor="#d0e0d0",
style=filled,
];
s3 [
label="s3\n10.0.34.0/24\n2034:34::/64",
shape=oval,
fillcolor="#d0e0d0",
style=filled,
];
s4 [
label="s4\n10.0.24.0/24\n2024:24::/64",
shape=oval,
fillcolor="#d0e0d0",
style=filled,
];
s5 [
label="s5\n10.0.45.0/24\n2045:45::/64",
shape=oval,
fillcolor="#d0e0d0",
style=filled,
];
# Connections
subgraph cluster1 {
label="area 1.1.1.1"
r1 -- s1 [label="eth0\n.1\n::1"];
r3 -- s1 [label="eth0\n.3\n::3"];
r3 -- s2 [label="eth1\n.3\n::3"];
r2 -- s2 [label="eth0\n.2\n::2"];
}
subgraph cluster0 {
label="area 0.0.0.0"
r3 -- s3 [label="eth2\n.3\n::3"];
r4 -- s3 [label="eth0\n.4\n::4"];
r2 -- s4 [label="eth1\n.2\n::2"];
r4 -- s4 [label="eth1\n.4\n::4"];
}
subgraph cluster2 {
label="area 2.2.2.2"
r4 -- s5 [label="eth2\n.4\n::4"];
r5 -- s5 [label="eth0\n.5\n::5"];
}
}
|