-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathl3evpn-tutorial.clab.yml
68 lines (62 loc) · 1.79 KB
/
l3evpn-tutorial.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
name: l3evpn
prefix: __lab-name
topology:
defaults:
kind: nokia_srlinux
kinds:
nokia_srlinux:
image: ghcr.io/nokia/srlinux:24.3.3
linux:
image: quay.io/frrouting/frr:9.0.2
nodes:
spine:
type: ixrd3l
# startup-config: startup_configs/spine.conf
leaf1:
type: ixrd2l
# startup-config: startup_configs/leaf1.conf
leaf2:
type: ixrd2l
# startup-config: startup_configs/leaf2.conf
srv1:
kind: linux
exec:
- ip link set dev eth0 down
- ip link set dev eth1 address 00:C1:AB:00:00:01
- ip addr add 192.168.1.100/24 dev eth1
- ip route add 0/0 via 192.168.1.1
srv2:
kind: linux
exec:
- ip link set dev eth0 down
- ip link set dev eth1 address 00:C1:AB:00:00:01
- ip addr add 192.168.2.100/24 dev eth1
- ip route add 0/0 via 192.168.2.1
ce1:
kind: linux
binds:
- startup_configs/frr1.conf:/etc/frr/frr.conf
- startup_configs/frr-daemons.conf:/etc/frr/daemons
exec:
- ip link set dev eth1 address 00:C1:AB:00:01:01
- ip link set dev eth0 down
- touch /etc/frr/vtysh.conf
ce2:
kind: linux
binds:
- startup_configs/frr2.conf:/etc/frr/frr.conf
- startup_configs/frr-daemons.conf:/etc/frr/daemons
exec:
- ip link set dev eth1 address 00:C1:AB:00:01:02
- ip link set dev eth0 down
- touch /etc/frr/vtysh.conf
links:
# Spine - Leaf
- endpoints: ["spine:e1-1", "leaf1:e1-49"]
- endpoints: ["spine:e1-2", "leaf2:e1-49"]
# Leaf - Clients
- endpoints: ["leaf1:e1-1", "srv1:eth1"]
- endpoints: ["leaf2:e1-1", "srv2:eth1"]
# Leaf - CEs
- endpoints: ["leaf1:e1-2", "ce1:eth1"]
- endpoints: ["leaf2:e1-2", "ce2:eth1"]