-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathsyntax_test_cisco_nxos.cisco-nxos
665 lines (594 loc) · 18.1 KB
/
syntax_test_cisco_nxos.cisco-nxos
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
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
# cisco nxos
show vlan
show access-list
show access-lists
show access-lists NAME
show access-lists NAME dynamic
show access-lists NAME expanded
show access-lists NAME summary
show ip access-list
show ip access-lists
show ip access-lists NAME
show ip access-lists NAME dynamic
show ip access-lists NAME expanded
show ip access-lists NAME summary
show ipv6 access-list
show ipv6 access-lists
show ipv6 access-lists NAME
show ipv6 access-lists NAME dynamic
show ipv6 access-lists NAME expanded
show ipv6 access-lists NAME summary
show vlan id 42
show interface
show interface ethernet 0
show run interface
show running-config | include something ! Inline comment
show running-config | grep something ! Inline comment
show run interface | exclude something
show running-config | include "something else" ! Inline comment
show run interface ethernet 0
show ip interface brief vrf management
copy running-config startup-config
show standby vlan0 brief ! Inline comment
! Line comment
configure terminal
! Line comment
hostname example
exit
hostname example
username user password 5 $1$SpMm$eALjeyED.WSZs0naLNv22/
username user password 5 $1$SpMm$eALjeyED.WSZs0naLNv22/ role network-admin
logging server 1.2.3.4 0
logging server 1.2.3.4 6 use-vrf management
logging server 1.2.3.4 6 use-vrf management facility local5
ipv6 route vrf NAME ::/64 vlan0 ::1
ip route vrf NAME 1.2.3.0/24 vlan1 1.1.1.1 name asdf permanent
default interface Ethernet0/1
tacacs-server key 7 "fewhg"
interface Vlan 20
shutdown
exit
interface vlan0
exit
interface vl0
exit
interface Vlan 20
exit
interface loopback0
exit
interface lo0
exit
interface port-channel0
exit
interface po0
exit
interface mgmt0
exit
interface tunnel0
exit
interface tu0
exit
interface ethernet0
exit
interface eth0
exit
resequence ip access-list NAME 10 10
resequence ipv6 access-list NAME 10 10
ip access-list ACL
permit ip 1.2.3.0/24 1.2.3.0/24
deny icmp any any router-advertisement
10 permit ip 1.2.3.0/24 1.2.3.0/24
20 deny ip 1.2.3.0/24 1.2.3.0/24
10 permit ip any 1.2.3.0/24
! TODO: Increment broken!
10 permit tcp any range 1 2 1.2.3.0/24 range 1 2
10 permit tcp any any eq 1
10 permit tcp any any neq 1
10 permit tcp any any lt 2
10 permit tcp any any gt 1
10 permit tcp any any ge 1
10 permit tcp any any le 1
10 permit tcp any any eq sunrpc
10 permit tcp any any eq bgp
10 permit tcp any any eq ftp-data
10 permit tcp any any eq ftp
10 permit tcp any any eq tftp
10 permit tcp any any eq domain
10 permit tcp any any eq telnet
10 permit tcp any any eq snmptrap
10 permit tcp any any eq syslog
10 permit tcp any any eq ntp
10 permit tcp any any eq bootpc
10 permit tcp any any eq bootps
10 permit tcp any any eq pim-auto-rp
10 permit tcp any any eq ssh
10 permit tcp any any eq snmp
10 permit ip any any
20 deny icmp any any router-advertisement
1 permit icmp any any echo-reply
1 permit icmp any any echo
1 permit icmp any any echo-reply
1 permit icmp any any echo-request
1 permit icmp any any echo-reply
1 permit icmp any any router-advertisement
1 permit icmp any any router-solicitation
1 permit icmp any any nd-na
1 permit icmp any any nd-ns
1 permit icmp any any mld-query
1 permit icmp any any mld-report
1 permit icmp any any mld-reduction
1 permit icmp any any ttl-exceeded
1 permit icmp any any port-unreachable
1 permit icmp any any port-unreachable log
exit
ipv6 access-list ACL
permit tcp any range 1 2 ::/0 range 1 2
1 permit tcp any range 1 2 ::/0 range 1 2
1 permit icmp any any echo-reply log
1 permit icmp any any echo-reply
1 permit icmp any any echo
1 permit icmp any any echo-reply
1 permit icmp any any echo-request
1 permit icmp any any echo-reply
1 permit icmp any any router-advertisement
1 permit icmp any any router-solicitation
1 permit icmp any any nd-na
1 permit icmp any any nd-ns
1 permit icmp any any mld-query
1 permit icmp any any mld-report
1 permit icmp any any mld-reduction
1 permit icmp any any ttl-exceeded
1 permit icmp any any port-unreachable
interface Ethernet 100/0/1
description this is a port
vrf member NAME
switchport
switchport mode trunk
switchport trunk encapsulation dot1q
switchport trunk allowed vlan add 1,2
switchport trunk allowed vlan remove 1,2
switchport trunk allowed vlan except 1,2
switchport trunk allowed vlan all
switchport trunk allowed vlan none
switchport mode trunk
switchport mode access
switchport access vlan 1
switchport
ip redirects
ip address 1.2
ip address 1.2.3.4
ip address 1.2.3.4/
ip address 1.2.3.4/23 # a comment
ip address 1.2.3.4/232
ipv6 address ::/64 eui-64
ip pim sparse-mode
ip arp timeout 42
ip arp gratuitous hsrp duplicate
ip proxy-arp
service-policy type qos input pmap-qos-eth1-1
service-policy type queuing output POLICY
spanning-tree port type edge trunk
spanning-tree bpduguard enable
spanning-tree bpduguard disable
spanning-tree portfast edge
channel-group 0 mode active
ip policy route-map ROUTE-MAP
spanning-tree guard root
ip ospf network point-to-point
ospfv3 network point-to-point
mtu 1500
channel-protocol lacp
vpc 123
priority-flow-control mode on
priority-flow-control mode auto
priority-flow-control mode off
untagged cos 3
no shutdown
hsrp version 2
hsrp 0
ip 1.
ip 1.
ip 1.2.3.
ip 1.2.3.4
ip 1.2.3.4/23
priority 0
preempt delay minimum 0
authentication md5 key-string STRING
exit
hsrp 0 ipv6
ip 0::0
no shutdown
exit
exit
vlan 1
name whatever
mode fabricpath
exit
vrf context RED
ip route 10.229.92.48/28 Vlan0 1.2.3.4
ipv6 route ::/0 Vlan0 ::1
ip pim ssm range 224.0.0.0/8
address-family ipv4 unicast
route-target import 1111:1111
import map NAME
exit
router bgp 1
router-id 123
template peer-session PEER_SESSION_TEMPLATE
remote-as 1
password 0 secret_password
timers 1 2
timers 1 2 3
template peer-policy all-peers-policy
send-community
maximum-prefix 1
maximum-prefix 1 2
maximum-prefix 1 2 restart 3
soft-reconfiguration inbound
neighbor 1.2.3.4
no shutdown
address-family ipv4 unicast
allowas-in
network 1.2.3.0/24
network 1.2.3.0/24
neighbor 1.2.3.4
inherit peer NAME
inherit peer-session NAME
remote-as 0
password 3 secret_password
next-hop-self
no shutdown
route-map NAME out
address-family ipv6 unicast
allowas-in
neighbor ::
inherit peer NAME
inherit peer-session NAME
next-hop-self
no shutdown
password 3 secret_password
remote-as 0
exit
vrf RED
router-id 123
log-neighbor-changes
address-family ipv4 unicast
inherit peer-policy eBGP-policy 10
route-map Core-Metric-out out
network 1.2.3.0/24
network 1.2.3.0/24
neighbor 1.2.3.4
inherit peer NAME
inherit peer-session NAME
remote-as 0
password 3 secret_password
next-hop-self
update-source loopback0
no shutdown
address-family ipv6 unicast
neighbor ::
inherit peer NAME
inherit peer-session NAME
next-hop-self
no shutdown
password 3 secret_password
remote-as 0
update-source loopback0
neighbor 1.2.3.4 remote-as 1
inherit peer POLICY
description blah blah
password 3 secret_password
address-family ipv4 unicast
next-hop-self
neighbor 2.3.4.5 remote-as 2
exit
exit
exit
router ospf 1
router-id 1
timers throttle spf 200 750 5000
timers lsa-arrival 500
timers throttle lsa 200 750 5000
auto-cost reference-bandwidth 1000000
vrf RED
router-id 2
timers throttle spf 200 750 5000
timers lsa-arrival 500
timers throttle lsa 200 750 5000
auto-cost reference-bandwidth 1000000
router ospfv3 1
router-id 1
auto-cost reference-bandwidth 1000000
address-family ipv6 unicast
timers throttle spf 200 750 5000
timers lsa-arrival 500
timers throttle lsa 200 750 5000
vrf RED
router-id 2
auto-cost reference-bandwidth 1000000
address-family ipv4 unicast
address-family ipv6 unicast
timers throttle spf 200 750 5000
timers lsa-arrival 500
timers throttle lsa 200 750 5000
ip prefix-list NAME seq 10 permit 10.225.6.0/24
ip prefix-list NAME seq 10 deny 10.225.6.0/24
ip prefix-list NAME seq 10 permit 10.225.6.0/24 ge 1
ip prefix-list NAME seq 10 permit 10.225.6.0/24 ge 1 le 2
ipv6 prefix-list NAME seq 10 permit ::/0
ipv6 prefix-list NAME seq 200 deny ::/0 ge 1
ipv6 prefix-list NAME seq 200 deny ::/0 ge 1 le 2
monitor session 1
source vlan 2 both
destination interface Ethernet1/2
line vty 0 4
line vty
access-class 42 in vrf-also
access-class ssh_access in vrf-also
transport input ssh telnet
transport input telnet ssh
transport input telnet
transport input ssh
exit
route-map route_map_name permit 13990
match ip address prefix-list PREFIX_LIST
match ip address ACL_NAME
set vrf vrf_name
set metric 200
set local-preference 100
exit
class-map type qos cmap-qos-acl
match access-group ACL-CoS
policy-map type qos pmap-qos-acl
class type qos cmap-qos-acl
set qos-group 4
class-map type network-qos cmap-nq-acl
match qos-group 4
exit
policy-map type network-qos pmap-nq-acl
class type network-qos cmap-nq-acl
set cos 5
match cos 1
match cos 1, 2
match cos 1, 2-3
match protocol arp
match protocol clns_es
match protocol clns_is
match protocol dhcp
match protocol ldp
match protocol netbios
mtu 123
multicast-optimize
pause no-drop
pause no-drop pfc-cos 6
pause no-drop pfc-cos 0-2, 1
queue-limit 123 bytes
class-map type queuing cmap-que-bandwidth
match qos-group 2
policy-map type queuing pmap-que-eth1-2
class type queuing class-default
bandwidth percent 100
priority
class type queuing class-fcoe
bandwidth percent 40
class type queuing cmap-que-bandwidth
bandwidth percent 50
system qos
service-policy type qos input pmap-qos-acl
service-policy type qos output pmap-qos-acl
service-policy type network-qos pmap-qos-acl
service-policy type queuing input pmap-qos-acl
service-policy type queuing output pmap-qos-acl
show port-c d
show port-c d i p 1
show port-channel database interface port-channel 1
port-channel3
Last membership update is successful
0 ports in total, 0 ports up
Age of the port-channel is 264d:05h:04m:46s
port-channel4
Last membership update is successful
0 ports in total, 0 ports up
Age of the port-channel is 264d:05h:04m:46s
port-channel17
Last membership update is successful
0 ports in total, 0 ports up
Age of the port-channel is 264d:05h:04m:46s
port-channel20
Last membership update is successful
0 ports in total, 0 ports up
Age of the port-channel is 264d:05h:04m:46s
port-channel21
Last membership update is successful
0 ports in total, 0 ports up
Age of the port-channel is 264d:05h:04m:46s
port-channel23
Last membership update is successful
0 ports in total, 0 ports up
Age of the port-channel is 264d:05h:04m:46s
port-channel25
Last membership update is successful
1 ports in total, 1 ports up
First operational port is Ethernet1/1
Age of the port-channel is 264d:05h:04m:46s
Time since last bundle is 264d:05h:04m:56s
Last bundled member is Ethernet1/1
Ports: Ethernet1/1 [on] [up] *
port-channel26
Last membership update is successful
1 ports in total, 1 ports up
First operational port is Ethernet1/2
Age of the port-channel is 264d:05h:04m:46s
Time since last bundle is 264d:05h:04m:56s
Last bundled member is Ethernet1/2
Ports: Ethernet1/2 [on] [up] *
port-channel28
Last membership update is successful
1 ports in total, 1 ports up
First operational port is Ethernet1/28
Age of the port-channel is 264d:05h:04m:46s
Time since last bundle is 264d:05h:04m:56s
Last bundled member is Ethernet1/28
Ports: Ethernet1/28 [active ] [up] *
port-channel29
Last membership update is successful
1 ports in total, 1 ports up
First operational port is Ethernet1/29
Age of the port-channel is 264d:05h:04m:46s
Time since last bundle is 264d:05h:04m:56s
Last bundled member is Ethernet1/29
Ports: Ethernet1/29 [active ] [up] *
port-channel30
Last membership update is successful
1 ports in total, 1 ports up
First operational port is Ethernet1/30
Age of the port-channel is 264d:05h:04m:46s
Time since last bundle is 264d:05h:04m:56s
Last bundled member is Ethernet1/30
Ports: Ethernet1/30 [active ] [up] *
port-channel31
Last membership update is successful
1 ports in total, 1 ports up
First operational port is Ethernet1/31
Age of the port-channel is 264d:05h:04m:46s
Time since last bundle is 264d:05h:04m:56s
Last bundled member is Ethernet1/31
Ports: Ethernet1/31 [active ] [up] *
port-channel32
Last membership update is successful
1 ports in total, 1 ports up
First operational port is Ethernet1/32
Age of the port-channel is 264d:05h:04m:46s
Time since last bundle is 264d:05h:04m:56s
Last bundled member is Ethernet1/32
Ports: Ethernet1/32 [active ] [up] *
port-channel33
Last membership update is successful
1 ports in total, 1 ports up
First operational port is Ethernet1/33
Age of the port-channel is 264d:05h:04m:46s
Time since last bundle is 264d:05h:04m:56s
Last bundled member is Ethernet1/33
Ports: Ethernet1/33 [active ] [up] *
port-channel34
Last membership update is successful
1 ports in total, 1 ports up
First operational port is Ethernet1/34
Age of the port-channel is 264d:05h:04m:46s
Time since last bundle is 264d:05h:04m:56s
Last bundled member is Ethernet1/34
Ports: Ethernet1/34 [active ] [up] *
port-channel35
Last membership update is successful
1 ports in total, 1 ports up
First operational port is Ethernet1/35
Age of the port-channel is 264d:05h:04m:46s
Time since last bundle is 264d:05h:04m:56s
Last bundled member is Ethernet1/35
Ports: Ethernet1/35 [active ] [up] *
port-channel36
Last membership update is successful
1 ports in total, 1 ports up
First operational port is Ethernet1/36
Age of the port-channel is 264d:05h:04m:46s
Time since last bundle is 264d:05h:04m:56s
Last bundled member is Ethernet1/36
Ports: Ethernet1/36 [active ] [up] *
port-channel37
Last membership update is successful
1 ports in total, 1 ports up
First operational port is Ethernet1/37
Age of the port-channel is 264d:05h:04m:46s
Time since last bundle is 264d:05h:04m:56s
Last bundled member is Ethernet1/37
Ports: Ethernet1/37 [active ] [up] *
port-channel38
Last membership update is successful
1 ports in total, 1 ports up
First operational port is Ethernet1/38
Age of the port-channel is 264d:05h:04m:46s
Time since last bundle is 264d:05h:04m:56s
Last bundled member is Ethernet1/38
Ports: Ethernet1/38 [active ] [up] *
port-channel39
Last membership update is successful
1 ports in total, 1 ports up
First operational port is Ethernet1/39
Age of the port-channel is 264d:05h:04m:46s
Time since last bundle is 264d:05h:04m:56s
Last bundled member is Ethernet1/39
Ports: Ethernet1/39 [active ] [up] *
port-channel40
Last membership update is successful
1 ports in total, 1 ports up
First operational port is Ethernet1/40
Age of the port-channel is 264d:05h:04m:46s
Time since last bundle is 264d:05h:04m:56s
Last bundled member is Ethernet1/40
Ports: Ethernet1/40 [active ] [up] *
port-channel41
Last membership update is successful
1 ports in total, 1 ports up
First operational port is Ethernet1/41
Age of the port-channel is 264d:05h:04m:46s
Time since last bundle is 264d:05h:04m:56s
Last bundled member is Ethernet1/41
Ports: Ethernet1/41 [active ] [up] *
port-channel42
Last membership update is successful
1 ports in total, 1 ports up
First operational port is Ethernet1/42
Age of the port-channel is 264d:05h:04m:46s
Time since last bundle is 264d:05h:04m:56s
Last bundled member is Ethernet1/42
Ports: Ethernet1/42 [active ] [up] *
port-channel43
Last membership update is successful
1 ports in total, 1 ports up
First operational port is Ethernet1/43
Age of the port-channel is 264d:05h:04m:46s
Time since last bundle is 264d:05h:04m:56s
Last bundled member is Ethernet1/43
Ports: Ethernet1/43 [active ] [up] *
port-channel44
Last membership update is successful
1 ports in total, 1 ports up
First operational port is Ethernet1/44
Age of the port-channel is 264d:05h:04m:46s
Time since last bundle is 264d:05h:04m:56s
Last bundled member is Ethernet1/44
Ports: Ethernet1/44 [active ] [up] *
port-channel45
Last membership update is successful
1 ports in total, 1 ports up
First operational port is Ethernet1/45
Age of the port-channel is 264d:05h:04m:46s
Time since last bundle is 264d:05h:04m:56s
Last bundled member is Ethernet1/45
Ports: Ethernet1/45 [active ] [up] *
port-channel46
Last membership update is successful
1 ports in total, 0 ports up
Age of the port-channel is 264d:05h:04m:46s
Time since last bundle is 264d:05h:04m:56s
Last bundled member is Ethernet1/46
Ports: Ethernet1/46 [active ] [down]
port-channel47
Last membership update is successful
0 ports in total, 0 ports up
Age of the port-channel is 264d:05h:04m:46s
port-channel48
Last membership update is successful
0 ports in total, 0 ports up
Age of the port-channel is 264d:05h:04m:46s
port-channel51
Last membership update is successful
4 ports in total, 4 ports up
First operational port is Ethernet1/51
Age of the port-channel is 264d:05h:04m:46s
Time since last bundle is 264d:05h:04m:56s
Last bundled member is Ethernet1/51
Ports: Ethernet1/51 [on] [up] *
Ethernet1/52 [on] [up]
Ethernet1/53 [on] [up]
Ethernet1/54 [on] [up]