
five checks for why a ping fails on Cisco gear
show ip interface briefwhy "it just won't ping" is never actually random
every network person has stared at a dead ping and felt personally attacked by a switch. here's the thing though, a failed ping on cisco gear almost always comes down to one of five layers. not fifty. five. the trick is walking them in order instead of guessing and randomly rebooting stuff until your manager stops asking questions.
this isn't just a cert-exam trick either. this is exactly how you audit your own network for weird misconfigurations that could be quietly exposing traffic to the wrong vlan or leaving a port wide open. troubleshooting connectivity and finding security gaps are basically the same walk.
step one: is the interface even up
start dumb. before you assume vlans or routing are broken, check if the physical and protocol layers agree that the port is alive.
show ip interface brief
you're looking at the status and protocol columns. up/up means the cable is good and the line protocol is happy. down/down means no signal, bad cable, or the port is admin shut. up/down is the annoying one, usually a duplex mismatch, encapsulation mismatch, or something on the other end not talking the same protocol.
defensive angle: this command is also how you spot ports that shouldn't be up. if you see an interface active that you don't remember provisioning, that's an unauthorized device or a forgotten test cable, either way, worth killing.
step two: are both ends actually in the same vlan
a shockingly common cause of "it worked yesterday" is someone moved a port into the wrong vlan during a patch panel cleanup.
show vlan brief
check that both the source and destination ports live in the same vlan id. if they don't, no amount of cable-swapping will fix it, they're logically on different networks even if they're plugged into the same switch.
defensive angle: this is also your quickest way to catch vlan sprawl. ports sitting in vlan 1 by default, unused vlans nobody documented, or a guest port that somehow ended up on your internal vlan. that last one is a real incident waiting to happen.
step three: did the switch actually learn the mac
the switch can't forward a frame to a mac address it's never seen.
show mac address-table
look for the destination mac tied to the correct vlan and port. no entry means the device hasn't sent traffic recently, is powered off, or is on a port the switch isn't listening to correctly.
defensive angle: this table is gold for spotting mac flapping (same mac jumping between ports, a sign of a loop or spoofing) and for catching devices you don't recognize showing up on ports you didn't expect. if you see one mac suddenly appear behind a port that should only have your access point, ask questions.
step four: is the vlan actually allowed across the trunk
if the two devices are on different switches, the vlan has to survive the trunk link between them.
show interfaces trunk
check the "vlans allowed" column against the vlan your devices are sitting in. it's incredibly common for someone to prune a vlan off a trunk during "cleanup" and break connectivity for one specific segment while everything else looks fine.
defensive angle: this is one of the easiest places to accidentally leave a vlan wide open across your whole trunk topology when it should be scoped down. review your allowed vlan lists periodically, don't just trust that whoever configured it in 2019 got it right.
step five: does the routing actually know where to send it
if the ping needs to leave the local subnet, routing has to be sane on both ends.
show ip route
confirm there's a route to the destination network, or at minimum a default route pointing somewhere sane. no route means the packet has nowhere to go and just dies quietly.
defensive angle: check this on your edge devices too. a missing or misconfigured default route can accidentally black-hole traffic, or worse, an extra static route someone added "temporarily" can be silently redirecting traffic somewhere it shouldn't go.
the takeaway
walk these five layers in order and you'll fix 90% of connectivity issues without touching a single cable. but flip it around, run these same five commands on your own network right now, not because something's broken, but because they'll show you stray ports, wrong vlans, unknown macs, and sloppy trunk configs before an attacker or an outage finds them for you. troubleshooting skills and defensive audits are the same muscle. use it.