See interface stats
1 | show interface counters |
Show interface and errors
1 2 3 4 5 6 7 8 9 10 | show interfaces show interfaces | incl GigabitEthernet|errors|chunks # this filters out the heaps of out put to show just what your interested in show interfaces Gi0 /7 | incl GigabitEthernet|errors|runts GigabitEthernet0 /7 is up, line protocol is up (connected) 261 runts, 0 giants, 0 throttles 417 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored 0 output errors, 417 collisions, 0 interface resets |
TFTP Server for Windows
https://www.solarwinds.com/free-tools/free-tftp-server
Backup config to TFTP server
1 | copy running-config tftp://10.19.20.30 |
Set an interface to defaults
1 2 3 | !-- in config mode config t default interface gi1/0/18 |
Output
1 | Interface GigabitEthernet1/0/1 set to default configuration |
Run show commands while in config mode
1 | (config)#do show running-config interface gi1/0/13 |
Output
1 2 3 4 5 6 7 8 | Building configuration... Current configuration : 90 bytes ! interface GigabitEthernet1/0/13 switchport voice vlan 100 spanning-tree portfast end |
Filter by a value in output
Check connected interfaces
1 2 3 4 5 6 7 8 9 10 11 12 | show ip interface brief | incl up Vlan1 192.168.77.215 YES TFTP up up Vlan91 172.16.99.240 YES TFTP up up GigabitEthernet1/0/3 unassigned YES unset up up GigabitEthernet1/0/11 unassigned YES unset up up GigabitEthernet1/0/12 unassigned YES unset up up GigabitEthernet1/0/14 unassigned YES unset up up GigabitEthernet1/0/15 unassigned YES unset up up GigabitEthernet1/0/16 unassigned YES unset up up GigabitEthernet1/0/18 unassigned YES unset up up GigabitEthernet1/0/19 unassigned YES unset up up GigabitEthernet1/0/27 unassigned YES unset up up |
Display interface details
1 | show interfaces status |
Output
1 2 3 4 5 6 7 | Port Name Status Vlan Duplex Speed Type Gi1/0/1 notconnect 1 auto auto 10/100/1000BaseTX Gi1/0/2 notconnect 1 auto auto 10/100/1000BaseTX Gi1/0/3 connected 1 a-full a-100 10/100/1000BaseTX Gi1/0/4 notconnect 1 auto auto 10/100/1000BaseTX Gi1/0/5 TouchPC notconnect 25 auto auto 10/100/1000BaseTX !-- snippage... |
See device serial number and model along with installed SFP and other inventory information
1 | show inventory |
Output
1 2 3 4 5 | NAME: "1", DESCR: "WS-C2960X-24PS-L" PID: WS-C2960X-24PS-L , VID: V05 , SN: FCW2144B3TC NAME: "GigabitEthernet1/0/27", DESCR: "1000BaseSX SFP" PID: , VID: , SN: H632759 |
See power being used PoE
1 | show power inline |
Output
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 | Module Available Used Remaining (Watts) (Watts) (Watts) ------ --------- -------- --------- 1 370.0 20.4 349.6 Interface Admin Oper Power Device Class Max (Watts) --------- ------ ---------- ------- ------------------- ----- ---- Gi1/0/1 auto off 0.0 n/a n/a 30.0 Gi1/0/2 auto off 0.0 n/a n/a 30.0 Gi1/0/3 auto on 15.4 Ieee PD 3 30.0 Gi1/0/4 auto off 0.0 n/a n/a 30.0 Gi1/0/5 auto off 0.0 n/a n/a 30.0 Gi1/0/6 auto off 0.0 n/a n/a 30.0 Gi1/0/7 auto off 0.0 n/a n/a 30.0 Gi1/0/8 auto off 0.0 n/a n/a 30.0 Gi1/0/9 auto off 0.0 n/a n/a 30.0 Gi1/0/10 auto off 0.0 n/a n/a 30.0 Gi1/0/11 auto off 0.0 n/a n/a 30.0 Gi1/0/12 auto off 0.0 n/a n/a 30.0 Gi1/0/13 auto off 0.0 n/a n/a 30.0 Gi1/0/14 auto on 5.0 Polycom VVX 300 2 30.0 Gi1/0/15 auto off 0.0 n/a n/a 30.0 Gi1/0/16 auto off 0.0 n/a n/a 30.0 Interface Admin Oper Power Device Class Max (Watts) --------- ------ ---------- ------- ------------------- ----- ---- Gi1/0/17 auto off 0.0 n/a n/a 30.0 Gi1/0/18 auto off 0.0 n/a n/a 30.0 Gi1/0/19 auto off 0.0 n/a n/a 30.0 Gi1/0/20 auto off 0.0 n/a n/a 30.0 Gi1/0/21 auto off 0.0 n/a n/a 30.0 Gi1/0/22 auto off 0.0 n/a n/a 30.0 Gi1/0/23 auto off 0.0 n/a n/a 30.0 Gi1/0/24 auto off 0.0 n/a n/a 30.0 |
Show MAC addresses
1 | show mac address-table |
Show MAC addresses by VLAN
1 | show mac address-tabe vlan 20 |
Show MAC address by interface
1 2 3 4 5 6 7 8 | show mac address-table interface Gi1/0/14 Mac Address Table ------------------------------------------- Vlan Mac Address Type Ports ---- ----------- -------- ----- 1 0044.f2c1.e704 DYNAMIC Gi1/0/14 Total Mac Addresses for this criterion: 1 |
Show IP to MAC mappings
1 | show ip arp |
Output
1 2 3 4 5 6 7 8 9 10 11 | Protocol Address Age (min) Hardware Addr Type Interface Internet 172.16.66.1 78 0040.0c07.ac01 ARPA Vlan99 Internet 172.16.66.10 1 0040.569e.be61 ARPA Vlan99 Internet 172.16.66.240 - cc4a.53aa.3941 ARPA Vlan99 Internet 192.168.77.9 0 0040.56a8.d6a0 ARPA Vlan1 Internet 192.168.77.12 0 0040.56a8.81ed ARPA Vlan1 Internet 192.168.77.19 0 0040.56a8.ddc4 ARPA Vlan1 Internet 192.168.77.21 12 0040.569e.67bd ARPA Vlan1 Internet 192.168.77.113 188 3c47.86c0.2692 ARPA Vlan1 Internet 192.168.77.215 - cc4a.53aa.3840 ARPA Vlan1 Internet 192.168.77.254 14 004b.8f7d.1540 ARPA Vlan1 |
Show all interfaces IP addresses and up / down state
1 | show ip interface brief |
Output
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 | Interface IP-Address OK? Method Status Protocol Vlan1 192.168.77.215 YES TFTP up up Vlan99 172.16.66.240 YES TFTP up up FastEthernet0 unassigned YES TFTP administratively down down GigabitEthernet1/0/1 unassigned YES unset down down GigabitEthernet1/0/2 unassigned YES unset down down GigabitEthernet1/0/3 unassigned YES unset up up GigabitEthernet1/0/4 unassigned YES unset down down GigabitEthernet1/0/5 unassigned YES unset down down GigabitEthernet1/0/6 unassigned YES unset down down GigabitEthernet1/0/7 unassigned YES unset down down GigabitEthernet1/0/8 unassigned YES unset down down GigabitEthernet1/0/9 unassigned YES unset down down GigabitEthernet1/0/10 unassigned YES unset down down GigabitEthernet1/0/11 unassigned YES unset up up GigabitEthernet1/0/12 unassigned YES unset up up GigabitEthernet1/0/13 unassigned YES unset down down GigabitEthernet1/0/14 unassigned YES unset up up GigabitEthernet1/0/15 unassigned YES unset up up GigabitEthernet1/0/16 unassigned YES unset up up GigabitEthernet1/0/17 unassigned YES unset down down GigabitEthernet1/0/18 unassigned YES unset up up GigabitEthernet1/0/19 unassigned YES unset up up GigabitEthernet1/0/20 unassigned YES unset down down GigabitEthernet1/0/21 unassigned YES unset down down GigabitEthernet1/0/22 unassigned YES unset down down GigabitEthernet1/0/23 unassigned YES unset down down GigabitEthernet1/0/24 unassigned YES unset down down GigabitEthernet1/0/25 unassigned YES unset down down GigabitEthernet1/0/26 unassigned YES unset down down GigabitEthernet1/0/27 unassigned YES unset up up GigabitEthernet1/0/28 unassigned YES unset down down |
0 Comments