Monday, 6 April 2020

10 SHOW COMMANDS !!!! NETWORK ENGINEER MUST KNOW

As a Network Engineer you must know some useful "Show" Commands so as to know what exactly is going on your device and get information regarding the device.

Cisco CLI Commands show relevant information regarding configuration and operation of the device.

Let's checkout 10 " Show "Commands an Network Engineer Must Know !!!!!!

10 show commands Network Engineer Must Know


1) show running-configuration


Tell us what is the current configuration running on the device.

R1#sh running-config

Building configuration...


Current configuration : 1404 bytes

!

! No configuration change since last restart

!

version 12.4

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname R1

!

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 auth-proxy max-nodata-conns 3

ip admission max-nodata-conns 3

!

!

!

!

 --More--

2)show version

Tells us what is the software and hardware details of the devices.
The uptime of the device.
Configuration -Register of the device.
The Serial Number of the device.

R1#sh version

Cisco IOS Software, C1700 Software (C1700-ADVENTERPRISEK9-M), Version 12.4(25d), RELEASE SOFTWARE (fc1)

Technical Support: http://www.cisco.com/techsupport

Copyright (c) 1986-2010 by Cisco Systems, Inc.

Compiled Wed 18-Aug-10 03:53 by prod_rel_team

ROM: ROMMON Emulation Microcode

ROM: C1700 Software (C1700-ADVENTERPRISEK9-M), Version 12.4(25d), RELEASE SOFTWARE (fc1)

R1 uptime is 4 minutes

System returned to ROM by unknown reload cause - suspect boot_data[BOOT_COUNT] 0x0, BOOT_COUNT 0, BOOTDATA 19

System restarted at 21:30:44 UTC Fri Jun 21 2019

System image file is "tftp://255.255.255.255/unknown"

This product contains cryptographic features and is subject to United

States and local country laws governing import, export, transfer and

use. Delivery of Cisco cryptographic products does not imply

third-party authority to import, export, distribute or use encryption.

Importers, exporters, distributors and users are responsible for

compliance with U.S. and local country laws. By using this product you

agree to comply with applicable laws and regulations. If you are unable

to comply with U.S. and local laws, return this product immediately.

A summary of U.S. laws governing Cisco cryptographic products may be found at:

http://www.cisco.com/wwl/export/crypto/tool/stqrg.html

If you require further assistance please contact us by sending email to

export@cisco.com.

Cisco 1720 (MPC860T) processor (revision 0x202) with 139264K/8192K bytes of memory.

Processor board ID FTX0945W0MY (4279256517), with hardware revision 0000

MPC860T processor: part number 0, mask 0

1 FastEthernet interface

4 Serial(sync/async) interfaces

128K bytes of NVRAM.

4096K bytes of processor board System flash (Read/Write)
Configuration register is 0x2102

3)show ip interface brief

This commands is the most useful command,
Give us the information regarding all the interfaces of device stating the current status and ip address information for the same.

R1#sh ip int brief

Interface                  IP-Address      OK? Method          Status                Protocol

FastEthernet0          unassigned      YES NVRAM  administratively down down

Loopback0               100.0.0.1        YES NVRAM  up                                    up

Serial0                    12.0.0.1            YES NVRAM  up                                    up

Serial1                    13.0.0.1            YES NVRAM  up                                    up

Serial2                    unassigned       YES NVRAM  administratively down down

Serial3                    unassigned       YES NVRAM  administratively down down



4) show interface 

This command is a very popular command.
Provides Layer 1 i.e Physical Layer and Layer 2 i.e Data Link Layer information.
Show the Description , MTU, Bandwidth , Reliability,Encapsulation.
Inbound and Outbound Utilization on the interface.
Packets related information,
Errors , CRC ,Drops etc.
R1#sh int Serial0

Serial0 is up, line protocol is up

  Hardware is PowerQUICC Serial

  Description: connection to R2

  Internet address is 12.0.0.1/24

  MTU 1500 bytes, BW 1544 Kbit/sec, DLY 20000 usec,

     reliability 255/255, txload 1/255, rxload 1/255

  Encapsulation HDLC, loopback not set

  Keepalive set (10 sec)

  Last input 00:00:05, output 00:00:03, output hang never

  Last clearing of "show interface" counters never

  Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0

  Queueing strategy: weighted fair

  Output queue: 0/1000/64/0 (size/max total/threshold/drops)

     Conversations  0/1/256 (active/max active/max total)

     Reserved Conversations 0/0 (allocated/max allocated)

     Available Bandwidth 1158 kilobits/sec

  5 minute input rate 0 bits/sec, 0 packets/sec

  5 minute output rate 0 bits/sec, 0 packets/sec

     202 packets input, 13622 bytes, 0 no buffer

     Received 161 broadcasts, 0 runts, 0 giants, 0 throttles

     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort

     206 packets output, 13880 bytes, 0 underruns

     0 output errors, 0 collisions, 1 interface resets

     0 unknown protocol drops

     0 output buffer failures, 0 output buffers swapped out

     0 carrier transitions

     DCD=up  DSR=up  DTR=up  RTS=up  CTS=up



