-
Notifications
You must be signed in to change notification settings - Fork 6
/
bgp-frr.clab.yml
96 lines (84 loc) · 2.46 KB
/
bgp-frr.clab.yml
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
# This is a data centre topology using FRRouting
name: fdc
topology:
defaults:
kind: linux
# Choose one of the following two images for the hosts
# depending on which tools you need
image: wbitt/network-multitool:alpine-minimal
#image: wbitt/network-multitool:alpine-extra
# image: nicolaka/netshoot:latest
nodes:
spine01:
image: quay.io/frrouting/frr:9.1.0
binds:
- config/spine1:/etc/frr
mgmt-ipv4: 172.20.20.11
group: spine
spine02:
image: quay.io/frrouting/frr:9.1.0
binds:
- config/spine2:/etc/frr
mgmt-ipv4: 172.20.20.12
group: spine
leaf01:
image: quay.io/frrouting/frr:9.1.0
binds:
- config/leaf1:/etc/frr
mgmt-ipv4: 172.20.20.21
group: leaf
leaf02:
image: quay.io/frrouting/frr:9.1.0
binds:
- config/leaf2:/etc/frr
mgmt-ipv4: 172.20.20.22
group: leaf
leaf03:
image: quay.io/frrouting/frr:9.1.0
binds:
- config/leaf3:/etc/frr
mgmt-ipv4: 172.20.20.23
group: leaf
host11:
exec:
- ip addr add 192.168.11.2/24 dev eth1
- ip route replace 0/0 via 192.168.11.1
group: server
host12:
exec:
- ip addr add 192.168.12.2/24 dev eth1
- ip route replace 0/0 via 192.168.12.1
group: server
host21:
exec:
- ip addr add 192.168.21.2/24 dev eth1
- ip route replace 0/0 via 192.168.21.1
group: server
host22:
exec:
- ip addr add 192.168.22.2/24 dev eth1
- ip route replace 0/0 via 192.168.22.1
group: server
host31:
exec:
- ip addr add 192.168.31.2/24 dev eth1
- ip route replace 0/0 via 192.168.31.1
group: server
host32:
exec:
- ip addr add 192.168.32.2/24 dev eth1
- ip route replace 0/0 via 192.168.32.1
group: server
links:
- endpoints: ["spine01:eth1", "leaf01:eth1"]
- endpoints: ["spine01:eth2", "leaf02:eth1"]
- endpoints: ["spine01:eth3", "leaf03:eth1"]
- endpoints: ["spine02:eth1", "leaf01:eth2"]
- endpoints: ["spine02:eth2", "leaf02:eth2"]
- endpoints: ["spine02:eth3", "leaf03:eth2"]
- endpoints: ["host11:eth1", "leaf01:eth3"]
- endpoints: ["host12:eth1", "leaf01:eth4"]
- endpoints: ["host21:eth1", "leaf02:eth3"]
- endpoints: ["host22:eth1", "leaf02:eth4"]
- endpoints: ["host31:eth1", "leaf03:eth3"]
- endpoints: ["host32:eth1", "leaf03:eth4"]