<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by no Shut Network on Medium]]></title>
        <description><![CDATA[Stories by no Shut Network on Medium]]></description>
        <link>https://medium.com/@noshutnetwork?source=rss-0dc991c87c42------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*apwbRLW8JwDjzpC-</url>
            <title>Stories by no Shut Network on Medium</title>
            <link>https://medium.com/@noshutnetwork?source=rss-0dc991c87c42------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 16:09:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@noshutnetwork/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[LACP EtherChannel: Connect 2 Cisco Switches Using Two Links]]></title>
            <link>https://medium.com/@noshutnetwork/lacp-etherchannel-connect-2-cisco-switches-using-two-links-4258dc66c409?source=rss-0dc991c87c42------2</link>
            <guid isPermaLink="false">https://medium.com/p/4258dc66c409</guid>
            <category><![CDATA[etherchannel]]></category>
            <category><![CDATA[lacp]]></category>
            <category><![CDATA[ccna]]></category>
            <category><![CDATA[lacp-etherchannel]]></category>
            <category><![CDATA[no-shut-network]]></category>
            <dc:creator><![CDATA[no Shut Network]]></dc:creator>
            <pubDate>Wed, 28 Oct 2026 13:21:48 GMT</pubDate>
            <atom:updated>2026-10-28T13:21:48.371Z</atom:updated>
            <content:encoded><![CDATA[<p>In this lab, we’ll use <strong>LACP (Link Aggregation Control Protocol)</strong> to combine two switch links into one logical connection called an <strong>EtherChannel</strong>.</p><p>This provides redundancy if one link fails.</p><h3>1. Network Topology</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CIqVNcK_W3RO0I956m4kyw.png" /></figure><p><strong>Devices:</strong></p><ul><li>2 Cisco 2960 switches</li><li>2 PCs</li></ul><p><strong>Connections:</strong></p><ul><li>SW1 Gi0/1 ↔ SW2 Gi0/1</li><li>SW1 Gi0/2 ↔ SW2 Gi0/2</li><li>PC1 → SW1 Fa0/1</li><li>PC2 → SW2 Fa0/1</li></ul><p><strong>IP Addressing:</strong></p><ul><li>PC1: 192.168.10.10/24</li><li>PC2: 192.168.10.20/24</li><li>VLAN: 10</li></ul><p>No router is needed.</p><h3>2. Configure SW1</h3><pre>enable<br>configure terminal<br>hostname SW1</pre><pre>vlan 10<br> name LAB<br>exit</pre><pre>interface FastEthernet0/1<br> switchport mode access<br> switchport access vlan 10<br>exit</pre><pre>interface range GigabitEthernet0/1 - 2<br> switchport mode trunk<br> channel-group 1 mode active<br>exit</pre><pre>interface Port-channel1<br> switchport mode trunk<br>exit</pre><pre>end<br>write memory</pre><h3>3. Configure SW2</h3><pre>enable<br>configure terminal<br>hostname SW2</pre><pre>vlan 10<br> name LAB<br>exit</pre><pre>interface FastEthernet0/1<br> switchport mode access<br> switchport access vlan 10<br>exit</pre><pre>interface range GigabitEthernet0/1 - 2<br> switchport mode trunk<br> channel-group 1 mode active<br>exit</pre><pre>interface Port-channel1<br> switchport mode trunk<br>exit</pre><pre>end<br>write memory</pre><p><strong>Key command:</strong> channel-group 1 mode active</p><p>This enables LACP and groups the two ports into Port-channel1.</p><h3>4. Verify EtherChannel</h3><p>On both switches:</p><pre>show etherchannel summary<br>show interfaces trunk<br>show vlan brief</pre><p>In the EtherChannel summary, look for:</p><ul><li>Po1(SU) — Layer 2 Port-channel is in use.</li><li>Gi0/1(P) — First link is bundled.</li><li>Gi0/2(P) — Second link is bundled.</li></ul><p>5. Test Connectivity</p><p>From PC1:</p><pre>ping 192.168.10.20</pre><p>The ping should succeed when both switches and VLAN 10 are configured correctly.</p><h3>Optional: Test Link Failure</h3><p>On SW1, disable one EtherChannel member:</p><pre>configure terminal<br>interface GigabitEthernet0/2<br> shutdown<br>end</pre><p>Check again:</p><pre>show etherchannel summary</pre><p>Then ping PC2 again.</p><p>If LACP and link-failure handling work correctly, the remaining link should keep traffic flowing.</p><p>Restore the link:</p><pre>configure terminal<br>interface GigabitEthernet0/2<br> no shutdown<br>end</pre><p>Conclusion</p><p>We configured <strong>LACP EtherChannel</strong> between two Cisco switches.</p><p>LACP combines physical interfaces into one logical connection and helps maintain network availability when a member link fails.</p><p><strong>Main takeaway: Two physical links, one logical Port-channel.</strong></p><p>💡 <strong>Want to try it yourself?</strong> Every topology diagram and Cisco CLI simulation in this article was built right in the browser using <a href="https://pingmynetwork.com/"><strong>PingMyNetwork</strong></a>. Whether you’re studying for your CCNA or just diving into networking fundamentals, head over to <a href="https://pingmynetwork.com/"><strong>PingMyNetwork.com</strong></a> to explore, build, and test your own interactive labs!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4258dc66c409" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding VTP: How Cisco Switches Share VLANs]]></title>
            <link>https://medium.com/@noshutnetwork/understanding-vtp-how-cisco-switches-share-vlans-df2274b871c3?source=rss-0dc991c87c42------2</link>
            <guid isPermaLink="false">https://medium.com/p/df2274b871c3</guid>
            <category><![CDATA[no-shut-network]]></category>
            <category><![CDATA[vlan]]></category>
            <category><![CDATA[vtps]]></category>
            <category><![CDATA[ccna]]></category>
            <category><![CDATA[pingmynetwork]]></category>
            <dc:creator><![CDATA[no Shut Network]]></dc:creator>
            <pubDate>Wed, 28 Oct 2026 13:11:42 GMT</pubDate>
            <atom:updated>2026-10-28T13:11:42.243Z</atom:updated>
            <content:encoded><![CDATA[<p>In this lab, we’ll configure <strong>VTP (VLAN Trunking Protocol)</strong> to share VLAN information between Cisco switches automatically.</p><p>Instead of creating the same VLANs on every switch, VTP can distribute VLAN changes across the network.</p><h3>1. Network Topology</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ELzEiMdyiCf1FNGisJGNHg.png" /></figure><p><strong>Devices:</strong> 3 Cisco 3560 switches.</p><p><strong>Connections:</strong> S1 ↔ S2 ↔ S3</p><p>We’ll use three VTP modes:</p><ul><li><strong>S1 — Server:</strong> Creates and advertises VLANs.</li><li><strong>S2 — Transparent:</strong> Manages its own VLANs and forwards VTP updates without synchronizing.</li><li><strong>S3 — Client:</strong> Receives VLAN updates but cannot create VLANs locally.</li></ul><p><strong>VTP Domain:</strong> ccna</p><p><strong>VTP Version:</strong> 2</p><h3>2. S1 Configuration — VTP Server</h3><pre>enable<br>configure terminal<br>hostname S1</pre><pre>vtp domain ccna<br>vtp version 2<br>vtp mode server</pre><pre>interface GigabitEthernet1/0/1<br> switchport trunk encapsulation dot1q<br> switchport mode trunk<br>exit</pre><pre>end<br>write memory</pre><p>S1 will manage VLANs for the VTP domain.</p><h3>3. S2 Configuration — VTP Transparent</h3><pre>enable<br>configure terminal<br>hostname S2</pre><pre>vtp domain ccna<br>vtp version 2<br>vtp mode transparent</pre><pre>interface range GigabitEthernet1/0/1 - 2<br> switchport trunk encapsulation dot1q<br> switchport mode trunk<br>exit</pre><pre>end<br>write memory</pre><p>S2 has its own VLANs: 11, 22, 33, 44, and 55.</p><p>It does not synchronize its VLAN database with S1, but it forwards VTP advertisements toward S3.</p><h3>4. S3 Configuration — VTP Client</h3><pre>enable<br>configure terminal<br>hostname S3</pre><pre>vtp domain ccna<br>vtp version 2<br>vtp mode client</pre><pre>interface GigabitEthernet1/0/1<br> switchport trunk encapsulation dot1q<br> switchport mode trunk<br>exit</pre><pre>end<br>write memory</pre><p>S3 will learn VLAN changes from S1.</p><p>It cannot create VLANs locally in client mode.</p><h3>5. Testing VTP</h3><p>First, verify the VTP configuration on all three switches:</p><pre>show vtp status<br>show interfaces trunk<br>show vlan brief</pre><h3>Test 1 — Create a VLAN on S1</h3><pre>configure terminal<br>vlan 10<br> name IT<br>exit<br>end</pre><p>Now check S2 and S3:</p><pre>show vlan brief</pre><p><strong>Expected result:</strong></p><ul><li>S1 has VLAN 10.</li><li>S2 does not learn VLAN 10.</li><li>S3 automatically learns VLAN 10.</li></ul><p>Test 2 — Create a VLAN on S2</p><pre>configure terminal<br>vlan 66<br> name TEST<br>exit<br>end</pre><p><strong>Expected result:</strong> VLAN 66 exists only on S2.</p><p>This demonstrates VTP transparent mode.</p><h3>Test 3 — Try Creating a VLAN on S3</h3><pre>configure terminal<br>vlan 99</pre><p><strong>Expected result:</strong> Cisco IOS rejects VLAN creation because S3 is a VTP client.</p><p>6. Useful Commands</p><pre>show vtp status<br>show vtp counters<br>show vlan brief<br>show interfaces trunk<br>show running-config</pre><p>These commands help verify VTP settings, VLAN synchronization, and trunk connections.</p><h3>Conclusion</h3><p>In this lab, we learned three VTP modes:</p><ul><li><strong>Server:</strong> Creates and shares VLAN information.</li><li><strong>Transparent:</strong> Keeps its own VLAN database and can forward VTP updates.</li><li><strong>Client:</strong> Learns VLANs automatically and cannot create them locally.</li></ul><p><strong>The main takeaway: VTP makes VLAN management easier across multiple switches.</strong></p><p>💡 <strong>Want to try it yourself?</strong> Every topology diagram and Cisco CLI simulation in this article was built right in the browser using <a href="https://pingmynetwork.com/"><strong>PingMyNetwork</strong></a>. Whether you’re studying for your CCNA or just diving into networking fundamentals, head over to <a href="https://pingmynetwork.com/"><strong>PingMyNetwork.com</strong></a> to explore, build, and test your own interactive labs</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df2274b871c3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Basic VLANs]]></title>
            <link>https://medium.com/@noshutnetwork/basic-vlans-4ff2f570203f?source=rss-0dc991c87c42------2</link>
            <guid isPermaLink="false">https://medium.com/p/4ff2f570203f</guid>
            <category><![CDATA[ccna]]></category>
            <category><![CDATA[inter-vlan-routing]]></category>
            <category><![CDATA[no-shut-network]]></category>
            <category><![CDATA[vlan]]></category>
            <dc:creator><![CDATA[no Shut Network]]></dc:creator>
            <pubDate>Wed, 28 Oct 2026 13:01:12 GMT</pubDate>
            <atom:updated>2026-10-28T13:01:12.559Z</atom:updated>
            <content:encoded><![CDATA[<p>In this lab, we’ll connect different VLANs using a <strong>Layer 3 switch</strong>, without a separate router.</p><p>A Layer 3 switch uses <strong>SVIs (Switch Virtual Interfaces)</strong> as gateways to route traffic between VLANs.</p><h3>1. Network Topology</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YH08cNV_MmKDRU3-9LW9eA.png" /></figure><p><strong>Devices:</strong></p><ul><li>1 Layer 3 switch (Cisco 3560)</li><li>3 Layer 2 switches (Cisco 2960)</li><li>3 PCs and 1 Server</li></ul><p><strong>IP Addressing:</strong></p><ul><li>VLAN 10 — PC1: 10.1.10.10/24 | GW: 10.1.10.254</li><li>VLAN 20 — PC2: 10.1.20.20/24 | GW: 10.1.20.254</li><li>VLAN 30 — PC3: 10.1.30.30/24 | GW: 10.1.30.254</li><li>VLAN 100 — Server: 10.1.100.100/24 | GW: 10.1.100.254</li></ul><p><strong>Switch Management (VLAN 1):</strong></p><ul><li>L3-SW: 10.1.1.254</li><li>SW1: 10.1.1.1</li><li>SW2: 10.1.1.2</li><li>SW3: 10.1.1.3</li></ul><h3>2. Layer 3 Switch Configuration</h3><p>Create VLANs, configure their gateways, enable routing, and configure trunk ports.</p><pre>enable<br>configure terminal<br>hostname L3-SW</pre><pre>vlan 10<br>vlan 20<br>vlan 30<br>vlan 100<br>exit</pre><pre>ip routing</pre><pre>interface Vlan1<br> ip address 10.1.1.254 255.255.255.0<br> no shutdown<br>exit</pre><pre>interface Vlan10<br> ip address 10.1.10.254 255.255.255.0<br> no shutdown<br>exit</pre><pre>interface Vlan20<br> ip address 10.1.20.254 255.255.255.0<br> no shutdown<br>exit</pre><pre>interface Vlan30<br> ip address 10.1.30.254 255.255.255.0<br> no shutdown<br>exit</pre><pre>interface Vlan100<br> ip address 10.1.100.254 255.255.255.0<br> no shutdown<br>exit</pre><pre>interface range GigabitEthernet1/0/1 - 3<br> switchport mode trunk<br>exit</pre><pre>interface GigabitEthernet1/0/20<br> switchport mode access<br> switchport access vlan 100<br>exit</pre><pre>end<br>write memory</pre><p><strong>Key command:</strong> ip routing enables routing between the VLANs.</p><h3>3. SW1 Configuration — VLAN 10</h3><pre>enable<br>configure terminal<br>hostname SW1</pre><pre>vlan 10<br>exit</pre><pre>interface FastEthernet0/1<br> switchport mode access<br> switchport access vlan 10<br>exit</pre><pre>interface GigabitEthernet0/1<br> switchport mode trunk<br>exit</pre><pre>interface Vlan1<br> ip address 10.1.1.1 255.255.255.0<br> no shutdown<br>exit</pre><pre>ip default-gateway 10.1.1.254</pre><pre>end<br>write memory</pre><h3>4. SW2 Configuration — VLAN 20</h3><pre>enable<br>configure terminal<br>hostname SW2</pre><pre>vlan 20<br>exit</pre><pre>interface FastEthernet0/1<br> switchport mode access<br> switchport access vlan 20<br>exit</pre><pre>interface GigabitEthernet0/1<br> switchport mode trunk<br>exit</pre><pre>interface Vlan1<br> ip address 10.1.1.2 255.255.255.0<br> no shutdown<br>exit</pre><pre>ip default-gateway 10.1.1.254</pre><pre>end<br>write memory</pre><h3>5. SW3 Configuration — VLAN 30</h3><pre>enable<br>configure terminal<br>hostname SW3</pre><pre>vlan 30<br>exit</pre><pre>interface FastEthernet0/1<br> switchport mode access<br> switchport access vlan 30<br>exit</pre><pre>interface GigabitEthernet0/1<br> switchport mode trunk<br>exit</pre><pre>interface Vlan1<br> ip address 10.1.1.3 255.255.255.0<br> no shutdown<br>exit</pre><pre>ip default-gateway 10.1.1.254</pre><pre>end<br>write memory</pre><p><strong>Note:</strong></p><ul><li>Access ports connect end devices to their VLANs.</li><li>Trunk ports carry VLAN traffic between switches.</li><li>SVIs act as default gateways.</li><li>ip default-gateway on the Layer 2 switches is for management traffic.</li></ul><h3>6. Verification</h3><p>On L3-SW:</p><pre>show vlan brief<br>show interfaces trunk<br>show ip interface brief<br>show ip route</pre><p>Check that the VLAN interfaces are up/up and that the VLAN networks appear as connected routes.</p><h3>7. Testing Connectivity</h3><p>From PC1, test communication with the other VLANs:</p><pre>ping 10.1.20.20<br>ping 10.1.30.30<br>ping 10.1.100.100</pre><p>Test switch management connectivity:</p><pre>ping 10.1.1.254</pre><p><strong>Expected result:</strong> All pings succeed when the VLANs, trunks, gateways, and routing are correctly configured.</p><h3>Conclusion</h3><p>We configured <strong>Inter-VLAN Routing using a Layer 3 switch</strong> with VLANs, access ports, trunk ports, SVIs, and ip routing.</p><p>Unlike Router-on-a-Stick, no separate router is required.</p><p>💡 <strong>Want to try it yourself?</strong> Every topology diagram and Cisco CLI simulation in this article was built right in the browser using <a href="https://pingmynetwork.com/"><strong>PingMyNetwork</strong></a>. Whether you’re studying for your CCNA or just diving into networking fundamentals, head over to <a href="https://pingmynetwork.com/"><strong>PingMyNetwork.com</strong></a> to explore, build, and test your own interactive labs!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4ff2f570203f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why STP PortFast Matters: A Simple Cisco Switch Lab]]></title>
            <link>https://medium.com/@noshutnetwork/why-stp-portfast-matters-a-simple-cisco-switch-lab-6018d997a9f4?source=rss-0dc991c87c42------2</link>
            <guid isPermaLink="false">https://medium.com/p/6018d997a9f4</guid>
            <category><![CDATA[stp]]></category>
            <category><![CDATA[ccna]]></category>
            <category><![CDATA[no-shut-network]]></category>
            <category><![CDATA[fast-port]]></category>
            <dc:creator><![CDATA[no Shut Network]]></dc:creator>
            <pubDate>Wed, 28 Oct 2026 12:41:56 GMT</pubDate>
            <atom:updated>2026-10-28T12:41:56.108Z</atom:updated>
            <content:encoded><![CDATA[<p>Everything a beginner needs to know about Spanning Tree PortFast, and why it gets devices online faster.</p><p>You’ve probably plugged a computer into a network switch and watched it sit there for a few seconds before the network actually comes up. Spanning Tree Protocol might be the reason.</p><p>STP keeps switching loops from wrecking your network, though you’ll still hit that annoying lag when a new device first plugs in.</p><p>That’s exactly what <strong>PortFast </strong>fixes. What’s Spanning Tree Protocol?</p><p>Network switches use Spanning Tree Protocol (STP) to prevent Layer 2 loops. Picture connecting two switches with several cables at once.</p><p>If there’s no loop prevention, Ethernet frames can keep cycling, sparking broadcast storms and network problems. STP stops this by putting redundant paths in a blocking state.</p><p>Traditional STP puts switch ports through a whole process before they’ll actually forward traffic.</p><p><strong>The main stages are:</strong></p><ol><li><strong>Listening:</strong> The switch checks the network topology.</li><li><strong>Learning:</strong> The switch starts learning MAC addresses.</li><li><strong>Forwarding:</strong> The port can send and receive normal network traffic.</li></ol><p>With traditional STP and default timers, the listening and learning stages can take approximately <strong>30 seconds in total</strong>.</p><p>For a port connected directly to a PC, this delay is usually unnecessary.</p><h3>2. What Is PortFast?</h3><p>PortFast is a Cisco switch feature that allows an end-device port to enter the <strong>Forwarding</strong> state immediately when the link comes up.</p><p>Instead of waiting through the normal listening and learning stages, the port can start forwarding traffic right away.</p><p>This is useful for devices such as:</p><ul><li>Computers</li><li>Servers</li><li>Printers</li></ul><p><strong>Important:</strong> PortFast does not disable STP. It simply allows suitable edge ports to start forwarding immediately.</p><p>PortFast should not normally be enabled on connections between switches because doing so can increase the risk of network loops.</p><h3>3. Our Lab Topology</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AeOxtHPeOnVhgUh0dbRiBQ.png" /></figure><p>For this lab, I used:</p><ul><li>1 Cisco 3560 switch</li><li>2 PCs</li><li>1 server</li></ul><p><strong>Connections:</strong></p><ul><li>PC1 → Switch Gi1/0/1</li><li>Server → Switch Gi1/0/2</li><li>PC2 → Switch Gi1/0/3</li></ul><p>The server has IP address 10.1.1.200/24.</p><p>Both PCs are initially configured to obtain IP addresses using DHCP. To test connectivity, they must receive valid addresses from a working DHCP service.</p><p>Alternatively, we can manually configure:</p><ul><li>PC1: 10.1.1.10/24</li><li>PC2: 10.1.1.20/24</li></ul><p>All devices are in the same LAN, so no router is needed.</p><h3>4. Configuring PortFast</h3><p>Let’s enable PortFast on the three switch ports connected to our end devices.</p><pre>enable<br>configure terminal</pre><pre>spanning-tree mode pvst</pre><pre>interface range GigabitEthernet1/0/1 - 3<br> switchport mode access<br> spanning-tree portfast<br>exit</pre><pre>end<br>write memory</pre><p><strong>What do these commands do?</strong></p><ul><li>spanning-tree mode pvst — Enables Per-VLAN Spanning Tree.</li><li>switchport mode access — Configures the interfaces as access ports.</li><li>spanning-tree portfast — Allows the ports to start forwarding immediately.</li><li>write memory — Saves the configuration.</li></ul><p>On some Cisco IOS versions, PortFast appears in the running configuration as:</p><pre>spanning-tree portfast edge</pre><p>Both forms refer to the PortFast edge behavior in this lab.</p><h3>5. Verifying PortFast</h3><p>After configuring the switch, we can check its settings.</p><pre>show running-config</pre><p>In the configuration, we should find PortFast enabled on the three interfaces.</p><p>We can also check STP information using:</p><pre>show spanning-tree vlan 1</pre><p>For more details about a specific port:</p><pre>show spanning-tree interface GigabitEthernet1/0/1 detail</pre><p>These commands help us verify that the switch is running STP and that PortFast is configured where intended.</p><p><em>[Insert PortFast configuration or verification screenshot here]</em></p><h3>6. Testing PortFast</h3><p>To understand the difference, we can compare the port behavior with and without PortFast.</p><p><strong>Test 1 — Without PortFast</strong></p><p>On PC1’s switch interface:</p><pre>configure terminal</pre><pre>interface GigabitEthernet1/0/1<br> no spanning-tree portfast<br>exit</pre><pre>end</pre><p>Disconnect and reconnect PC1.</p><p>With traditional STP, the port may need to pass through the listening and learning stages before forwarding normal traffic.</p><p><strong>Test 2 — With PortFast</strong></p><p>Now enable PortFast again:</p><pre>configure terminal</pre><pre>interface GigabitEthernet1/0/1<br> spanning-tree portfast<br>exit</pre><pre>end</pre><p>Disconnect and reconnect PC1 again.</p><p>With PortFast, the port should start forwarding much sooner.</p><p>We can also test connectivity from PC1 to the server:</p><pre>ping 10.1.1.200</pre><p>This test requires PC1 to have a valid IP address in the same network.</p><p><em>Note: Some simulators may not reproduce real STP timing accurately. The configuration can be verified even if the simulator does not show a noticeable timing difference.</em></p><h3>7. Extra Protection: BPDU Guard</h3><p>There’s one more useful feature often configured alongside PortFast: <strong>BPDU Guard</strong>.</p><p>BPDU stands for <em>Bridge Protocol Data Unit</em>. Switches use BPDUs to exchange STP information.</p><p>A normal PC should not send STP BPDUs.</p><p>If someone connects another switch to a PortFast-enabled access port, BPDU Guard can detect its BPDUs and disable the port.</p><p>We can enable it with:</p><pre>configure terminal</pre><pre>interface range GigabitEthernet1/0/1 - 3<br> spanning-tree bpduguard enable<br>exit</pre><pre>end<br>write memory</pre><p>This is an optional improvement to our basic lab, not part of the original tested configuration.</p><h3>8. Conclusion</h3><p>In this lab, we learned why STP PortFast is important.</p><p><strong>STP</strong> protects switched networks from loops.</p><p><strong>PortFast</strong> allows ports connected to end devices to start forwarding traffic immediately, avoiding the normal STP startup delay.</p><p>We also introduced <strong>BPDU Guard</strong>, which provides extra protection for PortFast-enabled ports.</p><p>The main takeaway is simple:</p><p><strong>Use PortFast on end-device ports, not on regular switch-to-switch connections.</strong></p><p>💡 <strong>Want to try it yourself?</strong> Every topology diagram and Cisco CLI simulation in this article was built right in the browser using <a href="https://pingmynetwork.com/"><strong>PingMyNetwork</strong></a>. Whether you’re studying for your CCNA or just diving into networking fundamentals, head over to <a href="https://pingmynetwork.com/"><strong>PingMyNetwork.com</strong></a> to explore, build, and test your own interactive labs!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6018d997a9f4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cisco Port Security: How Switches Block Unauthorized Devices]]></title>
            <link>https://medium.com/@noshutnetwork/cisco-port-security-how-switches-block-unauthorized-devices-a3ff311f263e?source=rss-0dc991c87c42------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3ff311f263e</guid>
            <category><![CDATA[no-shut-network]]></category>
            <category><![CDATA[pingmynetwork]]></category>
            <category><![CDATA[ccna]]></category>
            <category><![CDATA[port-security]]></category>
            <category><![CDATA[ccnp]]></category>
            <dc:creator><![CDATA[no Shut Network]]></dc:creator>
            <pubDate>Tue, 27 Oct 2026 13:17:14 GMT</pubDate>
            <atom:updated>2026-10-27T13:17:14.504Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>A simple beginner-friendly lab to understand how Cisco switches protect network ports using MAC addresses.</strong></p><p>Imagine someone disconnects an office computer and connects their own laptop to the same network port.</p><p>By default, a switch may allow the new device to communicate.</p><p>But what if we want only one specific device to use that port?</p><p>That’s where <strong>Port Security</strong> comes in.</p><h3>1. What Is Port Security?</h3><p>Port Security is a Cisco switch feature that controls which MAC addresses are allowed on a switch port.</p><p>A <strong>MAC address</strong> is a unique identifier assigned to a network interface.</p><p>With Port Security, we can:</p><ul><li>Limit the number of MAC addresses on a port.</li><li>Allow only specific MAC addresses.</li><li>Automatically learn and remember allowed MAC addresses.</li><li>Block traffic or disable the port when a violation occurs.</li></ul><p>In this lab, we’ll configure a switch to allow only one device on a port.</p><h3>2. Network Topology</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9zljDohVf5-_HOKHZov4-A.png" /></figure><p><strong>Devices used:</strong></p><ul><li>1 Cisco 3560 switch (DSW1)</li><li>PC1: Authorized device</li><li>PC2: Another device on the network</li><li>PC3: Unauthorized device for testing</li></ul><p><strong>IP Addresses:</strong></p><ul><li>PC1: 192.168.1.10</li><li>PC2: 192.168.1.20</li><li>PC3: 192.168.1.10</li></ul><p>All devices use subnet mask 255.255.255.0.</p><p>PC1 initially connects to Fa0/1, while PC2 connects to Fa0/2.</p><p>Later, we’ll disconnect PC1 and connect PC3 to the same port.</p><p>PC3 uses the same IP as PC1, but it has a different MAC address. Only one of these PCs is connected at a time.</p><h3>3. Configuring Port Security</h3><p>On DSW1, I configured Port Security on FastEthernet0/1.</p><pre>enable<br>configure terminal</pre><pre>interface FastEthernet0/1<br> switchport mode access<br> switchport port-security<br> switchport port-security maximum 1<br> switchport port-security mac-address sticky<br> switchport port-security violation shutdown</pre><pre>end<br>write memory</pre><p><strong>What do these commands do?</strong></p><ul><li>switchport mode access: Sets the port to access mode.</li><li>switchport port-security : Enables Port Security.</li><li>maximum 1: Allows only one secure MAC address.</li><li>mac-address sticky : Automatically learns and remembers the MAC address.</li><li>violation shutdown: Disables the port if an unauthorized MAC address is detected.</li></ul><h3>4. Verifying Port Security</h3><p>After generating traffic from PC1, I checked the switch using:</p><pre>show port-security interface FastEthernet0/1</pre><p><strong>Output:</strong></p><pre>Port Security        : Enabled<br>Port Status          : Secure-up<br>Violation Mode       : Shutdown<br>Maximum MAC Addresses: 1<br>Total MAC Addresses  : 1<br>Sticky MAC Addresses : 1<br>Security Violation Count: 0</pre><p>The switch learned PC1’s MAC address:</p><pre>2875.6435.2902</pre><p>This MAC address is now allowed on Fa0/1.</p><h3>5. Testing with an Unauthorized Device</h3><p>Now comes the interesting part.</p><p>I disconnected PC1 and connected PC3 to the same switch port (Fa0/1).</p><p>PC3 has a different MAC address.</p><p>When PC3 started sending traffic, the switch detected a Port Security violation.</p><p><strong>Switch log:</strong></p><pre>%PM-4-ERR_DISABLE:<br>psecure-violation error detected on Fa0/1,<br>putting Fa0/1 in err-disable state</pre><p>The switch also reported the unauthorized MAC address:</p><pre>%PORT_SECURITY-2-PSECURE_VIOLATION:<br>Security violation occurred,<br>caused by MAC address 4275.8392.6774<br>on port FastEthernet0/1.</pre><p><strong>Result:</strong> The switch automatically disabled Fa0/1.</p><h3>6. Testing Connectivity</h3><p>Before the violation, PC1 successfully pinged PC2:</p><pre>ping 192.168.1.20</pre><p>Result: <strong>4 packets sent, 4 received.</strong></p><p>After replacing PC1 with PC3, I tried the same ping.</p><pre>ping 192.168.1.20</pre><p>Result:</p><pre>PING: transmit failed. General failure.</pre><pre>Packets: Sent = 4, Received = 0<br>Lost = 4 (100% loss)</pre><p>PC3 could not communicate because the switch port had been disabled.</p><p>This demonstrates how Port Security can prevent an unknown device from using a protected network port.</p><h3>7. How to Restore the Port</h3><p>After removing the unauthorized device and reconnecting the original PC, an administrator can restore the port using:</p><pre>configure terminal</pre><pre>interface FastEthernet0/1<br> shutdown<br> no shutdown</pre><pre>end</pre><p>The port should return to normal if the security violation has been resolved.</p><h3>8. Conclusion</h3><p>In this lab, we learned how Cisco Port Security uses MAC addresses to control access to switch ports.</p><p>We configured:</p><ul><li>A maximum of one MAC address.</li><li>Sticky MAC address learning.</li><li>Shutdown mode for security violations.</li></ul><p>When an unknown device connected, the switch detected its MAC address and disabled the port.</p><p><strong>The main takeaway: Port Security helps protect switch ports by limiting which MAC addresses can use them.</strong></p><p>However, MAC addresses can be spoofed, so Port Security alone is not a complete network authentication solution.</p><p>💡 <strong>Want to try it yourself?</strong> Every topology diagram and Cisco CLI simulation in this article was built right in the browser using <a href="https://pingmynetwork.com/"><strong>PingMyNetwork</strong></a>. Whether you’re studying for your CCNA or just diving into networking fundamentals, head over to <a href="https://pingmynetwork.com/"><strong>PingMyNetwork.com</strong></a> to explore, build, and test your own interactive labs!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3ff311f263e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ARP vs. MAC Address Table: How PCs and Switches Find Each Other]]></title>
            <link>https://medium.com/@noshutnetwork/arp-vs-mac-address-table-how-pcs-and-switches-find-each-other-cfbad685ac02?source=rss-0dc991c87c42------2</link>
            <guid isPermaLink="false">https://medium.com/p/cfbad685ac02</guid>
            <category><![CDATA[rap]]></category>
            <category><![CDATA[noshutlabs]]></category>
            <category><![CDATA[ccna]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[ccnp]]></category>
            <dc:creator><![CDATA[no Shut Network]]></dc:creator>
            <pubDate>Tue, 27 Oct 2026 10:51:11 GMT</pubDate>
            <atom:updated>2026-10-27T10:51:11.516Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>A simple networking lab to understand how ARP &amp; MAC address learning work.</strong></p><p>Have you ever wondered how a computer knows where to send data when communicating with another computer on the same network?</p><p>We usually use IP addresses to identify devices, but Ethernet networks also use MAC addresses to deliver frames.</p><p>This is where two important concepts come in:</p><ul><li><strong>ARP (Address Resolution Protocol)</strong></li><li><strong>MAC Address Table</strong></li></ul><p>In this simple lab, we’ll see how both work together using just one switch and two PCs.</p><h3>1. What Is ARP?</h3><p>ARP stands for <strong>Address Resolution Protocol</strong>.</p><p>Its job is simple: find the MAC address associated with an IPv4 address on the local network.</p><p>For example, PC1 wants to communicate with PC2.</p><p>PC1 knows PC2’s IP address (192.168.1.20), but it may not know its MAC address.</p><p>So PC1 sends an ARP Request asking:</p><p><strong>“Who has 192.168.1.20? Tell me your MAC address.”</strong></p><p>PC2 responds with its MAC address.</p><p>PC1 then stores this information in its <strong>ARP table</strong> for future communication.</p><h3>2. What Is a MAC Address Table?</h3><p>A MAC address table is maintained by a network switch.</p><p>It helps the switch identify which port leads to a particular MAC address.</p><p>For example:</p><ul><li>PC1 is connected to Fa0/1.</li><li>PC2 is connected to Fa0/2.</li></ul><p>When the switch receives frames, it learns the source MAC addresses and remembers their associated ports.</p><p>Next time it needs to forward a frame to a known MAC address, it can send the frame through the correct port instead of flooding it.</p><p><strong>The main difference:</strong></p><ul><li><strong>ARP Table:</strong> Maps IPv4 addresses to MAC addresses.</li><li><strong>MAC Address Table:</strong> Maps MAC addresses to switch ports within a VLAN.</li></ul><h3>3. Our Network Topology</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7n_o8sKdGEWZ3Qsf47EG_w.png" /></figure><p>For this lab, we only need:</p><ul><li>1 Cisco 2960 Switch</li><li>2 PCs</li><li>2 Ethernet cables</li></ul><p>Both PCs are connected to the same switch.</p><h3>IP Configuration</h3><p><strong>PC1</strong></p><ul><li>IP Address: 192.168.1.10</li><li>Subnet Mask: 255.255.255.0</li><li>Switch Port: Fa0/1</li></ul><p><strong>PC2</strong></p><ul><li>IP Address: 192.168.1.20</li><li>Subnet Mask: 255.255.255.0</li><li>Switch Port: Fa0/2</li></ul><p>Both devices belong to the same network: 192.168.1.0/24.</p><p>We don’t need a router or default gateway because both PCs are on the same local network.</p><p>No special switch configuration is required if both ports are in the default VLAN 1.</p><h3>4. Checking the ARP Table</h3><p>Before sending any traffic, let’s check PC1’s ARP table.</p><p>Open the PC command prompt and enter:</p><pre>arp -a</pre><p>This displays the IPv4-to-MAC address mappings that PC1 already knows.</p><p>The table may be empty if PC1 hasn’t communicated with any other devices yet.</p><h3>5. Checking the Switch MAC Address Table</h3><p>Now open the switch CLI.</p><pre>enable<br>show mac address-table</pre><p>This command displays the MAC addresses learned by the switch and their associated interfaces.</p><p>If the switch hasn’t received any traffic, the dynamic MAC address table may be empty.</p><h3>6. Generate Some Traffic</h3><p>Let’s ping PC2 from PC1.</p><pre>ping 192.168.1.20</pre><p>If everything is connected correctly, we should receive replies.</p><p>But what actually happens behind the scenes?</p><p><strong>Step 1: ARP Request</strong></p><p>PC1 checks its ARP table.</p><p>If PC2’s MAC address is unknown, PC1 broadcasts an ARP Request asking for the MAC address of 192.168.1.20.</p><p><strong>Step 2: Switch Learns PC1’s MAC</strong></p><p>SW1 receives the frame through Fa0/1.</p><p>It learns PC1’s source MAC address and associates it with Fa0/1.</p><p>Since the ARP Request is a broadcast, the switch floods it to the other ports in the same VLAN.</p><p><strong>Step 3: ARP Reply</strong></p><p>PC2 receives the ARP Request and replies with its MAC address.</p><p><strong>Step 4: Switch Learns PC2’s MAC</strong></p><p>When SW1 receives PC2’s reply through Fa0/2, it learns PC2&#39;s source MAC address.</p><p>Now the switch knows where both PCs are connected.</p><p><strong>Step 5: Communication Begins</strong></p><p>PC1 stores PC2’s MAC address in its ARP table and sends the ICMP Echo Request used by ping.</p><p>The switch forwards the Ethernet frame using its MAC address table.</p><h3>7. Verify the Results</h3><p>After pinging PC2, check the ARP table again on PC1.</p><pre>arp -a</pre><p>You should now see an entry for 192.168.1.20, similar to:</p><pre>C:\&gt;arp -a<br><br>Interface: 192.168.1.10 --- 0x2<br>  Internet Address      Physical Address      Type<br>  192.168.1.20          42-50-90-21-80-63     dynamic</pre><p><em>The MAC address above is an example. Your actual result will be different.</em></p><p>Now return to SW1.</p><pre>show mac address-table dynamic</pre><p>Example output:</p><pre>SW1#show mac address-table dynamic<br>          Mac Address Table<br>-------------------------------------------<br><br>Vlan    Mac Address       Type        Ports<br>----    -----------       --------    -----<br>   1    2875.6435.2902    DYNAMIC     Fa0/1<br>   1    4250.9021.8063    DYNAMIC     Fa0/2<br>Total Mac Addresses for this criterion: 2</pre><p>Notice the difference.</p><p>The PC knows which <strong>MAC address belongs to an IPv4 address</strong>.</p><p>The switch knows which <strong>port leads to a MAC address</strong>.</p><p>These are two different tables performing two different jobs.</p><h3>8. What Happens If the Switch Doesn’t Know the Destination MAC?</h3><p>If a switch receives a unicast frame and doesn’t know which port leads to the destination MAC address, it performs <strong>unknown unicast flooding</strong>.</p><p>It sends the frame out the other forwarding ports in the same VLAN.</p><p>Once it learns the destination device’s MAC address from a received frame, it can forward future frames directly to the correct port.</p><p>This is called <strong>MAC address learning</strong>.</p><p>Switches also remove inactive dynamic MAC entries after an aging period.</p><h3>9. Useful Verification Commands</h3><p><strong>On a PC:</strong></p><pre>ipconfig<br>arp -a<br>ping 192.168.1.20</pre><p><strong>On a Cisco Switch:</strong></p><pre>show mac address-table<br>show mac address-table dynamic<br>show interfaces status</pre><p>These commands are useful for understanding and troubleshooting basic Layer 2 communication.</p><h3>10. Conclusion</h3><p>This simple lab helped us understand how ARP and MAC address learning work together.</p><p><strong>ARP helps a device discover the MAC address associated with an IPv4 address.</strong></p><p><strong>The MAC address table helps a switch forward Ethernet frames through the correct ports.</strong></p><p>Both are essential for communication inside a local network.</p><p>The easiest way to remember the difference is:</p><p><strong>ARP asks: “What is the MAC address?”</strong></p><p><strong>The switch asks: “Which port leads to that MAC address?”</strong></p><p>💡 <strong>Want to try it yourself?</strong> Every topology diagram and Cisco CLI simulation in this article was built right in the browser using <a href="https://pingmynetwork.com/"><strong>PingMyNetwork</strong></a>. Whether you’re studying for your CCNA or just diving into networking fundamentals, head over to <a href="https://pingmynetwork.com/"><strong>PingMyNetwork.com</strong></a> to explore, build, and test your own interactive labs!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cfbad685ac02" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding VLANs from Scratch: A Simple Cisco Networking Lab]]></title>
            <link>https://medium.com/@noshutnetwork/understanding-vlans-from-scratch-a-simple-cisco-networking-lab-e03635f9e749?source=rss-0dc991c87c42------2</link>
            <guid isPermaLink="false">https://medium.com/p/e03635f9e749</guid>
            <category><![CDATA[ccnp]]></category>
            <category><![CDATA[ccna]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[vlan]]></category>
            <category><![CDATA[noshutlabs]]></category>
            <dc:creator><![CDATA[no Shut Network]]></dc:creator>
            <pubDate>Tue, 27 Oct 2026 10:18:18 GMT</pubDate>
            <atom:updated>2026-10-27T10:18:18.477Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>A beginner-friendly guide to VLANs and network segmentation.</strong></p><p>Imagine a company with 3 buildings. Each building has employees from different departments, such as IT, HR, and Guests.</p><p>Everyone is connected to the company network, but should every device be part of the same network?</p><p>Not necessarily.</p><p>This is where <strong>VLANs (Virtual Local Area Networks)</strong> come in.</p><p>In this lab, we’ll learn what VLANs are, why we use them, and how they work using three Cisco switches and six PCs.</p><h3>1. What Is a VLAN?</h3><p>A VLAN is a way to divide a physical network into multiple <strong>logical networks</strong>.</p><p>Normally, devices connected to the same switch are part of the same VLAN by default.</p><p>But using VLANs, we can separate them into different groups without needing a separate physical switch for each group.</p><p>For example:</p><ul><li><strong>VLAN 10 — IT Department</strong></li><li><strong>VLAN 20 — HR Department</strong></li><li><strong>VLAN 30 — Guest Network</strong></li></ul><p>Even if devices share the same physical switches, they can belong to different VLANs.</p><p>Think of it like dividing one large office into separate rooms. Everyone is inside the same building, but each room has its own space.</p><p>Technically, <strong>each VLAN is a separate Layer 2 broadcast domain</strong>.</p><p>This means a broadcast sent inside VLAN 10 will not normally reach VLAN 20 or VLAN 30.</p><h3>2. Why Do We Need VLANs?</h3><p>VLANs make networks easier to organize and manage.</p><p>They provide three main benefits:</p><p><strong>1. Network Segmentation</strong></p><ul><li>We can separate different departments into their own logical networks.</li></ul><p><strong>2. Reduced Broadcast Traffic</strong></p><ul><li>Broadcast traffic stays within its VLAN instead of reaching every device on the switched network.</li></ul><p><strong>3. Better Network Organization</strong></p><ul><li>Devices can belong to the same VLAN even when they are connected to different switches or located in different buildings.</li><li>VLANs also provide a foundation for controlling communication between departments using routers, Layer 3 switches, and security policies.</li></ul><h3>3. Our Lab Topology</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eN2y0byZBgNJwBHP8qMF0g.png" /></figure><p>For this lab, I used:</p><ul><li>3 Cisco 2960 switches</li><li>6 PCs</li><li>3 VLANs</li><li>2 connections between the switches</li></ul><p>Each switch represents a different building.</p><p><strong>Building 1 — SW1</strong></p><ul><li>PC1 → IT (VLAN 10)</li><li>PC2 → HR (VLAN 20)</li></ul><p><strong>Building 2 — SW2</strong></p><ul><li>PC3 → HR (VLAN 20)</li><li>PC4 → Guest (VLAN 30)</li></ul><p><strong>Building 3 — SW3</strong></p><ul><li>PC5 → IT (VLAN 10)</li><li>PC6 → Guest (VLAN 30)</li></ul><p>Notice something interesting.</p><p>The IT devices are in Buildings 1 &amp; 3, but both belong to VLAN 10.</p><p>Similarly, HR devices are in Buildings 1 and 2, while Guest devices are in Buildings 2 and 3.</p><p><strong>Devices do not need to be connected to the same switch to belong to the same VLAN.</strong></p><h3>4. IP Addressing</h3><p>Each VLAN uses its own IP subnet.</p><p><strong>VLAN 10 — IT</strong></p><p>Network: 192.168.10.0/24</p><ul><li>PC1: 192.168.10.10</li><li>PC5: 192.168.10.20</li></ul><p><strong>VLAN 20 — HR</strong></p><p>Network: 192.168.20.0/24</p><ul><li>PC2: 192.168.20.10</li><li>PC3: 192.168.20.20</li></ul><p><strong>VLAN 30 — Guest</strong></p><p>Network: 192.168.30.0/24</p><ul><li>PC4: 192.168.30.10</li><li>PC6: 192.168.30.20</li></ul><p>All PCs use the subnet mask 255.255.255.0.</p><p>We aren’t configuring a default gateway yet because this lab only focuses on communication <strong>within the same VLAN</strong>.</p><p>A VLAN and an IP subnet are different concepts, but assigning one subnet per VLAN is common practice.</p><h3>5. Creating VLANs</h3><p>First, we need to create VLANs on our switches.</p><p>Use the following commands on <strong>SW1, SW2, and SW3</strong>.</p><pre>enable<br>configure terminal</pre><pre>vlan 10<br> name IT<br>exit</pre><pre>vlan 20<br> name HR<br>exit</pre><pre>vlan 30<br> name GUEST<br>exit</pre><pre>end<br>write memory</pre><p>Let’s understand these commands.</p><ul><li>vlan 10 creates VLAN 10.</li><li>name IT gives the VLAN a descriptive name.</li><li>exit returns to global configuration mode.</li><li>write memory saves the configuration.</li></ul><p>To verify that the VLANs exist:</p><pre>show vlan brief</pre><p>This command displays the VLAN IDs, names, and associated access ports.</p><h3>6. Assigning Switch Ports to VLANs</h3><p>Creating a VLAN is not enough.</p><p>We also need to tell the switch which ports belong to which VLAN.</p><p>A port connected to a PC is usually configured as an <strong>access port</strong>.</p><p>An access port carries traffic for one VLAN, and a normal PC typically sends and receives untagged Ethernet frames.</p><h3>Building 1 — SW1</h3><p>PC1 is connected to Fa0/1, and PC2 is connected to Fa0/2.</p><pre>configure terminal</pre><pre>interface FastEthernet0/1<br> switchport mode access<br> switchport access vlan 10<br>exit</pre><pre>interface FastEthernet0/2<br> switchport mode access<br> switchport access vlan 20<br>exit</pre><pre>end<br>write memory</pre><p>Here:</p><ul><li>Fa0/1 belongs to VLAN 10 (IT).</li><li>Fa0/2 belongs to VLAN 20 (HR).</li></ul><p>Although both PCs connect to the same switch, their traffic belongs to separate VLANs.</p><h3>Building 2 — SW2</h3><pre>configure terminal</pre><pre>SW2(config)#interface FastEthernet0/1 <br>SW2(config-if)# switchport mode access <br>SW2(config-if)# switchport access vlan 20 <br>SW2(config-if)#exit <br>SW2(config)#interface FastEthernet0/2 <br>SW2(config-if)# switchport mode access <br>SW2(config-if)# switchport access vlan 30 <br>SW2(config-if)#exit <br>SW2(config)#end <br>SW2#write memory</pre><h3>Building 3 — SW3</h3><pre>configure terminal</pre><pre>interface FastEthernet0/1<br> switchport mode access<br> switchport access vlan 10<br>exit</pre><pre>interface FastEthernet0/2<br> switchport mode access<br> switchport access vlan 30<br>exit</pre><pre>end<br>write memory</pre><p>Now every PC belongs to its assigned VLAN.</p><p>But we have another problem.</p><p><strong>How can PC1 in Building 1 communicate with PC5 in Building 3 if they’re connected to different switches?</strong></p><p>That’s where trunk ports come in.</p><h3>7. What Is a Trunk Port?</h3><p>An access port normally carries one VLAN.</p><p>A <strong>trunk port</strong> can carry traffic for multiple VLANs over a single physical connection.</p><p>For example, the connection between SW1 and SW2 can carry traffic for VLAN 10, VLAN 20, and VLAN 30.</p><p>Cisco switches commonly use <strong>IEEE 802.1Q (Dot1Q)</strong> VLAN tagging.</p><p>When traffic crosses a trunk, the switch normally adds a VLAN tag to the Ethernet frame.</p><p>This tells the receiving switch which VLAN the frame belongs to.</p><p>For example:</p><ul><li>Traffic tagged VLAN 10 belongs to IT.</li><li>Traffic tagged VLAN 20 belongs to HR.</li><li>Traffic tagged VLAN 30 belongs to Guest.</li></ul><p>The receiving switch uses the tag to keep traffic in the correct VLAN.</p><p><em>Note: Native VLAN traffic is normally untagged, but we’ll cover native VLANs in a separate lesson.</em></p><h3>8. Configuring Trunk Ports</h3><p>Our switches are connected like this:</p><p><strong>SW1 ↔ SW2 ↔ SW3</strong></p><p>We need to configure the interfaces connecting these switches as trunk ports.</p><h3>SW1</h3><p>The connection to SW2 uses Gi0/1.</p><pre>SW1# configure terminal</pre><pre>SW1(config)#interface GigabitEthernet0/1 <br>SW1(config-if)# switchport mode trunk <br>SW1(config-if)# switchport trunk allowed vlan 10,20,30 <br>SW1(config-if)#exit <br>SW1(config)#end <br>SW1#write memory</pre><h3>SW2</h3><p>SW2 has two connections:</p><ul><li>Gi0/1 connects to SW1.</li><li>Gi0/2 connects to SW3.</li></ul><pre>configure terminal</pre><pre>interface range GigabitEthernet0/1 - 2<br> switchport mode trunk<br> switchport trunk allowed vlan 10,20,30<br>exit</pre><pre>end<br>write memory</pre><h3>SW3</h3><p>SW3 connects to SW2 through Gi0/2.</p><pre>configure terminal</pre><pre>interface GigabitEthernet0/2<br> switchport mode trunk<br> switchport trunk allowed vlan 10,20,30<br>exit</pre><pre>end<br>write memory</pre><p><strong>What do these commands do?</strong></p><ul><li>switchport mode trunk makes the interface a trunk.</li><li>switchport trunk allowed vlan 10,20,30 permits those three VLANs across the link.</li></ul><p>To verify trunk configuration:</p><pre>show interfaces trunk</pre><p>Now the switches can carry traffic for the same VLAN across multiple buildings.</p><h3>9. Testing VLAN Communication</h3><p>Let’s see what happens when we test connectivity.</p><h3>Test 1: Same VLAN, Different Buildings</h3><p>From PC1 (192.168.10.10), ping PC5 (192.168.10.20).</p><pre>ping 192.168.10.20</pre><p><strong>Result: Success</strong></p><p>Both PCs belong to VLAN 10, even though they are connected to different switches.</p><p>The same applies to:</p><ul><li>PC2 ↔ PC3 (VLAN 20)</li><li>PC4 ↔ PC6 (VLAN 30)</li></ul><p>Test 2: Different VLANs</p><p>Now try pinging PC3 (192.168.20.20) from PC1 (192.168.10.10).</p><pre>ping 192.168.20.20</pre><p><strong>Result: Destination host unreachable</strong></p><p>Why?</p><p>Because PC1 belongs to VLAN 10, while PC3 belongs to VLAN 20.</p><p>They also use different IP subnets, and our topology has no router or Layer 3 gateway to connect them.</p><p>A Layer 2 switch cannot route traffic between different VLANs.</p><p>This behavior is expected.</p><p><strong>Important:</strong> Successful pings between devices in the same IP subnet do not, by themselves, prove that VLANs are configured correctly. Always verify the VLAN membership and trunk ports using the switch commands.</p><h3>10. What Happens When PC1 Sends a Packet to PC5?</h3><p>Let’s follow the traffic step by step.</p><p>PC1 and PC5 both belong to VLAN 10.</p><p><strong>Step 1:</strong> PC1 sends an Ethernet frame to SW1.</p><p><strong>Step 2:</strong> SW1 receives the frame on an access port assigned to VLAN 10.</p><p><strong>Step 3:</strong> If the destination MAC is already learned, SW1 forwards the frame toward SW2 through its trunk port.</p><p><strong>Step 4:</strong> The frame crosses the trunk with a VLAN 10 tag.</p><p><strong>Step 5:</strong> SW2 recognizes VLAN 10 and forwards the frame toward SW3.</p><p><strong>Step 6:</strong> SW3 receives the frame, identifies VLAN 10, and forwards it to PC5 through its VLAN 10 access port.</p><p>When the frame leaves the access port, it is sent without the VLAN tag.</p><p>If the destination MAC is unknown, the switch initially floods the frame within the VLAN while learning where devices are connected.</p><p>This is how devices in different buildings can communicate as part of the same VLAN.</p><h3>11. Useful Cisco Commands</h3><p>These commands are helpful when checking or troubleshooting VLAN configurations.</p><p><strong>Check existing VLANs:</strong></p><pre>show vlan brief</pre><p><strong>Check trunk ports:</strong></p><pre>show interfaces trunk</pre><p><strong>Check the MAC address table:</strong></p><pre>show mac address-table</pre><p><strong>Check a port’s configuration:</strong></p><pre>show interfaces FastEthernet0/1 switchport</pre><p><strong>Check the running configuration:</strong></p><pre>show running-config</pre><h3>12. Can Different VLANs Communicate?</h3><p>Yes, but not with Layer 2 switching alone.</p><p>To allow devices in different VLANs to communicate, we need <strong>inter-VLAN routing</strong>.</p><p>This can be configured using:</p><ul><li>A router, with a technique called <em>Router-on-a-Stick</em>.</li><li>A Layer 3 switch, using <em>Switch Virtual Interfaces (SVIs)</em>.</li></ul><p>We haven’t configured inter-VLAN routing in this lab because the goal is to understand how VLANs separate networks.</p><p>We’ll explore inter-VLAN routing in another lab.</p><h3>Conclusion</h3><p>Through this lab, we learned that:</p><ul><li>VLANs divide a physical network into separate logical networks.</li><li>Access ports connect end devices to a VLAN.</li><li>Trunk ports carry multiple VLANs between switches.</li><li>Devices in the same VLAN can communicate across different switches.</li><li>Devices in different VLANs need Layer 3 routing to communicate.</li></ul><p>The main takeaway is simple:</p><p><strong>VLANs let us organize and separate devices logically, regardless of which physical switch they connect to.</strong></p><p><strong>Next Lab:</strong> <a href="https://medium.com/@noshutnetwork/router-on-a-stick-roas-a-beginners-guide-to-inter-vlan-routing-64cda19ff776">Inter-VLAN Routing — Allowing Different VLANs to Communicate.</a></p><p>💡 <strong>Want to try it yourself?</strong> Every topology diagram and Cisco CLI simulation in this article was built right in the browser using <a href="https://pingmynetwork.com/"><strong>PingMyNetwork</strong></a>. Whether you’re studying for your CCNA or just diving into networking fundamentals, head over to <a href="https://pingmynetwork.com/"><strong>PingMyNetwork.com</strong></a> to explore, build, and test your own interactive labs!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e03635f9e749" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GLBP Lab: Load Balancing with Four Cisco Routers]]></title>
            <link>https://medium.com/@noshutnetwork/glbp-lab-load-balancing-with-four-cisco-routers-8d5925642263?source=rss-0dc991c87c42------2</link>
            <guid isPermaLink="false">https://medium.com/p/8d5925642263</guid>
            <category><![CDATA[glbp]]></category>
            <category><![CDATA[fhrp]]></category>
            <category><![CDATA[ccnp]]></category>
            <category><![CDATA[no-shut-labs]]></category>
            <category><![CDATA[networking]]></category>
            <dc:creator><![CDATA[no Shut Network]]></dc:creator>
            <pubDate>Mon, 26 Oct 2026 17:01:31 GMT</pubDate>
            <atom:updated>2026-10-26T17:01:31.183Z</atom:updated>
            <content:encoded><![CDATA[<p>In this lab, I configured <strong>Gateway Load Balancing Protocol (GLBP)</strong> using 4 Cisco routers to understand how multiple routers can share network traffic while providing gateway redundancy.</p><p>Unlike HSRP, where one router normally forwards traffic, GLBP allows multiple routers to forward traffic using a single virtual gateway IP.</p><h3>1. Network Topology</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C4Ul4yBh6AI9FKA0NA0K3A.png" /></figure><p><strong>Devices used:</strong></p><ul><li>4 Cisco routers (R1, R2, R3, R4)</li><li>1 ISP router</li><li>1 Cisco 2960 switch</li><li>4 PCs</li></ul><p>All 4 routers are connected to the same LAN switch, with separate connections to the ISP router.</p><h3>IP Addressing</h3><p><strong>LAN Network:</strong> 10.1.1.0/24</p><p><strong>GLBP Virtual Gateway:</strong> 10.1.1.1</p><p><strong>GLBP Group:</strong> 10</p><p><strong>VLAN:</strong> 10</p><p><strong>Load Balancing:</strong> Round-robin</p><p><strong>Router Addresses:</strong></p><ul><li><strong>R1:</strong> LAN 10.1.1.2 | WAN 172.16.0.1/30 | Priority 140</li><li><strong>R2:</strong> LAN 10.1.1.3 | WAN 172.16.0.5/30 | Priority 130</li><li><strong>R3:</strong> LAN 10.1.1.4 | WAN 172.16.0.9/30 | Priority 120</li><li><strong>R4:</strong> LAN 10.1.1.5 | WAN 172.16.0.13/30 | Priority 110</li></ul><h3>2. GLBP Router Configuration</h3><p>All four routers use the same GLBP virtual IP address but have different priorities.</p><p>The router with the highest priority becomes the <strong>Active Virtual Gateway (AVG)</strong>, while the second-highest becomes the standby gateway.</p><h3>R1 Priority 140</h3><pre>enable<br>configure terminal<br>hostname R1</pre><pre>interface GigabitEthernet0/0<br> ip address 10.1.1.2 255.255.255.0<br> glbp 10 ip 10.1.1.1<br> glbp 10 priority 140<br> glbp 10 preempt<br> glbp 10 load-balancing round-robin<br> glbp 10 authentication md5 key-string $123#<br> no shutdown<br>exit</pre><pre>interface GigabitEthernet0/1<br> ip address 172.16.0.1 255.255.255.252<br> no shutdown<br>exit</pre><pre>ip route 0.0.0.0 0.0.0.0 172.16.0.2</pre><pre>end<br>write memory</pre><h3>R2 Priority 130</h3><pre>enable<br>configure terminal<br>hostname R2</pre><pre>interface GigabitEthernet0/0<br> ip address 10.1.1.3 255.255.255.0<br> glbp 10 ip 10.1.1.1<br> glbp 10 priority 130<br> glbp 10 preempt<br> glbp 10 load-balancing round-robin<br> glbp 10 authentication md5 key-string $123#<br> no shutdown<br>exit</pre><pre>interface GigabitEthernet0/1<br> ip address 172.16.0.5 255.255.255.252<br> no shutdown<br>exit</pre><pre>ip route 0.0.0.0 0.0.0.0 172.16.0.6</pre><pre>end<br>write memory</pre><h3>R3 Priority 120</h3><pre>enable<br>configure terminal<br>hostname R3</pre><pre>interface GigabitEthernet0/0<br> ip address 10.1.1.4 255.255.255.0<br> glbp 10 ip 10.1.1.1<br> glbp 10 priority 120<br> glbp 10 preempt<br> glbp 10 load-balancing round-robin<br> glbp 10 authentication md5 key-string $123#<br> no shutdown<br>exit</pre><pre>interface GigabitEthernet0/1<br> ip address 172.16.0.9 255.255.255.252<br> no shutdown<br>exit</pre><pre>ip route 0.0.0.0 0.0.0.0 172.16.0.10</pre><pre>end<br>write memory</pre><h3>R4 Priority 110</h3><pre>enable<br>configure terminal<br>hostname R4</pre><pre>interface GigabitEthernet0/0<br> ip address 10.1.1.5 255.255.255.0<br> glbp 10 ip 10.1.1.1<br> glbp 10 priority 110<br> glbp 10 preempt<br> glbp 10 load-balancing round-robin<br> glbp 10 authentication md5 key-string $123#<br> no shutdown<br>exit</pre><pre>interface GigabitEthernet0/1<br> ip address 172.16.0.13 255.255.255.252<br> no shutdown<br>exit</pre><pre>ip route 0.0.0.0 0.0.0.0 172.16.0.14</pre><pre>end<br>write memory</pre><h3>GLBP Commands Explained</h3><ul><li>glbp 10 ip 10.1.1.1 — Configures the virtual gateway IP address.</li><li>glbp 10 priority — Sets the priority used for AVG election.</li><li>glbp 10 preempt — Allows a higher-priority router to take over as AVG.</li><li>glbp 10 load-balancing round-robin — Distributes clients among the active forwarders.</li><li>glbp 10 authentication md5 — Enables GLBP authentication between routers.</li></ul><p><strong><em>Round-robin</em></strong><em> is the default GLBP load-balancing method. The authentication key used here is only for lab purposes.</em></p><h3>3. ISP Configuration</h3><p>The ISP router has four connections, one to each GLBP router.</p><p>I also configured a loopback interface (203.0.113.10) to simulate an external destination for testing.</p><pre>enable<br>configure terminal<br>hostname ISP</pre><pre>interface GigabitEthernet0/0<br> ip address 172.16.0.2 255.255.255.252<br> no shutdown<br>exit</pre><pre>interface GigabitEthernet0/1<br> ip address 172.16.0.6 255.255.255.252<br> no shutdown<br>exit</pre><pre>interface GigabitEthernet0/2<br> ip address 172.16.0.10 255.255.255.252<br> no shutdown<br>exit</pre><pre>interface GigabitEthernet0/3<br> ip address 172.16.0.14 255.255.255.252<br> no shutdown<br>exit</pre><pre>interface Loopback0<br> ip address 203.0.113.10 255.255.255.255<br>exit</pre><pre>ip route 10.1.1.0 255.255.255.0 172.16.0.1<br>ip route 10.1.1.0 255.255.255.0 172.16.0.5<br>ip route 10.1.1.0 255.255.255.0 172.16.0.9<br>ip route 10.1.1.0 255.255.255.0 172.16.0.13</pre><pre>end<br>write memory</pre><p>The static routes allow the ISP to send return traffic toward the LAN through the four routers.</p><h3>4. Switch Configuration</h3><p>I created VLAN 10 and assigned all connected router and PC ports to it.</p><pre>enable<br>configure terminal<br>hostname SW1</pre><pre>vlan 10<br> name GLBP-LAN<br>exit</pre><pre>interface range FastEthernet0/1 - 6<br> switchport mode access<br> switchport access vlan 10<br>exit</pre><pre>interface range GigabitEthernet0/1 - 2<br> switchport mode access<br> switchport access vlan 10<br>exit</pre><pre>end<br>write memory</pre><p><strong>Switch Connections:</strong></p><ul><li>Gi0/1 → R1</li><li>Gi0/2 → R2</li><li>Fa0/3 → R3</li><li>Fa0/4 → R4</li><li>Fa0/1 → PC1</li><li>Fa0/2 → PC2</li><li>Fa0/5 → PC3</li><li>Fa0/6 → PC4</li></ul><h3>5. PC Configuration</h3><p>All PCs belong to the same LAN and use the GLBP virtual IP (10.1.1.1) as their default gateway.</p><p><strong>PC1</strong></p><ul><li>IP: 10.1.1.101</li><li>Subnet Mask: 255.255.255.0</li><li>Gateway: 10.1.1.1</li></ul><p><strong>PC2</strong></p><ul><li>IP: 10.1.1.102</li><li>Subnet Mask: 255.255.255.0</li><li>Gateway: 10.1.1.1</li></ul><p><strong>PC3</strong></p><ul><li>IP: 10.1.1.103</li><li>Subnet Mask: 255.255.255.0</li><li>Gateway: 10.1.1.1</li></ul><p><strong>PC4</strong></p><ul><li>IP: 10.1.1.104</li><li>Subnet Mask: 255.255.255.0</li><li>Gateway: 10.1.1.1</li></ul><h3>6. GLBP Verification</h3><p>After configuring the routers, I checked their GLBP states using:</p><pre>show glbp brief</pre><p><strong>Results:</strong></p><ul><li><strong>R1:</strong> Active Virtual Gateway (AVG) and Active Virtual Forwarder 1</li><li><strong>R2:</strong> Standby Virtual Gateway and Active Virtual Forwarder 2</li><li><strong>R3:</strong> Listen state and Active Virtual Forwarder 3</li><li><strong>R4:</strong> Listen state and Active Virtual Forwarder 4</li></ul><p>Although R3 and R4 are in the Listen state for the gateway election, they still forward traffic as active virtual forwarders.</p><p>This confirms that <strong>all four routers are participating in traffic forwarding</strong>.</p><h3>7. Testing Load Balancing</h3><p>To verify load balancing, I checked the ARP table on each PC:</p><pre>arp -a</pre><p>All four PCs use the same default gateway IP, but each received a different GLBP virtual MAC address.</p><p><strong>Observed Results:</strong></p><ul><li><strong>PC1 → R4:</strong> 0007.b400.0a04</li><li><strong>PC2 → R3:</strong> 0007.b400.0a03</li><li><strong>PC3 → R2:</strong> 0007.b400.0a02</li><li><strong>PC4 → R1:</strong> 0007.b400.0a01</li></ul><p>This shows how GLBP distributes clients across multiple routers using different virtual MAC addresses.</p><h3>Connectivity Test</h3><p>I tested connectivity to the ISP loopback address from each PC:</p><pre>ping 203.0.113.10</pre><p>Then I used traceroute to identify which router each PC was using:</p><pre>tracert 203.0.113.10</pre><p>The results showed that different PCs were using different first-hop routers to reach the same destination.</p><h3>8. Useful Verification Commands</h3><p><strong>On Cisco Routers:</strong></p><pre>show glbp<br>show glbp brief<br>show ip interface brief<br>show ip route</pre><p><strong>On PCs:</strong></p><pre>arp -a<br>ping 10.1.1.1<br>ping 203.0.113.10<br>tracert 203.0.113.10</pre><h3>9. Conclusion</h3><p>This lab helped me understand how GLBP provides <strong>load balancing and gateway redundancy</strong> using a single virtual IP address.</p><p>R1 became the Active Virtual Gateway, R2 became the Standby, and all four routers successfully participated in forwarding traffic.</p><p>The ARP tables confirmed that different PCs were assigned different virtual MAC addresses, demonstrating GLBP’s load-balancing behavior.</p><p><strong>Next Lab:</strong> GLBP failover, interface tracking, and weighting.</p><p>💡 <strong>Want to try it yourself?</strong> Every topology diagram and Cisco CLI simulation in this article was built right in the browser using <a href="https://pingmynetwork.com/"><strong>PingMyNetwork</strong></a>. Whether you’re studying for your CCNA or just diving into networking fundamentals, head over to <a href="https://pingmynetwork.com/"><strong>PingMyNetwork.com</strong></a> to explore, build, and test your own interactive labs!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8d5925642263" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding NAT & PAT (NAT Overload): How Entire Networks Share a Single Public IP Address]]></title>
            <link>https://medium.com/@noshutnetwork/understanding-nat-pat-nat-overload-how-entire-networks-share-a-single-public-ip-address-c43a356e4a2c?source=rss-0dc991c87c42------2</link>
            <guid isPermaLink="false">https://medium.com/p/c43a356e4a2c</guid>
            <category><![CDATA[nat]]></category>
            <category><![CDATA[pat]]></category>
            <category><![CDATA[ccna]]></category>
            <category><![CDATA[ip]]></category>
            <category><![CDATA[no-shut-network]]></category>
            <dc:creator><![CDATA[no Shut Network]]></dc:creator>
            <pubDate>Thu, 22 Oct 2026 18:22:51 GMT</pubDate>
            <atom:updated>2026-10-22T18:22:51.193Z</atom:updated>
            <content:encoded><![CDATA[<p>Have you ever wondered why almost every home and office network in the world uses the exact same IP address range — like 192.168.1.x—without breaking the internet?</p><p>If millions of computers have the IP address 192.168.1.11, how does a web server on the internet know which computer to send data back to? The secret behind this everyday networking magic is <strong>NAT</strong> and its powerhouse sibling, <strong>PAT</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8ztY3z1hYbPOJUiGaTiS2A.png" /></figure><h3>A Simple Brief on NAT: What Is It and Why Do We Use It?</h3><p>When the internet was created, engineers designed <strong>IPv4</strong>, which provided about 4.3 billion IP addresses. That sounded like plenty at the time — until smartphones, laptops, smart TVs, and IoT devices exploded into the tens of billions.</p><p>To stop the world from running out of IPv4 addresses, engineers split IP addresses into two categories:</p><ol><li><strong>Private IP Addresses:</strong> Used <em>inside</em> your home or office (like 192.168.1.0/24 in our topology). They are free to use, but <strong>they are strictly blocked from traveling across the public internet</strong>.</li><li><strong>Public IP Addresses:</strong> Globally unique addresses (like 1.2.3.1 in our lab) that are allowed to travel across the internet.</li></ol><p><strong>What is NAT?</strong> <strong>NAT (Network Address Translation)</strong> runs on your border router. Its job is to act like a receptionist at a company’s front desk: when a computer with a <strong>Private IP</strong> sends a packet out to the internet, the router swaps the private IP for a <strong>Public IP</strong>. When the reply comes back, the router swaps the public IP back to the private IP and hands it to the right computer.</p><h3>What is PAT (NAT Overload) and What is its Purpose?</h3><p>Basic NAT translates one private IP to one public IP (1-to-1). But what if you have 50 computers in an office — or 3 PCs like in our topology — and your Internet Service Provider (ISP) only gave you <strong>one single Public IP address</strong> (1.2.3.1)?</p><p>That is where <strong>PAT (Port Address Translation)</strong> — also known in Cisco terms as <strong>NAT Overload</strong> — saves the day.</p><ul><li><strong>What it is:</strong> PAT allows dozens, hundreds, or even thousands of internal devices to share <strong>one single public IP address</strong> at the exact same time.</li><li><strong>How it works:</strong> Think of your router’s Public IP (1.2.3.1) as an office building&#39;s main phone number, and <strong>Port Numbers</strong> as individual desk extensions. When <strong>PC1</strong>, <strong>PC2</strong>, and <strong>PC3</strong> all ping the server at the same time, Router <strong>R1</strong> changes all three of their IP addresses to 1.2.3.1, but attaches a unique <strong>tracking number (Port/ID)</strong> to each conversation:</li><li><strong>PC1 (</strong>192.168.1.11<strong>)</strong> becomes $\rightarrow$ 1.2.3.1:1035</li><li><strong>PC2 (</strong>192.168.1.12<strong>)</strong> becomes $\rightarrow$ 1.2.3.1:1036</li><li><strong>PC3 (</strong>192.168.1.13<strong>)</strong> becomes $\rightarrow$ 1.2.3.1:1037</li></ul><p>When the server (1.1.1.100) replies to 1.2.3.1:1036, Router <strong>R1</strong> checks its translation table, sees that :1036 belongs to <strong>PC2</strong>, and forwards the packet straight to 192.168.1.12!</p><h3>Breaking Down Our Lab Topology</h3><p>Let’s look at what is happening inside the lab topology above:</p><ul><li><strong>The Inside Private Network (</strong>192.168.1.0/24<strong>):</strong> On the left, <strong>PC1</strong> (.11), <strong>PC2</strong> (.12), and <strong>PC3</strong> (.13) connect through switch <strong>SW1</strong> to our border router <strong>R1</strong> (192.168.1.1).</li><li><strong>The Public Internet Link (</strong>1.2.3.0/24<strong>):</strong> Connects our border router <strong>R1</strong> (1.2.3.1) to the external router <strong>R2</strong> (1.2.3.2).</li><li><strong>The External Server Network (</strong>1.1.1.0/24<strong>):</strong> On the far right sits <strong>SRV1</strong> (1.1.1.100), representing a public server on the internet.</li></ul><h3>Why Couldn’t the PCs Ping SRV1 at First?</h3><p>In this lab, RIP routing is already configured, yet before we turn on PAT, pinging 1.1.1.100 from <strong>PC1</strong> fails with Request timed out. Why?</p><p>Because just like real-world Internet Service Providers, the internet link (G0/3/0) has an Access Control List (access-list 100) that blocks private IP addresses (10.x.x.x, 172.16.x.x, and 192.168.x.x) from traveling across the public link. Without PAT translating 192.168.1.11 into the public address 1.2.3.1, the packets get dropped at the border!</p><h3>How It Works Under the Hood (Cisco CLI)</h3><p>Configuring PAT (NAT Overload) on a Cisco router takes just three simple steps on <strong>R1</strong>:</p><p><strong>Step 1: Define the “Inside” and “Outside” Interfaces</strong></p><pre>! Mark the private LAN port as Inside<br>interface GigabitEthernet0/0<br> ip nat inside</pre><pre>! Mark the public Internet port as Outside<br>interface GigabitEthernet0/3/0<br> ip nat outside</pre><p><strong>Step 2: Create an Access List to Identify Which Private IPs to Translate</strong></p><pre>access-list 1 permit 192.168.1.0 0.0.0.255</pre><p><strong>Step 3: Turn on PAT Using the </strong>overload<strong> Keyword</strong></p><p><em>(Note: Even though the lab prompt mentions </em>S0/3/0<em>, the actual cable connecting R1 to R2 in this topology is on </em>GigabitEthernet0/3/0<em>!)</em></p><pre>ip nat inside source list 1 interface GigabitEthernet0/3/0 overload</pre><h3>Checking the Magic in Action</h3><p>Once PAT is configured and all three PCs ping 1.1.1.100, running show ip nat translations on <strong>R1</strong> reveals the live PAT table:</p><pre>R1# show ip nat translations<br>Pro  Inside global     Inside local       Outside local      Outside global<br>icmp 1.2.3.1:1035      192.168.1.11:1035  1.1.1.100:1035     1.1.1.100:1035<br>icmp 1.2.3.1:1036      192.168.1.12:1036  1.1.1.100:1036     1.1.1.100:1036<br>icmp 1.2.3.1:1037      192.168.1.13:1037  1.1.1.100:1037     1.1.1.100:1037</pre><h3>Real-World Uses: Where Do We See PAT Today?</h3><ul><li><strong>Every Home Wi-Fi Router:</strong> Right now, your phone, laptop, and smart TV all have private 192.168.x.x IP addresses. Your home router uses PAT to let your entire family browse the web simultaneously using the single public IP address you pay your ISP for.</li><li><strong>Saving IPv4 From Extinction:</strong> Without PAT, the world would have completely run out of IPv4 addresses decades ago. PAT allowed the internet to scale to billions of devices while the world slowly transitions to IPv6.</li><li><strong>A First Layer of Privacy:</strong> Because PAT hides your internal 192.168.1.x network behind a single public IP (1.2.3.1), outsiders on the internet cannot see how many devices are inside your network or directly reach your computers unless you explicitly open a port.</li></ul><blockquote><em>💡 </em><strong><em>Want to try it yourself?</em></strong><em> Every topology diagram and Cisco CLI simulation in this article was built right in the browser using </em><a href="https://pingmynetwork.com/"><strong><em>PingMyNetwork</em></strong></a><em>. Whether you’re studying for your CCNA or just diving into networking fundamentals, head over to </em><a href="https://pingmynetwork.com/"><strong><em>PingMyNetwork.com</em></strong></a><em> to explore, build, and test your own interactive labs!</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c43a356e4a2c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Redundant Three-Tier Campus Network with Cisco]]></title>
            <link>https://medium.com/@noshutnetwork/building-a-redundant-three-tier-campus-network-with-cisco-82922be4e954?source=rss-0dc991c87c42------2</link>
            <guid isPermaLink="false">https://medium.com/p/82922be4e954</guid>
            <category><![CDATA[ccna]]></category>
            <category><![CDATA[redundancy]]></category>
            <category><![CDATA[3-tier-architecture]]></category>
            <category><![CDATA[hsrp]]></category>
            <category><![CDATA[etherchannel]]></category>
            <dc:creator><![CDATA[no Shut Network]]></dc:creator>
            <pubDate>Thu, 22 Oct 2026 17:43:07 GMT</pubDate>
            <atom:updated>2026-10-22T17:43:07.411Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Hands-on configuration guide: VLANs, dual-homed access switches, EtherChannel (LACP), Rapid PVST+, HSRP, OSPF, DHCP, DNS, and HTTP.</em></p><p>Building a campus network is easier to understand when the concepts fit into one connected project. In this lab, I designed a classic three-tier topology where <strong>access switches connect users</strong>, <strong>Layer 3 distribution switches perform inter-VLAN routing</strong>, and <strong>core routers connect the campus to a shared server network</strong>.</p><p>The goal was more than basic reachability. I wanted redundant uplinks, a standby first-hop gateway, a bundled inter-switch connection, and dynamic routing capable of using alternative paths when a link fails.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kAjLVDzpw3eekBOobnMvoA.png" /><figcaption><em>The topology has 14 devices &amp; 20 Ethernet links, including 2 parallel DSW-to-DSW EtherChannel members.</em></figcaption></figure><h3>1. Network overview</h3><ul><li><strong>Access</strong> — <strong>Devices:</strong> AC1, AC2 — Cisco 2960 · <strong>Primary functions:</strong> User VLAN assignment; dual uplinks; PortFast and BPDU Guard</li><li><strong>Distribution</strong> — <strong>Devices:</strong> DSW1, DSW2 — Cisco 3560 · <strong>Primary functions:</strong> Inter-VLAN routing; HSRP; LACP; Rapid PVST+; OSPF</li><li><strong>Core</strong> — <strong>Devices:</strong> CORE-R1, CORE-R2 — ISR4331 · <strong>Primary functions:</strong> Redundant routed backbone; OSPF; server-farm HSRP</li><li><strong>Server access</strong> — <strong>Devices:</strong> SW3 — Cisco 2960 · <strong>Primary functions:</strong> VLAN 100 shared server subnet</li><li><strong>End systems</strong> — <strong>Devices:</strong> PC1–PC4; DHCP, DNS, and HTTP servers · <strong>Primary functions:</strong> Client addressing, name resolution, and web service</li></ul><p>The server switch is attached directly to both core routers. This is a <strong>deliberate lab simplification</strong>, not a fully redundant production data-center design. Likewise, there is no internet or ISP connection in this exercise.</p><h3>VLAN &amp; gateway plan</h3><ul><li><strong>VLAN 10:</strong> Staff · <strong>Subnet:</strong> 10.1.10.0/24 · <strong>Virtual/default gateway:</strong> 10.1.10.1 · <strong>Primary HSRP device:</strong> DSW1</li><li><strong>VLAN 20:</strong> Students · <strong>Subnet:</strong> 10.1.20.0/24 · <strong>Virtual/default gateway:</strong> 10.1.20.1 · <strong>Primary HSRP device:</strong> DSW2</li><li><strong>VLAN 99:</strong> Management · <strong>Subnet:</strong> 10.1.99.0/24 · <strong>Virtual/default gateway:</strong> 10.1.99.1 · <strong>Primary HSRP device:</strong> DSW1</li><li><strong>VLAN 100:</strong> Server farm · <strong>Subnet:</strong> 10.1.100.0/24 · <strong>Virtual/default gateway:</strong> 10.1.100.1 · <strong>Primary HSRP device:</strong> CORE-R1</li></ul><h3>Routed point-to-point links</h3><ul><li><strong>CORE-R1 Gi0/0 ↔ CORE-R2 Gi0/0</strong> — <strong>Address on first device:</strong> 10.0.0.1/30 · <strong>Address on second device:</strong> 10.0.0.2/30</li><li><strong>DSW1 Gi0/1 ↔ CORE-R1 Gi0/1</strong> — <strong>Address on first device:</strong> 10.0.1.1/30 · <strong>Address on second device:</strong> 10.0.1.2/30</li><li><strong>CORE-R2 Gi0/1 ↔ DSW2 Gi0/1</strong> — <strong>Address on first device:</strong> 10.0.2.1/30 · <strong>Address on second device:</strong> 10.0.2.2/30</li><li><strong>CORE-R1 Gi0/3 ↔ DSW2 Fa0/1</strong> — <strong>Address on first device:</strong> 10.0.3.1/30 · <strong>Address on second device:</strong> 10.0.3.2/30</li><li><strong>CORE-R2 Gi0/3 ↔ DSW1 Fa0/1</strong> — <strong>Address on first device:</strong> 10.0.4.1/30 · <strong>Address on second device:</strong> 10.0.4.2/30</li></ul><p>All five /30 networks participate in <strong>OSPF process 10, area 0</strong>. The 2diagonal links are important: each distribution switch has a routed connection to <em>both</em> core routers, rather than relying on a single upstream device.</p><h3>2. Configure the access layer</h3><p>The two Cisco 2960 switches each connect one staff PC and one student PC. Access ports Fa0/1 and Fa0/2 are assigned VLANs 10 and 20 respectively. Both Gi0/1 and Gi0/2 are configured as 802.1Q trunks permitting VLANs 10, 20, and 99.</p><p>The dual-homing is crossed: <strong>AC1 Gi0/1 goes to DSW1 Gi0/2, while AC1 Gi0/2 goes to DSW2 Fa0/2</strong>. Conversely, <strong>AC2 Gi0/1 goes to DSW2 Gi0/2 and AC2 Gi0/2 goes to DSW1 Fa0/2</strong>.</p><p>Rapid PVST+ controls redundant Layer 2 paths. <strong>PortFast and BPDU Guard are enabled only on the PC-facing access ports</strong>, not on switch uplinks.</p><h3>AC1 full lab configuration</h3><pre>enable<br>configure terminal<br>hostname AC1<br>spanning-tree mode rapid-pvst<br>spanning-tree portfast edge default<br>spanning-tree extend system-id<br>!<br>vlan 10<br> name VLAN0010<br>!<br>vlan 20<br> name VLAN0020<br>!<br>vlan 99<br> name MANAGEMENT<br>!<br>interface FastEthernet0/1<br> switchport access vlan 10<br> switchport mode access<br> spanning-tree portfast edge<br> spanning-tree bpduguard enable<br> no shutdown<br>!<br>interface FastEthernet0/2<br> switchport access vlan 20<br> switchport mode access<br> spanning-tree portfast edge<br> spanning-tree bpduguard enable<br> no shutdown<br>!<br>interface GigabitEthernet0/1<br> switchport trunk allowed vlan 10,20,99<br> switchport mode trunk<br> no shutdown<br>!<br>interface GigabitEthernet0/2<br> switchport trunk allowed vlan 10,20,99<br> switchport mode trunk<br> no shutdown<br>!<br>interface Vlan99<br> ip address 10.1.99.21 255.255.255.0<br> no shutdown<br>!<br>ip default-gateway 10.1.99.1<br>!<br>end<br>write memory</pre><p>The management SVI is <strong>10.1.99.21/24</strong>, and ip default-gateway 10.1.99.1 points management traffic toward the distribution HSRP virtual IP. Because the 2960 is operating as a Layer 2 switch, its management default gateway is not an inter-VLAN routing configuration.</p><h3>AC2 full lab configuration</h3><pre>enable<br>configure terminal<br>hostname AC2<br>spanning-tree mode rapid-pvst<br>spanning-tree portfast edge default<br>spanning-tree extend system-id<br>!<br>vlan 10<br> name VLAN0010<br>!<br>vlan 20<br> name VLAN0020<br>!<br>vlan 99<br> name MANAGEMENT<br>!<br>interface FastEthernet0/1<br> switchport access vlan 10<br> switchport mode access<br> spanning-tree portfast edge<br> spanning-tree bpduguard enable<br> no shutdown<br>!<br>interface FastEthernet0/2<br> switchport access vlan 20<br> switchport mode access<br> spanning-tree portfast edge<br> spanning-tree bpduguard enable<br> no shutdown<br>!<br>interface GigabitEthernet0/1<br> switchport trunk allowed vlan 10,20,99<br> switchport mode trunk<br> no shutdown<br>!<br>interface GigabitEthernet0/2<br> switchport trunk allowed vlan 10,20,99<br> switchport mode trunk<br> no shutdown<br>!<br>interface Vlan99<br> ip address 10.1.99.22 255.255.255.0<br> no shutdown<br>!<br>ip default-gateway 10.1.99.1<br>!<br>end<br>write memory</pre><p>AC2 is functionally symmetric with AC1, but its management address is <strong>10.1.99.22/24</strong>. Both switches carry Staff, Students, and Management VLANs on each uplink.</p><h3>3. Configure the distribution layer</h3><p>The two 3560 switches are the heart of the campus LAN. They provide the Layer 3 <strong>SVIs</strong> for VLANs 10 and 20, relay DHCP requests to the server farm using ip helper-address, and exchange routing information with the core over OSPF.</p><p>They also form a two-link <strong>LACP EtherChannel</strong> between Fa0/23–Fa0/24. The resulting logical interface Port-channel1 is an 802.1Q trunk carrying VLANs 10, 20, and 99. The EtherChannel increases available bandwidth between distribution switches and avoids treating the two physical members as separate spanning-tree paths.</p><h3>DSW1 full lab configuration</h3><pre>enable<br>configure terminal<br>hostname DSW1<br>ip routing<br>spanning-tree mode rapid-pvst<br>spanning-tree portfast edge default<br>spanning-tree extend system-id<br>spanning-tree vlan 10,99 priority 24576<br>spanning-tree vlan 20 priority 28672<br>!<br>vlan 10<br> name STAFF<br>!<br>vlan 20<br> name STUDENTS<br>!<br>vlan 99<br> name MANAGEMENT<br>!<br>interface Port-channel1<br> switchport trunk allowed vlan 10,20,99<br> switchport trunk encapsulation dot1q<br> switchport mode trunk<br>!<br>interface FastEthernet0/1<br> description L3_TO_CORE_R2_GI0_3<br> no switchport<br> ip address 10.0.4.2 255.255.255.252<br> no shutdown<br>!<br>interface FastEthernet0/2<br> description TRUNK_TO_AC2_GI0_2<br> switchport trunk allowed vlan 10,20,99<br> switchport trunk encapsulation dot1q<br> switchport mode trunk<br> no shutdown<br>!<br>interface FastEthernet0/23<br> switchport trunk allowed vlan 10,20,99<br> switchport trunk encapsulation dot1q<br> switchport mode trunk<br> channel-group 1 mode active<br> no shutdown<br>!<br>interface FastEthernet0/24<br> switchport trunk allowed vlan 10,20,99<br> switchport trunk encapsulation dot1q<br> switchport mode trunk<br> channel-group 1 mode active<br> no shutdown<br>!<br>interface GigabitEthernet0/1<br> no switchport<br> ip address 10.0.1.1 255.255.255.252<br> negotiation auto<br> no shutdown<br>!<br>interface GigabitEthernet0/2<br> switchport trunk allowed vlan 10,20,99<br> switchport trunk encapsulation dot1q<br> switchport mode trunk<br> negotiation auto<br> no shutdown<br>!<br>interface Vlan10<br> description STAFF GATEWAY<br> ip address 10.1.10.2 255.255.255.0<br> ip helper-address 10.1.100.10<br> standby 10 ip 10.1.10.1<br> standby 10 priority 110<br> standby 10 preempt<br> no shutdown<br>!<br>interface Vlan20<br> description STUDENTS GATEWAY<br> ip address 10.1.20.2 255.255.255.0<br> ip helper-address 10.1.100.10<br> standby 20 ip 10.1.20.1<br> standby 20 preempt<br> no shutdown<br>!<br>interface Vlan99<br> description MANAGEMENT_GATEWAY<br> ip address 10.1.99.11 255.255.255.0<br> standby 99 ip 10.1.99.1<br> standby 99 priority 110<br> standby 99 preempt<br> no shutdown<br>!<br>router ospf 10<br> router-id 1.1.1.1<br> passive-interface default<br> no passive-interface GigabitEthernet0/1<br> network 10.0.1.0 0.0.0.3 area 0<br> network 10.1.10.0 0.0.0.255 area 0<br> network 10.1.20.0 0.0.0.255 area 0<br> network 10.1.99.0 0.0.0.255 area 0<br> no passive-interface FastEthernet0/1<br> network 10.0.4.0 0.0.0.3 area 0<br>!<br>end<br>write memory</pre><p>On DSW1, the <strong>Staff VLAN 10</strong> gateway 10.1.10.1 uses HSRP group 10 with priority 110 and preempt. DSW1 is also preferred for Management VLAN 99 (priority 110). For VLAN 20, it participates as the lower-priority HSRP peer.</p><p>The switch runs ip routing and advertises VLAN 10, VLAN 20, VLAN 99, and both directly connected /30 uplinks into OSPF. User SVIs remain OSPF-passive, so their subnets are advertised <strong>without trying to form router adjacencies with PCs</strong>.</p><h3>DSW2 — full lab configuration</h3><pre>enable<br>configure terminal<br>hostname DSW2<br>ip routing<br>spanning-tree mode rapid-pvst<br>spanning-tree portfast edge default<br>spanning-tree extend system-id<br>spanning-tree vlan 10,99 priority 28672<br>spanning-tree vlan 20 priority 24576<br>!<br>vlan 10<br> name STAFF<br>!<br>vlan 20<br> name STUDENTS<br>!<br>vlan 99<br> name MANAGEMENT<br>!<br>interface Port-channel1<br> switchport trunk allowed vlan 10,20,99<br> switchport trunk encapsulation dot1q<br> switchport mode trunk<br>!<br>interface FastEthernet0/1<br> description L3_TO_CORE_R1_GI0_3<br> no switchport<br> ip address 10.0.3.2 255.255.255.252<br> no shutdown<br>!<br>interface FastEthernet0/2<br> description TRUNK_TO_AC1_GI0_2<br> switchport trunk allowed vlan 10,20,99<br> switchport trunk encapsulation dot1q<br> switchport mode trunk<br> no shutdown<br>!<br>interface FastEthernet0/23<br> switchport trunk allowed vlan 10,20,99<br> switchport trunk encapsulation dot1q<br> switchport mode trunk<br> channel-group 1 mode active<br> no shutdown<br>!<br>interface FastEthernet0/24<br> switchport trunk allowed vlan 10,20,99<br> switchport trunk encapsulation dot1q<br> switchport mode trunk<br> channel-group 1 mode active<br> no shutdown<br>!<br>interface GigabitEthernet0/1<br> no switchport<br> ip address 10.0.2.2 255.255.255.252<br> negotiation auto<br> no shutdown<br>!<br>interface GigabitEthernet0/2<br> switchport trunk allowed vlan 10,20,99<br> switchport trunk encapsulation dot1q<br> switchport mode trunk<br> negotiation auto<br> no shutdown<br>!<br>interface Vlan10<br> description STAFF GATEWAY<br> ip address 10.1.10.3 255.255.255.0<br> ip helper-address 10.1.100.10<br> standby 10 ip 10.1.10.1<br> standby 10 preempt<br> no shutdown<br>!<br>interface Vlan20<br> description STUDENTS GATEWAY<br> ip address 10.1.20.3 255.255.255.0<br> ip helper-address 10.1.100.10<br> standby 20 ip 10.1.20.1<br> standby 20 priority 110<br> standby 20 preempt<br> no shutdown<br>!<br>interface Vlan99<br> description MANAGEMENT_GATEWAY<br> ip address 10.1.99.12 255.255.255.0<br> standby 99 ip 10.1.99.1<br> standby 99 priority 100<br> standby 99 preempt<br> no shutdown<br>!<br>router ospf 10<br> router-id 2.2.2.2<br> passive-interface default<br> no passive-interface GigabitEthernet0/1<br> network 10.0.2.0 0.0.0.3 area 0<br> network 10.1.10.0 0.0.0.255 area 0<br> network 10.1.20.0 0.0.0.255 area 0<br> network 10.1.99.0 0.0.0.255 area 0<br> no passive-interface FastEthernet0/1<br> network 10.0.3.0 0.0.0.3 area 0<br>!<br>end<br>write memory</pre><p>DSW2 is designed to be the preferred first-hop gateway for <strong>Students VLAN 20</strong> through HSRP priority 110. For VLAN 10 and VLAN 99, it is the standby device. Each distribution switch can continue serving the VLAN gateways if its peer becomes unavailable, provided the remaining Layer 2 and Layer 3 paths are operational.</p><h3>Why the STP priorities matter</h3><p>The Rapid PVST+ preferences deliberately match the usual active HSRP paths:</p><ul><li><strong>VLAN 10</strong> <strong>Preferred STP root:</strong> DSW1, priority 24576 · <strong>HSRP preferred active:</strong> DSW1</li><li><strong>VLAN 20</strong> <strong>Preferred STP root:</strong> DSW2, priority 24576 · <strong>HSRP preferred active:</strong> DSW2</li><li><strong>VLAN 99</strong> <strong>Preferred STP root:</strong> DSW1, priority 24576 · <strong>HSRP preferred active:</strong> DSW1</li></ul><p>The opposing distribution switch has a configured STP priority of 28672 for these VLANs. This alignment helps avoid unnecessarily forwarding traffic over the inter-distribution link just to reach the active default gateway. Actual STP port roles still depend on the active topology and bridge IDs.</p><h3>4. Configure the core routers</h3><p>CORE-R1 and CORE-R2 provide an OSPF-routed backbone. They have a direct /30 interconnect, one routed link to each distribution switch, and a shared server network on Gi0/2.</p><p>Unlike the user VLANs, <strong>VLAN 100 has its first-hop redundancy on the core routers</strong>, not on DSW1 or DSW2. The core routers share HSRP virtual address 10.1.100.1 on the server subnet.</p><h3>CORE-R1 — full lab configuration</h3><pre>enable<br>configure terminal<br>hostname CORE-R1<br>!<br>interface GigabitEthernet0/0<br> ip address 10.0.0.1 255.255.255.252<br> duplex auto<br> speed auto<br> media-type rj45<br> no shutdown<br>!<br>interface GigabitEthernet0/1<br> ip address 10.0.1.2 255.255.255.252<br> duplex auto<br> speed auto<br> media-type rj45<br> no shutdown<br>!<br>interface GigabitEthernet0/2<br> ip address 10.1.100.2 255.255.255.0<br> standby 100 ip 10.1.100.1<br> standby 100 priority 110<br> standby 100 preempt<br> duplex auto<br> speed auto<br> media-type rj45<br> no shutdown<br>!<br>interface GigabitEthernet0/3<br> description L3_TO_DSW2_FA0_1<br> ip address 10.0.3.1 255.255.255.252<br> no shutdown<br> duplex auto<br> speed auto<br> media-type rj45<br>!<br>router ospf 10<br> router-id 11.11.11.11<br> passive-interface default<br> no passive-interface GigabitEthernet0/0<br> no passive-interface GigabitEthernet0/1<br> network 10.0.0.0 0.0.0.3 area 0<br> network 10.0.1.0 0.0.0.3 area 0<br> network 10.1.100.0 0.0.0.255 area 0<br> no passive-interface GigabitEthernet0/3<br> network 10.0.3.0 0.0.0.3 area 0<br>!<br>end<br>write memory</pre><p>CORE-R1 has server-side interface address <strong>10.1.100.2/24</strong> and HSRP priority 110; it is the preferred active gateway for the DHCP, DNS, and HTTP servers.</p><h3>CORE-R2 full lab configuration</h3><pre>enable<br>configure terminal<br>hostname CORE-R2<br>!<br>interface GigabitEthernet0/0<br> ip address 10.0.0.2 255.255.255.252<br> duplex auto<br> speed auto<br> media-type rj45<br> no shutdown<br>!<br>interface GigabitEthernet0/1<br> ip address 10.0.2.1 255.255.255.252<br> duplex auto<br> speed auto<br> media-type rj45<br> no shutdown<br>!<br>interface GigabitEthernet0/2<br> ip address 10.1.100.3 255.255.255.0<br> standby 100 ip 10.1.100.1<br> standby 100 priority 90<br> standby 100 preempt<br> duplex auto<br> speed auto<br> media-type rj45<br> no shutdown<br>!<br>interface GigabitEthernet0/3<br> description L3_TO_DSW1_FA0_1<br> ip address 10.0.4.1 255.255.255.252<br> no shutdown<br> duplex auto<br> speed auto<br> media-type rj45<br>!<br>router ospf 10<br> router-id 22.22.22.22<br> passive-interface default<br> no passive-interface GigabitEthernet0/0<br> no passive-interface GigabitEthernet0/1<br> network 10.0.0.0 0.0.0.3 area 0<br> network 10.0.2.0 0.0.0.3 area 0<br> network 10.1.100.0 0.0.0.255 area 0<br> no passive-interface GigabitEthernet0/3<br> network 10.0.4.0 0.0.0.3 area 0<br>!<br>end<br>write memory</pre><p>CORE-R2 is the standby server gateway with address <strong>10.1.100.3/24</strong> and HSRP priority 90. Either router can route to the campus VLANs through its OSPF adjacencies if the alternative paths remain available.</p><h3>OSPF design choices</h3><p>The four Layer 3 devices use <strong>OSPF process 10, area 0</strong> with unique, manually configured router IDs: DSW1 1.1.1.1, DSW2 2.2.2.2, CORE-R1 11.11.11.11, and CORE-R2 22.22.22.22.</p><p>passive-interface default ensures that OSPF hellos are sent only on explicitly listed router-to-router interfaces. This keeps client/server-facing networks advertised without introducing unnecessary adjacency attempts. A normal working state would show each distribution switch adjacent to both core routers, and the core routers adjacent to one another.</p><h3>5. Configure the server switch</h3><p>SW3 provides Layer 2 access to the server farm. All connected ports — Gi0/1 and Gi0/2 toward the core routers and Fa0/1–Fa0/3 toward the three servers — belong to <strong>VLAN 100</strong>. These are access ports, not trunks; the routed core interfaces attach directly to the common untagged server VLAN.</p><h3>SW3 full lab configuration</h3><pre>enable<br>configure terminal<br>hostname SW3<br>spanning-tree mode rapid-pvst<br>spanning-tree portfast edge default<br>spanning-tree extend system-id<br>!<br>vlan 100<br> name SERVERS<br>!<br>interface FastEthernet0/1<br> switchport access vlan 100<br> switchport mode access<br> spanning-tree portfast<br> spanning-tree bpduguard enable<br> no shutdown<br>!<br>interface FastEthernet0/2<br> switchport access vlan 100<br> switchport mode access<br> spanning-tree portfast<br> spanning-tree bpduguard enable<br> no shutdown<br>!<br>interface FastEthernet0/3<br> switchport access vlan 100<br> switchport mode access<br> spanning-tree portfast<br> spanning-tree bpduguard enable<br> no shutdown<br>!<br>interface GigabitEthernet0/1<br> switchport access vlan 100<br> switchport mode access<br> no shutdown<br>!<br>interface GigabitEthernet0/2<br> switchport access vlan 100<br> switchport mode access<br> no shutdown<br>!<br>end<br>write memory</pre><p>Only server-facing access ports use PortFast and BPDU Guard. The ports toward the core routers do <strong>not</strong> receive those end-device protections.</p><h3>6. DHCP, DNS, HTTP, and client configuration</h3><p>The three servers have static addresses within VLAN 100, and all use the core HSRP VIP as the default gateway.</p><ul><li><strong>DHCP-SERVER</strong> — <strong>IPv4 address:</strong> 10.1.100.10/24 · <strong>Gateway:</strong> 10.1.100.1 · <strong>Service:</strong> DHCP relay target</li><li><strong>DNS-SERVER</strong> — <strong>IPv4 address:</strong> 10.1.100.11/24 · <strong>Gateway:</strong> 10.1.100.1 · <strong>Service:</strong> Resolves <a href="http://www.campus.local/">www.campus.local</a></li><li><strong>HTTP-SERVER</strong> — <strong>IPv4 address:</strong> 10.1.100.12/24 · <strong>Gateway:</strong> 10.1.100.1 · <strong>Service:</strong> Hosts a basic web page</li></ul><h3>DHCP scopes</h3><ul><li><strong>VLAN10-POOL</strong> — <strong>Start address:</strong> 10.1.10.50 · <strong>Mask:</strong> 255.255.255.0 · <strong>Gateway:</strong> 10.1.10.1 · <strong>DNS:</strong> 10.1.100.11 · <strong>Max leases:</strong> 50</li><li><strong>VLAN20-POOL</strong> — <strong>Start address:</strong> 10.1.20.50 · <strong>Mask:</strong> 255.255.255.0 · <strong>Gateway:</strong> 10.1.20.1 · <strong>DNS:</strong> 10.1.100.11 · <strong>Max leases:</strong> 50</li></ul><p>On both distribution switches, ip helper-address 10.1.100.10 appears under <strong>Vlan10 and Vlan20</strong>. This forwards broadcast DHCP client requests to the DHCP server across the routed campus.</p><p>In the simulator, configure the <strong>DHCP service</strong> on DHCP-SERVER, the <strong>DNS A record</strong> www.campus.local → 10.1.100.12 on DNS-SERVER, and the <strong>HTTP service</strong> on HTTP-SERVER. All four PCs are configured to obtain IPv4 addresses dynamically. PC1 and PC3 are on VLAN 10; PC2 and PC4 are on VLAN 20.</p><h3>7. Verification checklist capture your real results</h3><p>I would verify the design in layers before testing failover. These are the exact commands I would run; the expected conditions below are <em>not</em> fabricated simulator outputs.</p><h3>Layer 2: VLANs, trunks, and LACP</h3><pre>show vlan brief<br>show interfaces trunk<br>show etherchannel summary<br>show spanning-tree vlan 10<br>show spanning-tree vlan 20<br>show spanning-tree vlan 99</pre><p>Check that both distribution switches show <strong>Port-channel1</strong> with Fa0/23 and Fa0/24 bundled, and that access uplinks permit VLANs 10, 20, and 99. An RSTP alternate/discarding port on a redundant Layer 2 path is not necessarily an error.</p><h3>Layer 3: HSRP &amp; OSPF</h3><pre>show ip interface brief<br>show standby brief<br>show ip ospf neighbor<br>show ip route ospf<br>show ip route</pre><p>HSRP should elect <strong>DSW1 for VLANs 10 and 99</strong>, <strong>DSW2 for VLAN 20</strong>, and <strong>CORE-R1 for VLAN 100</strong> under normal healthy conditions. OSPF should provide campus-to-server routes on the Layer 3 devices.</p><h3>Services &amp; end-to-end connectivity</h3><p>From each client, confirm its DHCP address, gateway, and DNS server. Then test these commands as appropriate for the simulator PC command prompt:</p><pre>ipconfig /all<br>ping 10.1.10.1<br>ping 10.1.20.1<br>ping 10.1.100.10<br>ping 10.1.100.11<br>ping 10.1.100.12<br>tracert 10.1.100.12</pre><p>Open http://www.campus.local in the PC browser to test DNS resolution and the HTTP server together. A ping toward a possible DHCP lease address such as 10.1.20.52 is meaningful <strong>only after confirming that a real host has received that address and is reachable</strong>.</p><h3>Planned failure scenarios</h3><ul><li><strong>Routed-uplink failure</strong> <strong>Action:</strong> Shut down CORE-R1 Gi0/1 · <strong>Expected result to verify:</strong> DSW1 can still reach core through CORE-R2 over its diagonal link</li><li><strong>Opposite uplink failure</strong> <strong>Action:</strong> Shut down CORE-R2 Gi0/1 · <strong>Expected result to verify:</strong> DSW2 can still reach core through CORE-R1 over its diagonal link</li><li><strong>EtherChannel member failure</strong> <strong>Action:</strong> Shut down DSW1 Fa0/23 · <strong>Expected result to verify:</strong> Port-channel1 remains operational through Fa0/24</li><li><strong>Distribution HSRP failure</strong> <strong>Action:</strong> Disable DSW1 VLAN 10 SVI or device · <strong>Expected result to verify:</strong> DSW2 takes over 10.1.10.1, assuming the VLAN remains connected</li><li><strong>Server HSRP failure</strong> <strong>Action:</strong> Disable CORE-R1 Gi0/2 or device · <strong>Expected result to verify:</strong> CORE-R2 takes over 10.1.100.1, assuming the VLAN remains connected</li></ul><p>Bring every test interface back with no shutdown and check state convergence again. For deeper troubleshooting, compare show ip ospf neighbor, show ip route, and show standby brief <strong>before and after</strong> a test.</p><p>💡 <strong>Build this lab yourself:</strong> All the diagrams and CLI configs you saw here were created using <a href="https://pingmynetwork.com/"><strong>PingMyNetwork</strong></a>. If you’re studying for the CCNA or learning network engineering from scratch, check out <a href="https://pingmynetwork.com/"><strong>PingMyNetwork.com</strong></a> to practice hands-on right inside your browser.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=82922be4e954" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>