TechKnowSurge
Cisco CCNA 2.8 Cisco CCST Networking 5.5 Cisco CCST Networking 5.3 CompTIA Network+ 5.5
VideoNetworkFree

DEMO: Switch Command Line Tools

Common network diagnostic commands like ping, traceroute, telnet, and show are demonstrated on a Cisco Catalyst switch running IOS, highlighting how familiar tools translate to a managed switch environment.

Complete this video to capture a CTF flag worth 1 point.

About this video

Cisco IOS on a Catalyst switch supports many of the same diagnostic commands used on other networked devices, making the transition from general networking concepts to switch-specific operations more approachable. The ping command accepts IPv4 addresses, IPv6 addresses, and domain names, functioning much the same way it does on end-user machines. Traceroute is also available and follows syntax similar to Linux, though the full IOS command set differs in important ways, such as the absence of ifconfig. The show command is central to working with Cisco IOS and replaces many of the status and configuration tools found on other operating systems. Show interface displays all physical and logical interfaces on the device, show config outputs the active configuration, and show route provides routing table information where applicable. Cisco IOS also supports console logging with adjustable severity thresholds, allowing administrators to receive real-time alerts when device issues arise. Together, these commands form the foundation of day-to-day switch management and troubleshooting.

What you'll learn

What's covered

Cisco Switch Commands Overview

Aligned to

Cisco CCNA
2.8 Describe network device management access
Cisco CCST Networking
5.5 Run basic show commands on a Cisco network device
5.3 Run basic diagnostic commands and interpret the results
CompTIA Network+
5.5 Given a scenario, use the appropriate tool or protocol to solve networking issues

Key terms

Switch
A network device that connects devices within a LAN and forwards traffic based on MAC addresses.
Internet Control Message Protocol
ICMP
A network layer protocol used to send error messages and operational information about network conditions.
Latency
The time delay between sending a request and receiving a response over a network.
IP Address
A numerical label assigned to each device connected to a network that uses the Internet Protocol.
Cisco IOS CLI
The command-line interface used on Cisco devices to configure, manage, and troubleshoot network equipment using text-based commands.
Ping
A command-line diagnostic utility that uses ICMP echo request and echo reply messages to test whether a remote host is reachable on a network and to measure the round-trip time for packets. It is one of the first tools used when troubleshooting network connectivity issues.
traceroute
A Linux command-line tool that maps the path packets take to a destination host by displaying each intermediate hop and its latency.
Telnet
Telnet is a legacy remote terminal protocol that transmits all data including credentials in cleartext; it is considered insecure and serves as a security training example of why encrypted alternatives like SSH are required.
show interface
A Cisco IOS CLI command that displays status and statistical information about a device's network interfaces.
show config
A Cisco IOS CLI command that displays the current configuration file running on the device.

Transcript

Familiar commands on a switch

Here I am on a Cisco Catalyst switch with a Cisco IOS running. I've got the switch up, and I just want to show you a few commands on it.

The first command that I'm going to show you is ping. Now, I don't really have this switch connected to the rest of the network right now, so I'm not going to be able to fully show you everything right now, but what I'm going to do is just type in ping and then a question mark, and it's going to show you what you can type in to finish this off. It can accept IP addresses, IP version 6 addresses. It can do a word, which means like a domain like www.google.com. So I can use ping just like I can on the other machines.

Another one that I wanted to show you is doing the traceroute. Essentially this is very Linux-like in the operation of this. So when I type in traceroute and then hit question mark, it's going to look very similar to what Linux has, although there are definitely some commands that are different, like it's not going to have the ifconfig as part of this.

Also, another command that we talked about is telnet. So I can type in telnet and then question mark, and you can see that I can connect to an IP address and connect via telnet. So I can telnet into machines.

The show commands

Now, one thing that is different with this is a lot of the things, to be able to view them and take a look at them, you need to use the show command. The show command allows you to view certain things, certain configurations.

So for instance, let's say I want to show the interfaces. This would be replacing essentially the ifconfig. So show interface, and I do that, and it's going to show all of the interfaces that are on this machine. I'm not going to go through all of them, because this is a switch, so it's quite a few different interfaces in here.

Another one that I can do is a show config, and it's going to show me the configuration file that's running on this machine. Once again, I'm not going to go through all of it, but this is one way to go and troubleshoot these devices, and you can see what the configuration is of this device.

And then there is a show route. I can't do it on this because it's a switch and I don't have it all set up to show the route, but there's a show route command that can be done on this to view that.

And then another thing is, I've got it turned off right now, but if something were to go wrong, it also can pop up with the console, different console messages when something is going awry, and you can set the level in which you want it to notify you on how serious the issue is.

So those are some commands on a switch that you could use.

About TechKnowSurge

TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.

Explore free tools and programs →