<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: zNetLaB</title>
    <description>The latest articles on DEV Community by zNetLaB (@znetlab).</description>
    <link>https://dev.to/znetlab</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4283567%2F4b06b0a2-461f-48ef-a7c3-d999c0cd47a7.png</url>
      <title>DEV Community: zNetLaB</title>
      <link>https://dev.to/znetlab</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/znetlab"/>
    <language>en</language>
    <item>
      <title>The CCNA fault that hides in plain sight: a PC that can ping its neighbour but not the server</title>
      <dc:creator>zNetLaB</dc:creator>
      <pubDate>Fri, 04 Dec 2026 21:08:51 +0000</pubDate>
      <link>https://dev.to/znetlab/the-ccna-fault-that-hides-in-plain-sight-a-pc-that-can-ping-its-neighbour-but-not-the-server-1ea4</link>
      <guid>https://dev.to/znetlab/the-ccna-fault-that-hides-in-plain-sight-a-pc-that-can-ping-its-neighbour-but-not-the-server-1ea4</guid>
      <description>&lt;p&gt;Here is a small network that trips up a lot of CCNA learners:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;PC1 and PC2 sit on the same switch, in the same VLAN, subnet 10.0.1.0/24.&lt;/li&gt;
&lt;li&gt;A router connects that LAN to a server at 10.0.2.10.&lt;/li&gt;
&lt;li&gt;PC1 reaches the server. PC2 does not.&lt;/li&gt;
&lt;li&gt;PC1 and PC2 can ping each other. Cables are fine. The router interfaces are up/up.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Before you read on, decide which &lt;strong&gt;one&lt;/strong&gt; command you would run first.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start where the symptom is
&lt;/h2&gt;

&lt;p&gt;The symptom is on PC2, so start on PC2. A lot of people jump to the router and run &lt;code&gt;show ip route&lt;/code&gt;, and the router's table is perfect, because the router is not the problem.&lt;/p&gt;

&lt;p&gt;On PC2:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight console"&gt;&lt;code&gt;C:\&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; ipconfig

   IPv4 Address. . . . . . . . . . . : 10.0.1.12
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 10.0.1.254
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Compare it with PC1:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;C:\&amp;gt; ipconfig

   IPv4 Address. . . . . . . . . . . : 10.0.1.11
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 10.0.1.1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;PC2's default gateway is 10.0.1.254. Nothing on the LAN owns that address. The router's LAN interface is 10.0.1.1.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why PC1 and PC2 can still ping each other
&lt;/h2&gt;

&lt;p&gt;When PC2 pings PC1 (10.0.1.11), it compares the destination with its own address and mask. Same network, so PC2 sends an ARP for 10.0.1.11 directly and never uses the gateway. That is why "they can ping each other" proves nothing about the gateway.&lt;/p&gt;

&lt;p&gt;When PC2 pings the server (10.0.2.10), the destination is on a different network, so PC2 must hand the packet to its default gateway. It sends an ARP for 10.0.1.254, nobody answers, and the ping times out.&lt;/p&gt;

&lt;p&gt;You can see this on PC2 with &lt;code&gt;arp -a&lt;/code&gt;: there is an entry for PC1 and no entry for the gateway.&lt;/p&gt;

&lt;h2&gt;
  
  
  The fix, and how to prove it
&lt;/h2&gt;

&lt;p&gt;Set PC2's default gateway to 10.0.1.1, then:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight console"&gt;&lt;code&gt;C:\&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; ping 10.0.2.10
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The replies come back, and PC1 still works, so nothing else was broken along the way.&lt;/p&gt;

&lt;h2&gt;
  
  
  The habit to take from this
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Start on the device that has the symptom.&lt;/li&gt;
&lt;li&gt;Compare it with a device that works. The difference is usually the fault.&lt;/li&gt;
&lt;li&gt;"Same subnet works, different subnet fails" points at the gateway (or the mask) almost every time.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;You can open this exact network and fix it yourself in the browser, nothing to install and no sign-up for this lab: &lt;a href="https://znetlab.com/fix?utm_source=devto&amp;amp;utm_campaign=art1" rel="noopener noreferrer"&gt;the broken-gateway lab on zNetLaB&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: I work on zNetLaB, a browser-based network simulator. The beginner labs are free.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>networking</category>
      <category>ccna</category>
      <category>beginners</category>
      <category>cisco</category>
    </item>
  </channel>
</rss>