5) show interface description

This command provides us with the status and description of all the interface

R1#sh int des

Interface                     Status              Protocol    Description

Fa0                            admin down     down

Lo0                            up                      up

Se0                            up                       up         connection to R2

Se1                            up                       up          connection to R3

Se2                            admin down     down

Se3                            admin down     down

6) show ip route

This command show the routing table of the Router

R1#sh ip route

Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP

       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

       E1 - OSPF external type 1, E2 - OSPF external type 2

       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2

       ia - IS-IS inter area, * - candidate default, U - per-user static route

       o - ODR, P - periodic downloaded static route


Gateway of last resort is not set

     34.0.0.0/24 is subnetted, 1 subnets

B       34.0.0.0 [20/0] via 12.0.0.2, 00:24:13

     100.0.0.0/24 is subnetted, 1 subnets

C       100.0.0.0 is directly connected, Loopback0

     24.0.0.0/24 is subnetted, 1 subnets

B       24.0.0.0 [20/0] via 12.0.0.2, 00:24:13

     12.0.0.0/24 is subnetted, 1 subnets

C       12.0.0.0 is directly connected, Serial0

     13.0.0.0/24 is subnetted, 1 subnets

C       13.0.0.0 is directly connected, Serial1

7) show ip protocols

This command tells us the routing protocols  currently running on the router.
R1#sh ip protocols

Routing Protocol is "bgp 100"

  Outgoing update filter list for all interfaces is not set

  Incoming update filter list for all interfaces is not set

  IGP synchronization is disabled

  Automatic route summarization is disabled

  Neighbor(s):

    Address          FiltIn FiltOut DistIn DistOut Weight RouteMap

    12.0.0.2

    13.0.0.3

  Maximum path: 1

  Routing Information Sources:

    Gateway         Distance      Last Update

    12.0.0.2              20      00:24:45

  Distance: external 20 internal 200 local 200


8) show vlan

This commands show the details of the vlans configured on the device.
Also shows the interfaces which are members of the respective vlans
Switch#sh vlan



VLAN Name                             Status    Ports

---- -------------------------------- --------- -------------------------------

1    default                          active    Fa0/1, Fa0/2, Fa0/3, Fa0/4

                                                Fa0/16, Fa0/17, Fa0/18, Fa0/19

                                                Fa0/20, Fa0/21, Fa0/22, Fa0/23

                                                Fa0/24, Gig0/1, Gig0/2

10   DATA                             active    Fa0/5, Fa0/6, Fa0/7, Fa0/8

20   VOICE                            active    Fa0/9, Fa0/10

80   WIFI                             active    Fa0/11, Fa0/12, Fa0/13, Fa0/14

                                                Fa0/15

1002 fddi-default                     active 

1003 token-ring-default               active 

1004 fddinet-default                  active 

1005 trnet-default                    active 



VLAN Type  SAID       MTU   Parent RingNo BridgeNo Stp  BrdgMode Trans1 Trans2

---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------

1    enet  100001     1500  -      -      -        -    -        0      0

10   enet  100010     1500  -      -      -        -    -        0      0

20   enet  100020     1500  -      -      -        -    -        0      0

80   enet  100080     1500  -      -      -        -    -        0      0

1002 fddi  101002     1500  -      -      -        -    -        0      0 

1003 tr    101003     1500  -      -      -        -    -        0      0 

1004 fdnet 101004     1500  -      -      -        ieee -        0      0 

1005 trnet 101005     1500  -      -      -        ibm  -        0      0 



VLAN Type  SAID       MTU   Parent RingNo BridgeNo Stp  BrdgMode Trans1 Trans2

---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------



Remote SPAN VLANs

------------------------------------------------------------------------------



Primary Secondary Type              Ports

------- --------- ----------------- ------------------------------------------


9) show interface trunk

This commands quickly tells us which all interfaces on the switch are configured as trunk and the vlans allowed on the same.

Switch#sh interfaces trunk

Port        Mode         Encapsulation  Status        Native vlan

Fa0/3       on           802.1q         trunking      1
Port        Vlans allowed on trunk

Fa0/3       10,20

Port        Vlans allowed and active in management domain

Fa0/3       10,20

Port        Vlans in spanning tree forwarding state and not pruned

Fa0/3       20


10) show cdp neighbor details

This commands shows the connected cisco devices .
Provides IP address, interface , Model , IOS version of the neighboring 

Switch#sh cdp neighbors detail

Device ID: Router

Entry address(es):

Platform: cisco ISR4300, Capabilities: Router

Interface: FastEthernet0/3, Port ID (outgoing port): GigabitEthernet0/0/0

Holdtime: 165

Version :

Cisco IOS XE Software, Version 03.13.04.S - Extended Support Release

Cisco IOS Software, ISR Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 15.5(3)S5, RELEASE SOFTWARE (fc2)

Technical Support: http://www.cisco.com/techsupport

Copyright (c) 1986-2017 by Cisco Systems, Inc.

Compiled Mon 05-Oct-15 11:24 by mcpre

advertisement version: 2

Duplex: full

Hope you all will find the post useful

No comments:

Post a Comment