blob: 3adcdf90e9f16d3d2940553fff45667eeffd27fc (
plain)
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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
|
system {
host-name $hostname;
auto-snapshot;
time-zone Europe/Oslo;
authentication-order [ tacplus password ];
root-authentication {
encrypted-password "$1$v1xWD3zI$OhStP6PnpgIUO3RLtMmIJ/";
}
name-server {
1.1.1.1;
2.2.2.2;
}
login {
user technet{
uid 2000;
class super-user;
authentication {
encrypted-password "$1$v1xWD3zI$OhStP6PnpgIUO3RLtMmIJ/";
}
}
}
services {
ssh {
root-login deny;
}
netconf {
ssh;
}
}
syslog {
user * {
any emergency;
}
file messages {
any notice;
authorization info;
}
file interactive-commands {
interactive-commands any;
}
}
ntp {
server 1.2.3.4;
server 2.3.4.5;
}
}
chassis {
aggregated-devices {
ethernet {
device-count 1;
}
}
}
interfaces {
interface-range edge-ports {
member-range ge-0/0/0 to ge-0/0/43;
unit 0 {
family ethernet-switching {
port-mode access;
vlan {
members deltagere;
}
}
}
}
interface-range core-ports {
member-range ge-0/0/44 to ge-0/0/47;
ether-options {
802.3ad ae0;
}
}
ae0 {
description "Til $distro_name $distro_phy_port";
aggregated-ether-options {
lacp {
active;
}
}
unit 0 {
family ethernet-switching {
port-mode trunk;
vlan {
members [deltagere mgmt];
}
}
}
}
vlan {
unit $mgmt_vlan {
description "MGMT L3 interface";
family inet {
filter {
input v4-mgmt;
}
address $mgmt_addr/$mgmt_cidr;
}
family inet6 {
filter {
input v6-mgmt;
}
address $mgmt_v6_addr/$mgmt_v6_cidr;
}
}
}
}
firewall {
family inet {
filter v4-mgmt {
term accept-noc {
from {
source-address {
0.0.0.0/0;
}
}
then accept;
}
term accept-icmp {
from {
protocol icmp;
}
then {
accept;
}
}
term reject-all {
then {
log;
syslog;
reject;
}
}
}
}
family inet6 {
filter v6-mgmt {
term accept-noc {
from {
source-address {
::/0;
}
}
then accept;
}
term accept-icmp {
from {
next-header icmp6;
}
then {
accept;
}
}
term reject-all {
then {
log;
syslog;
reject;
}
}
}
}
}
protocols {
sflow {
sample-rate {
ingress 10000;
egress 10000;
}
collector 91.209.30.12;
interfaces edge-ports;
interfaces core-ports;
}
igmp-snooping {
vlan all {
version 3;
immediate-leave;
}
}
mld-snooping {
vlan all {
version 2;
immediate-leave;
}
}
rstp {
bridge-priority 8k;
interface edge-ports {
edge;
no-root-port;
}
}
lldp {
interface ae0.0
}
}
vlans {
deltagere {
vlan-id $traffic_vlan;
}
mgmt {
vlan-id $mgmt_vlan;
l3-interface vlan.$mgmt_vlan;
}
}
routing-options {
rib inet.0 {
static {
route 0.0.0.0/0 {
next-hop $mgmt_gw;
}
}
}
rib inet6.0 {
static {
route ::/0 {
next-hop $mgmt_v6_gw;
}
}
}
}
|