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.
Cisco Switch Commands Overview
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.
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.
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 →