forked from srlinuxamericas/ac2-clab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
srl.cfg
63 lines (63 loc) · 1.31 KB
/
srl.cfg
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
interface ethernet-1/1 {
subinterface 0 {
admin-state enable
ipv4 {
admin-state enable
address 192.168.1.1/24 {
}
}
}
}
interface lo0 {
subinterface 0 {
admin-state enable
ipv4 {
admin-state enable
address 10.10.10.1/32 {
}
}
}
}
network-instance default {
interface ethernet-1/1.0 {
}
interface lo0.0 {
}
protocols {
bgp {
admin-state enable
autonomous-system 65001
router-id 10.10.10.1
afi-safi ipv4-unicast {
admin-state enable
}
group ibgp {
export-policy [ export-lo ]
afi-safi ipv4-unicast {
admin-state enable
}
}
neighbor 192.168.1.2 {
admin-state enable
peer-as 65001
peer-group ibgp
}
}
}
}
routing-policy {
prefix-set loopback {
prefix 10.10.10.1/32 mask-length-range exact {
}
}
policy export-lo {
statement 10 {
match {
prefix-set loopback
}
action {
policy-result accept
}
}
}
}