forked from Sxmon17/cisco_script_collection
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebugging.txt
More file actions
100 lines (73 loc) · 2.38 KB
/
Copy pathdebugging.txt
File metadata and controls
100 lines (73 loc) · 2.38 KB
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
# Author: David Brandstetter
# Desc: A modest collection of several commands used for config verification and debugging.
--------------------------------------------------------------------------
## Windows terminal (cmd)
### Show extensive IPv4/IPv6 settings
ipconfig /all
### Renew the currently leased IPv4 & IPv6 addresses (via DHCP)
1. ipconfig /release
2. ipconfig /renew
### Display the IPv4/IPv6 routing table
route -4/-6 print
### List the IPv4 MAC table (ARP)
arp -a
### List the IPv6 MAC table (ND)
1. netsh
2. interface ipv6
3. show neighbors
-> short form: netsh int ipv6 sh n
### List the joined IPv6 multicast groups
1. netsh
2. interface ipv6
3. show joins
-> short form: netsh int ipv6 sh j
### Trace the hops to some destination (IP or domain name)
tracert DEST
### Show detailed information regarding all resolved DNS mappings
ipconfig /displaydns
--------------------------------------------------------------------------
## Cisco router
### Dynamic host configuration protocol (DHCP)
show ip dhcp binding
show ip dhcp server statistics
show running-config | section dhcp
show dhcp lease
### Routing
show ip route [connected|rip|static|summary]
debug ip routing
### Network address translation (NAT)
show ip nat translations
clear ip nat translations *
show running-config | section NAT
debug ip nat
### Open shortest path first (OSPF)
show ip ospf
### Hot standby router protocol (HSRP)
sh standby br
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
## Cisco switch & router
### Secure shell (SSH)
#### List the active sessions at the moment
show ssh
#### Show ssh configured parameters
show ip ssh
### List the active protocols on this device
show ip p
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
## Cisco switch
### Show the currently active switching database manager (SDM) setting
show sdm prefer
### Etherchannel (EC)
#### Show etherchannel summary
sh e s
#### Show etherchannel load-balance
sh e l
#### Show etherchannel port-channel
sh e p
### Spanning tree (STP)
#### Show general spanning tree config
sh span
#### Show summarized spanning tree config
sh span sum
#### Show detailed spanning tree config
sh span d