This repository has been archived by the owner on Jul 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 66
/
fabric-01.conf
185 lines (180 loc) · 3.65 KB
/
fabric-01.conf
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
system {
host-name fabric-01;
time-zone America/Los_Angeles;
root-authentication {
encrypted-password "$1$ZUlES4dp$OUwWo1g7cLoV/aMWpHUnC/";
}
name-server {
192.168.5.68;
192.168.60.131;
}
services {
netconf {
ssh;
}
ssh;
}
login {
message "This is the property of Example Corp. Do not login without express permission. ";
}
syslog {
user * {
any emergency;
}
file messages {
any notice;
}
file cli-commands {
interactive-commands any;
explicit-priority;
}
time-format millisecond;
}
ntp {
server 172.17.28.5;
}
}
interfaces {
em0 {
unit 0 {
family inet {
address 0.0.0.0/<subnet mask>;
}
}
}
lo0 {
unit 0 {
family inet {
address 100.0.0.1/32
}
}
}
}
snmp {
location "Site 1";
contact "John Doe";
community public {
authorization read-only;
}
}
routing-options {
static {
route 172.0.0.0/8 {
next-hop 10.94.194.254;
retain;
no-readvertise;
}
}
}
protocols {
lldp {
interface all;
}
}
/* This block of configuration has been generated by the role underlay-ebgp for Ansible */
interfaces {
xe-0/0/3 {
description " * to spine-04";
mtu 9192;
unit 0 {
family inet {
mtu 9000;
address 172.16.0.21/31;
}
}
}
xe-0/0/1 {
description " * to spine-02";
mtu 9192;
unit 0 {
family inet {
mtu 9000;
address 172.16.0.13/31;
}
}
}
xe-0/0/2 {
description " * to spine-03";
mtu 9192;
unit 0 {
family inet {
mtu 9000;
address 172.16.0.17/31;
}
}
}
xe-0/0/0 {
description " * to spine-01";
mtu 9192;
unit 0 {
family inet {
mtu 9000;
address 172.16.0.9/31;
}
}
}
}
protocols {
bgp {
log-updown;
graceful-restart;
group underlay-ipfabric {
import bgp-ipclos-in;
export bgp-ipclos-out;
type external;
mtu-discovery;
local-as 65011;
bfd-liveness-detection {
minimum-interval 350;
multiplier 3;
session-mode automatic;
}
multipath multiple-as;
neighbor 172.16.0.20 {
peer-as 65024;
}
neighbor 172.16.0.12 {
peer-as 65022;
}
neighbor 172.16.0.16 {
peer-as 65023;
}
neighbor 172.16.0.8 {
peer-as 65021;
}
}
}
}
routing-options {
router-id 100.0.0.1;
forwarding-table {
export pfe-ecmp;
}
}
policy-options {
policy-statement pfe-ecmp {
then {
load-balance per-packet;
}
}
policy-statement bgp-ipclos-in {
term loopbacks {
from {
route-filter 100.0.0.0/16 orlonger;
}
then accept;
}
}
policy-statement bgp-ipclos-out {
term loopback {
from {
protocol direct;
route-filter 100.0.0.1/32 orlonger;
}
then {
next-hop self;
accept;
}
}
}
}