-
Notifications
You must be signed in to change notification settings - Fork 6
/
example-config.txt
466 lines (465 loc) · 9.42 KB
/
example-config.txt
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
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
Building configuration...
Current configuration : 2058 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname meowcat
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
no ip icmp rate-limit unreachable
ip cef
!
!
!
!
no ip domain lookup
ip domain name test
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
file prompt quiet
username admin privilege 15 secret 5 $1$M1ce$SKeVGg2lUCPrsLkJMIdWf.
!
!
ip tcp synwait-time 5
ip ssh version 2
ip scp server enable
!
!
!
!
class-map match-all af41
match dscp af41
class-map match-all ef
match dscp ef
class-map match-all af32
match dscp af32
class-map match-all af22
match dscp af22
class-map match-all be
match dscp default
class-map match-all af11
match dscp af11
class-map match-any CM-GROUP4
match qos-group 4
class-map match-any CM-GROUP5
match qos-group 5
class-map match-all cos5
match cos 5
class-map match-any CM-GROUP6
match qos-group 6
match dscp cs6 cs7
class-map match-all cos4
match cos 4
class-map match-all cos3
match cos 3
class-map match-all cos2
match cos 2
class-map match-any CM-GROUP1
match qos-group 1
class-map match-all cos1
match cos 1
class-map match-any CM-GROUP2
match qos-group 2
class-map match-all cos0
match cos 0
class-map match-any CM-GROUP3
match qos-group 3
class-map match-all qos5
match qos-group 5
class-map match-any qos4
match qos-group 4
match dscp cs4
class-map match-all qos1
match qos-group 1
class-map match-all qos3
match qos-group 3
class-map match-all qos2
match qos-group 2
!
policy-map NPM-INGRESS-NNI
class cos5
set qos-group 5
class cos3
set qos-group 3
class cos1
set qos-group 1
class cos4
set qos-group 4
class cos2
set qos-group 2
class cos0
set qos-group 0
policy-map BG_MARKING
class af41
set dscp default
set qos-group 0
set cos 0
policy-map PM-EGRESS-NNI
class CM-GROUP6
bandwidth remaining percent 5
class CM-GROUP5
priority percent 25
class CM-GROUP4
bandwidth remaining percent 5
class CM-GROUP3
bandwidth remaining percent 10
class CM-GROUP2
bandwidth remaining percent 40
class CM-GROUP1
bandwidth remaining percent 10
class class-default
bandwidth remaining percent 5
policy-map NMS_MARKING
class class-default
set qos-group 4
set dscp cs4
set cos 4
policy-map TDM_MARKING
class class-default
set qos-group 2
set cos 2
policy-map PM-INGRESS-NETCONTROL-COS
class class-default
set qos-group 6
set cos 6
policy-map NPM-EGRESS-NNI
class qos5
set dscp ef
set cos 5
bandwidth remaining percent 30
class qos3
bandwidth remaining percent 30
set dscp af32
set cos 3
class qos2
priority level 1
set cos 2
class qos1
bandwidth remaining percent 30
set dscp af11
set cos 1
class qos4
priority level 2
set dscp cs4
set cos 4
class class-default
set dscp default
set cos 0
queue-limit 10 us
policy-map PM-INGRESS-NNI-TDM
class class-default
set qos-group 5
set cos 5
policy-map SERVICES_MARKING
class af41
set qos-group 5
set dscp ef
set cos 4
class af22
set qos-group 3
set dscp af32
set cos 3
class be
set dscp af11
set qos-group 1
set cos 1
!
bridge-domain 3001
no ip igmp snooping
bridge-domain 3002
no ip igmp snooping
bridge-domain 3003
no ip igmp snooping
bridge-domain 3004
no ip igmp snooping
bridge-domain 3005
no ip igmp snooping
bridge-domain 3006
no ip igmp snooping
bridge-domain 3007
no ip igmp snooping
bridge-domain 3008
no ip igmp snooping
bridge-domain 3009
no ip igmp snooping
bridge-domain 3010
no ip igmp snooping
!
interface Loopback1
no ip address
!
interface FastEthernet0/0
ip address 10.0.2.33 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
description cat
ip address 192.168.1.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet1/0
ip address 192.168.3.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet2/0
no ip address
duplex auto
speed auto
!
interface FastEthernet3/0
!
interface FastEthernet3/1
!
interface FastEthernet3/2
!
interface FastEthernet3/3
!
interface FastEthernet3/4
!
interface FastEthernet3/5
!
interface FastEthernet3/6
!
interface FastEthernet3/7
!
interface FastEthernet3/8
!
interface FastEthernet3/9
!
interface FastEthernet3/10
!
interface FastEthernet3/11
!
interface FastEthernet3/12
!
interface FastEthernet3/13
!
interface FastEthernet3/14
!
interface FastEthernet3/15
!
interface Port-channel1
description <description/Remark>
mtu 9000
no ip address
logging event link-status
load-interval 30
carrier-delay msec 0
negotiation auto
service instance 100 ethernet
encapsulation dot1q 100 second-dot1q 32
rewrite ingress tag pop 1 symmetric
service-policy input PM-INGRESS-NETCONTROL-COS
bridge-domain 100
!
service instance 151 ethernet
description TDM-E1_WT
encapsulation dot1q 151
rewrite ingress tag pop 1 symmetric
service-policy input PM-INGRESS-NNI-TDM
bridge-domain 151
!
service instance 152 ethernet
description TDM-E1_PT
encapsulation default
rewrite ingress tag pop 1 symmetric
service-policy input PM-INGRESS-NNI-TDM
bridge-domain 152
!
!
interface Vlan1
load-interval 30
mac access-group MAC_ACL in
mac access-group MAC_ACL out
cdp enable
service-policy input BG_MARKING
!
interface Vlan2
no ip address
!
interface Vlan3
no ip address
!
interface Vlan5
no ip address
!
interface Vlan99
no ip address
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
snmp-server community cat RO
snmp-server community test RO
snmp-server enable traps snmp authentication linkdown linkup coldstart warmstart
snmp-server enable traps ospf state-change if-state-change neighbor-state-change
snmp-server enable traps bgp state-changes all
snmp-server enable traps config-copy
snmp-server enable traps config
snmp-server enable traps isis state-change
snmp-server enable traps ipsla
snmp-server enable traps ether-oam
snmp-server enable traps memory bufferpeak
snmp-server enable traps entity-state
snmp-server enable traps entity
snmp-server enable traps cpu threshold
snmp-server enable traps rep
snmp-server enable traps entity-sensor
snmp-server enable traps resource-policy
snmp-server enable traps flash insertion
snmp-server enable traps flash removal
snmp-server enable traps mpls ldp session-up session-down
snmp-server enable traps pw vc
snmp-server enable traps bulkstat collection transfer
snmp-server enable traps mac-notification
snmp-server enable traps transceiver all
no cdp log mismatch duplex
!
!
!
control-plane
!
router ospf 7306
router-id 10.249.16.152
auto-cost reference-bandwidth 10000
area 0.0.0.60 nssa
redistribute static metric-type 1 subnets route-map LOOPBACK
passive-interface default
no passive-interface Loopback0
network 10.249.16.152 0.0.0.0 area 0.0.0.60
network 10.249.24.136 0.0.0.7 area 0.0.0.60
network 10.249.29.24 0.0.0.7 area 0.0.0.60
network 10.251.250.94 0.0.0.1 area 0.0.0.60
network 10.251.250.180 0.0.0.1 area 0.0.0.60
network 10.251.253.88 0.0.0.1 area 0.0.0.60
network 10.251.253.90 0.0.0.1 area 0.0.0.60
network 10.251.253.168 0.0.0.7 area 0.0.0.60
!
router rip
version 2
redistribute static
!
address-family ipv4 vrf MHC
redistribute connected
redistribute static
network 10.0.0.0
network 172.20.0.0
no auto-summary
version 2
exit-address-family
!
address-family ipv4 vrf HERPLYFE
redistribute connected
redistribute static
network 10.0.0.0
no auto-summary
version 2
exit-address-family
!
router bgp 65000
no synchronization
bgp log-neighbor-changes
neighbor 10.0.0.4 remote-as 65000
neighbor 10.0.0.4 update-source Loopback0
no auto-summary
!
address-family vpnv4
neighbor 10.0.0.4 activate
neighbor 10.0.0.4 send-community extended
exit-address-family
!
address-family ipv4 vrf Customer_B
no synchronization
exit-address-family
!
address-family ipv4 vrf Customer_A
no synchronization
exit-address-family
!
router bgp 65100
vrf CUST-1
neighbor 192.0.2.1
remote-as 65101
description peer-1
address-family ipv4 unicast
route-map RPL-1-IMPORT-v4 in
route-map RPL-1-EXPORT-V4 out
neighbor 192.0.2.2
remote-as 65102
description peer-2
address-family ipv4 unicast
route-map RPL-2-IMPORT-V6 in
route-map RPL-2-EXPORT-V6 out
!
vlan 10,20,30,40,50,60,70,80,90,100,200
!
mac access-list extended MAC_ACL
permit host 294a.f5e9.d791 host 295b.7593.9e82
permit host 266e.8cb3.0f96 host 2220.7b06.80c5
permit host 253f.d327.fcc8 host 1dfd.9ded.434f
permit host 095d.e795.7e62 host 2c75.083c.5576
deny host 0548.9d25.b437 host 1950.2a82.3c80
deny host 0bd7.4390.0710 host 097c.f437.150c
deny host 1e33.f97d.3c93 host 0561.b238.f6ef
deny host 1c77.0603.69dd host 035f.18ad.31e1
deny host 34e8.480e.c057 host 0118.7e25.6b42
deny host 2ba7.2470.3c1b host 0c82.31d7.385f
deny host 3b1a.a409.ea50 host 1ece.e8f9.c08d
permit host 0207.2bd2.7124 host 229b.324e.ad5d
!
access-list 103 permit udp host 200.1.1.1 any eq isakmp
access-list 103 permit udp host 200.1.1.1 eq isakmp any
access-list 103 permit esp host 200.1.1.1 any
access-list 103 permit icmp any any
access-list 103 deny ip any any
access-list 105 permit ip 10.1.1.0 0.0.0.255 192.168.0.0 0.0.255.255
!
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
line vty 0 4
privilege level 15
login local
transport input ssh
line vty 5 15
privilege level 15
login local
transport input ssh
!
!
end