-
Notifications
You must be signed in to change notification settings - Fork 0
/
r1 .cli
128 lines (115 loc) · 2.2 KB
/
r1 .cli
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
interface ethernet-1/1 {
admin-state enable
subinterface 0 {
ipv4 {
admin-state enable
address 10.10.12.1/24 {
} } } }
interface ethernet-1/2 {
admin-state enable
subinterface 0 {
ipv4 {
admin-state enable
address 10.10.14.1/24 {
} } } }
interface ethernet-1/3 {
admin-state enable
subinterface 0 {
ipv4 {
admin-state enable
address 10.10.11.1/24 {
} } } }
interface system0 {
admin-state enable
subinterface 0 {
ipv4 {
admin-state enable
address 1.1.1.1/32 {
} } } }
network-instance default {
admin-state enable
router-id 1.1.1.1
interface ethernet-1/1.0 {
}
interface ethernet-1/2.0 {
}
interface ethernet-1/3.0 {
}
interface system0.0 {
}
protocols {
ospf {
instance default {
admin-state enable
version ospf-v2
router-id 1.1.1.1
area 0.0.0.1 {
interface ethernet-1/1.0 {
interface-type point-to-point
}
interface ethernet-1/2.0 {
interface-type point-to-point
}
interface system0.0 {
interface-type point-to-point
passive true
}
} } } } }
routing-policy {
policy all {
default-action {
policy-result accept
} } }
network-instance default {
protocols {
bgp {
admin-state enable
autonomous-system 121
router-id 1.1.1.1
afi-safi ipv4-unicast {
admin-state enable
}
group iBGP-AS1 {
admin-state enable
export-policy all
import-policy all
next-hop-self true
peer-as 121
}
route-reflector {
cluster-id 0.0.0.1
}
neighbor 2.2.2.2 {
admin-state enable
next-hop-self true
peer-group iBGP-AS1
route-reflector {
client true
cluster-id 0.0.0.1
} }
neighbor 3.3.3.3 {
admin-state enable
next-hop-self true
peer-group iBGP-AS1
route-reflector {
client true
cluster-id 0.0.0.1
} }
neighbor 4.4.4.4 {
admin-state enable
next-hop-self true
peer-group iBGP-AS1
route-reflector {
client true
cluster-id 0.0.0.1
} } } } }
system {
gnmi-server {
admin-state enable
network-instance default {
admin-state enable
port 57400
source-address [
::
]
} } }