Your Gateway to a Career in Network Engineering
Module 3: Essential Show Commands
Before you change anything on a network device, you must first understand its current state. `show` commands are the "read-only" diagnostic tools of a network technician. They are your eyes, allowing you to see the configuration, check the status of interfaces, and view the routing table without making any changes. Mastering these commands is the key to effective verification and troubleshooting.
Note: All `show` commands are run from **Privileged EXEC Mode** (e.g., `Router#`).
1. `show running-config`
What it Shows: The entire configuration that is currently running in the device's RAM. This is the live, active configuration.
Router# show running-config
!
hostname R1-Office
!
enable secret 5 $1$mERr$bO.gIdS0s4f3jkl...
!
interface GigabitEthernet0/0/0
description Link to LAN
ip address 192.168.1.1 255.255.255.0
no shutdown
!
line vty 0 4
password cisco
login
!
end
What to Look For:
- Hostname: Is the device named correctly?
- Passwords: Is the `enable secret` configured? Are line passwords set? (Notice the secret is encrypted, but the line password is not until you use `service password-encryption`).
- Interface Configurations: Does each interface have the correct IP address and subnet mask? Are they enabled (`no shutdown`)?
- Other Services: Are routing protocols, ACLs, or other services configured?
2. `show ip interface brief`
What it Shows: A quick, one-line summary of every interface on the device, its IP address, and its operational status. This is often the first command you will run when troubleshooting a connectivity issue.
Router# show ip interface brief
Interface IP-Address OK? Method Status Protocol
GigabitEthernet0/0/0 192.168.1.1 YES manual up up
GigabitEthernet0/0/1 unassigned YES manual administratively down down
Vlan1 unassigned YES manual down down
Interpreting Status and Protocol
The two status columns tell you everything about an interface's health:
- Status (Layer 1): This column represents the Physical Layer.
up: The interface is receiving a valid electrical signal (link light is on).down: No carrier signal. This could be a bad cable, the device on the other end is off, or the wrong cable type.administratively down: The interface has been manually disabled with theshutdowncommand.
- Protocol (Layer 2): This column represents the Data Link Layer.
up: The interface is successfully sending and receiving Layer 2 frames (e.g., keepalives).down: There is a Layer 2 issue, like a protocol mismatch or encapsulation error.
- Goal State: A healthy, working interface will always be
up / up.
3. `show ip route`
What it Shows: The router's routing table. This is the "map" the router uses to make all of its forwarding decisions.
Router# show ip route
Codes: L - local, C - connected, S - static, R - RIP, O - OSPF
Gateway of last resort is not set
192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.1.0/24 is directly connected, GigabitEthernet0/0/0
L 192.168.1.1/32 is directly connected, GigabitEthernet0/0/0
What to Look For:
- Route Codes: The letter at the start of the line tells you how the router learned about that network (e.g., `C` for Connected, `S` for Static).
- Connected Routes (`C`): The router will automatically create a `C` route for any interface that is configured with an IP address and is in an `up/up` state.
- Local Routes (`L`): This shows the specific IP address configured on the router's own interface.
- Missing Routes: If you expect to see a route to a remote network and it's not here, then the router has no idea how to get there. This is a primary indicator of a routing problem.
Summary: Technician's Cheat Sheet
| Command | What It Answers | Primary Use Case |
|---|---|---|
show running-config | "How is this device configured right now?" | Verifying specific settings like passwords, ACLs, and interface configurations. |
show ip interface brief | "Are my connections physically and logically working?" | First step for any connectivity issue. Quickly check if ports are up or shut down. |
show ip route | "Does this router know how to reach the destination network?" | Troubleshooting routing problems and verifying static/dynamic routes. |
- Back to Diploma Overview
- Previous: Basic CLI Configuration
- Next: Static & Dynamic Routing