{"id":24322,"date":"2026-11-03T11:45:22","date_gmt":"2026-11-03T03:45:22","guid":{"rendered":"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html"},"modified":"2026-11-03T11:45:22","modified_gmt":"2026-11-03T03:45:22","slug":"how-to-set-default-gateway-on-cisco-switch","status":"publish","type":"post","link":"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html","title":{"rendered":"How to Set a Default Gateway on Cisco Switch"},"content":{"rendered":"<p>Setting a default gateway on a Cisco switch is a fundamental step in network staging and administration. Without a default gateway, a switch can communicate with devices on its local management subnet, but it cannot reply to IP traffic originating from other subnets. This means administrators cannot access the switch via SSH, send telemetry to centralized SNMP collectors, transmit syslog messages across subnets, or sync with remote NTP servers.<\/p>\n<p>How you configure the default gateway depends entirely on the operational role of your switch: whether it operates strictly as a Layer 2 access device or as a Layer 3 multilayer switch with active routing. This guide explains how to properly configure, verify, and troubleshoot default gateway settings across both Layer 2 and Layer 3 Cisco Catalyst switches running Cisco IOS or IOS-XE.<\/p>\n<hr \/>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_17 counter-hierarchy counter-decimal ez-toc-light-blue\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" style=\"display: none;\"><i class=\"ez-toc-glyphicon ez-toc-icon-toggle\"><\/i><\/a><\/span><\/div>\n<nav><ul class=\"ez-toc-list ez-toc-list-level-1\"><li class=\"ez-toc-page-1 ez-toc-heading-level-2\"><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html\/#Configuring_a_Default_Gateway_on_a_Layer_2_Cisco_Switch\" title=\"Configuring a Default Gateway on a Layer 2 Cisco Switch\">Configuring a Default Gateway on a Layer 2 Cisco Switch<\/a><ul class=\"ez-toc-list-level-3\"><li class=\"ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html\/#Step_1_Enter_Privileged_EXEC_and_Global_Configuration_Mode\" title=\"Step 1: Enter Privileged EXEC and Global Configuration Mode\">Step 1: Enter Privileged EXEC and Global Configuration Mode<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html\/#Step_2_Configure_the_Management_Switch_Virtual_Interface_SVI\" title=\"Step 2: Configure the Management Switch Virtual Interface (SVI)\">Step 2: Configure the Management Switch Virtual Interface (SVI)<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html\/#Step_3_Define_the_Default_Gateway\" title=\"Step 3: Define the Default Gateway\">Step 3: Define the Default Gateway<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html\/#Step_4_Verify_and_Save_the_Configuration\" title=\"Step 4: Verify and Save the Configuration\">Step 4: Verify and Save the Configuration<\/a><\/li><\/ul><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-2\"><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html\/#Configuring_a_Default_Gateway_on_a_Layer_3_Switch_with_IP_Routing\" title=\"Configuring a Default Gateway on a Layer 3 Switch with IP Routing\">Configuring a Default Gateway on a Layer 3 Switch with IP Routing<\/a><ul class=\"ez-toc-list-level-3\"><li class=\"ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html\/#Step_1_Verify_That_IP_Routing_Is_Enabled\" title=\"Step 1: Verify That IP Routing Is Enabled\">Step 1: Verify That IP Routing Is Enabled<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html\/#Step_2_Configure_a_Static_Default_Route\" title=\"Step 2: Configure a Static Default Route\">Step 2: Configure a Static Default Route<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html\/#Step_3_Remove_Any_Legacy_ip_default-gateway_Commands\" title=\"Step 3: Remove Any Legacy ip default-gateway Commands\">Step 3: Remove Any Legacy ip default-gateway Commands<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html\/#Step_4_Validate_the_Gateway_of_Last_Resort_and_Save\" title=\"Step 4: Validate the Gateway of Last Resort and Save\">Step 4: Validate the Gateway of Last Resort and Save<\/a><\/li><\/ul><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-2\"><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html\/#Technical_Comparison_ip_default-gateway_vs_ip_route_0000_0000\" title=\"Technical Comparison: ip default-gateway vs. ip route 0.0.0.0 0.0.0.0\">Technical Comparison: ip default-gateway vs. ip route 0.0.0.0 0.0.0.0<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-2\"><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html\/#Verification_and_Troubleshooting_Diagnostics\" title=\"Verification and Troubleshooting Diagnostics\">Verification and Troubleshooting Diagnostics<\/a><ul class=\"ez-toc-list-level-3\"><li class=\"ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html\/#How_do_I_check_the_configured_default_gateway_on_a_Layer_2_switch\" title=\"How do I check the configured default gateway on a Layer 2 switch?\">How do I check the configured default gateway on a Layer 2 switch?<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html\/#How_do_I_verify_the_default_gateway_on_a_Layer_3_switch\" title=\"How do I verify the default gateway on a Layer 3 switch?\">How do I verify the default gateway on a Layer 3 switch?<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html\/#Why_is_the_default_gateway_unreachable_when_pinged_from_the_switch\" title=\"Why is the default gateway unreachable when pinged from the switch?\">Why is the default gateway unreachable when pinged from the switch?<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html\/#Why_can_the_switch_ping_the_gateway_but_remote_users_cannot_connect_via_SSH\" title=\"Why can the switch ping the gateway, but remote users cannot connect via SSH?\">Why can the switch ping the gateway, but remote users cannot connect via SSH?<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html\/#What_happens_if_both_ip_default-gateway_and_ip_route_exist_in_the_configuration\" title=\"What happens if both ip default-gateway and ip route exist in the configuration?\">What happens if both ip default-gateway and ip route exist in the configuration?<\/a><\/li><\/ul><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-2\"><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html\/#Management_IP_and_Default_Gateway_Configuration_Templates\" title=\"Management IP and Default Gateway Configuration Templates\">Management IP and Default Gateway Configuration Templates<\/a><ul class=\"ez-toc-list-level-3\"><li class=\"ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html\/#Template_1_Layer_2_Switch_Management_Template\" title=\"Template 1: Layer 2 Switch Management Template\">Template 1: Layer 2 Switch Management Template<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-20\" href=\"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html\/#Template_2_Layer_3_Multilayer_Switch_Management_Template\" title=\"Template 2: Layer 3 Multilayer Switch Management Template\">Template 2: Layer 3 Multilayer Switch Management Template<\/a><\/li><\/ul><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-2\"><a class=\"ez-toc-link ez-toc-heading-21\" href=\"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html\/#Cisco_IOS_and_IOS-XE_Command_Reference_Standards\" title=\"Cisco IOS and IOS-XE Command Reference Standards\">Cisco IOS and IOS-XE Command Reference Standards<\/a><ul class=\"ez-toc-list-level-3\"><li class=\"ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-22\" href=\"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html\/#Command_Syntax_ip_default-gateway\" title=\"Command Syntax: ip default-gateway\">Command Syntax: ip default-gateway<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-23\" href=\"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html\/#Command_Syntax_ip_route_Default_Path\" title=\"Command Syntax: ip route (Default Path)\">Command Syntax: ip route (Default Path)<\/a><\/li><\/ul><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-2\"><a class=\"ez-toc-link ez-toc-heading-24\" href=\"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html\/#Conclusion\" title=\"Conclusion\">Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Configuring_a_Default_Gateway_on_a_Layer_2_Cisco_Switch\"><\/span>Configuring a Default Gateway on a Layer 2 Cisco Switch<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>On a Layer 2 switch (such as a Cisco Catalyst 2960 or a multilayer switch operating in Layer 2 mode), the switch does not route user data traffic between subnets. It requires an IP address solely for its management plane, typically configured on a Switch Virtual Interface (SVI), and an explicit pointer to an upstream router that can handle off-subnet traffic.<\/p>\n<p>Follow these sequential steps to configure the management SVI and set the default gateway via the Cisco CLI:<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Step_1_Enter_Privileged_EXEC_and_Global_Configuration_Mode\"><\/span>Step 1: Enter Privileged EXEC and Global Configuration Mode<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Establish a console or local terminal connection and enter configuration mode:<\/p>\n<pre><code class=\"language-text\">Switch&gt; enable\nSwitch# configure terminal\nEnter configuration commands, one per line. End with CNTL\/Z.\nSwitch(config)#\n<\/code><\/pre>\n<h3><span class=\"ez-toc-section\" id=\"Step_2_Configure_the_Management_Switch_Virtual_Interface_SVI\"><\/span>Step 2: Configure the Management Switch Virtual Interface (SVI)<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>A default gateway requires an active SVI within the same IP subnet. While <code>interface vlan 1<\/code> is default on factory-configured switches, production environments should use a dedicated management VLAN (e.g., VLAN 10, VLAN 99).<\/p>\n<pre><code class=\"language-text\">Switch(config)# interface vlan 10\nSwitch(config-if)# ip address 192.168.10.2 255.255.255.0\nSwitch(config-if)# no shutdown\nSwitch(config-if)# exit\n<\/code><\/pre>\n<p>Ensure the associated VLAN exists in the VLAN database and that at least one physical port assigned to that VLAN is active (<code>up\/up<\/code>) or carrying the VLAN over an 802.1Q trunk.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Step_3_Define_the_Default_Gateway\"><\/span>Step 3: Define the Default Gateway<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>From global configuration mode, enter the <code>ip default-gateway<\/code> command followed by the IP address of the upstream router or multilayer core switch interface serving that subnet:<\/p>\n<pre><code class=\"language-text\">Switch(config)# ip default-gateway 192.168.10.1\n<\/code><\/pre>\n<p><em>Note: The gateway IP address must reside in the exact same subnet as the management interface configured in Step 2.<\/em><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Step_4_Verify_and_Save_the_Configuration\"><\/span>Step 4: Verify and Save the Configuration<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Exit configuration mode and commit the changes from volatile RAM to non-volatile storage:<\/p>\n<pre><code class=\"language-text\">Switch(config)# end\nSwitch# copy running-config startup-config\nDestination filename [startup-config]? [Enter]\nBuilding configuration...\n[OK]\n<\/code><\/pre>\n<hr \/>\n<h2><span class=\"ez-toc-section\" id=\"Configuring_a_Default_Gateway_on_a_Layer_3_Switch_with_IP_Routing\"><\/span>Configuring a Default Gateway on a Layer 3 Switch with IP Routing<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>When deploying multilayer switches (such as Cisco Catalyst 3650, 3850, 9200, or 9300 series) with <code>ip routing<\/code> enabled, the switch maintains its own routing table and forwards traffic between VLANs. In this operational mode, <strong>Cisco IOS completely ignores the <code>ip default-gateway<\/code> command<\/strong>.<\/p>\n<p>Instead, the switch requires a static default route\u2014also known as the Gateway of Last Resort\u2014to forward traffic destined for external networks.<\/p>\n<p>Follow these steps to establish a default route on a Layer 3 switch:<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Step_1_Verify_That_IP_Routing_Is_Enabled\"><\/span>Step 1: Verify That IP Routing Is Enabled<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Access global configuration mode and ensure the routing engine is active:<\/p>\n<pre><code class=\"language-text\">Switch# configure terminal\nSwitch(config)# ip routing\n<\/code><\/pre>\n<p>If <code>ip routing<\/code> was already enabled, the command will simply be accepted without error.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Step_2_Configure_a_Static_Default_Route\"><\/span>Step 2: Configure a Static Default Route<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Specify a default route using the <code>0.0.0.0 0.0.0.0<\/code> prefix and wildcard, pointing to the next-hop IP address of the upstream firewall or core router:<\/p>\n<pre><code class=\"language-text\">Switch(config)# ip route 0.0.0.0 0.0.0.0 192.168.10.1\n<\/code><\/pre>\n<p>In this syntax:<br \/>\n&#8211; <code>0.0.0.0<\/code>: Represents any destination network.<br \/>\n&#8211; <code>0.0.0.0<\/code>: Represents any subnet mask (a quad-zero match).<br \/>\n&#8211; <code>192.168.10.1<\/code>: Specifies the next-hop IP address reachable via a local SVI or routed interface.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Step_3_Remove_Any_Legacy_ip_default-gateway_Commands\"><\/span>Step 3: Remove Any Legacy <code>ip default-gateway<\/code> Commands<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>If the switch was previously operating as a Layer 2 switch, clean up residual commands to avoid administrative confusion:<\/p>\n<pre><code class=\"language-text\">Switch(config)# no ip default-gateway 192.168.10.1\n<\/code><\/pre>\n<h3><span class=\"ez-toc-section\" id=\"Step_4_Validate_the_Gateway_of_Last_Resort_and_Save\"><\/span>Step 4: Validate the Gateway of Last Resort and Save<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Return to privileged EXEC mode and confirm that the routing engine has installed the route:<\/p>\n<pre><code class=\"language-text\">Switch(config)# end\nSwitch# show ip route | include Gateway of last resort\nGateway of last resort is 192.168.10.1 to network 0.0.0.0\nSwitch# write memory\n<\/code><\/pre>\n<hr \/>\n<h2><span class=\"ez-toc-section\" id=\"Technical_Comparison_ip_default-gateway_vs_ip_route_0000_0000\"><\/span>Technical Comparison: <code>ip default-gateway<\/code> vs. <code>ip route 0.0.0.0 0.0.0.0<\/code><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Network engineers frequently encounter scenarios where remote connectivity drops after enabling IP routing. The table below illustrates the operational differences between both commands:<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">Evaluation Criteria<\/th>\n<th style=\"text-align: left;\"><code>ip default-gateway<\/code><\/th>\n<th style=\"text-align: left;\"><code>ip route 0.0.0.0 0.0.0.0<\/code><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\"><strong>Primary Operational Purpose<\/strong><\/td>\n<td style=\"text-align: left;\">Directs management plane traffic originated by the switch itself.<\/td>\n<td style=\"text-align: left;\">Routes data plane and management traffic across subnets.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><strong>Operating Switch Mode<\/strong><\/td>\n<td style=\"text-align: left;\">Layer 2 mode (<code>no ip routing<\/code> active).<\/td>\n<td style=\"text-align: left;\">Layer 3 routing mode (<code>ip routing<\/code> active).<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><strong>Routing Table Interaction<\/strong><\/td>\n<td style=\"text-align: left;\">Does not interact with or populate the IP routing table (RIB\/FIB).<\/td>\n<td style=\"text-align: left;\">Installs a Gateway of Last Resort (<code>S* 0.0.0.0\/0<\/code>) in the RIB\/FIB.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><strong>Transit Traffic Forwarding<\/strong><\/td>\n<td style=\"text-align: left;\">Incapable of forwarding transit traffic between multiple VLANs.<\/td>\n<td style=\"text-align: left;\">Forwards transit traffic between client VLANs and upstream networks.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><strong>Command Syntax<\/strong><\/td>\n<td style=\"text-align: left;\"><code>ip default-gateway &lt;next-hop-ip&gt;<\/code><\/td>\n<td style=\"text-align: left;\"><code>ip route 0.0.0.0 0.0.0.0 &lt;next-hop-ip&gt; [metric]<\/code><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><strong>Behavior When <code>ip routing<\/code> Is Active<\/strong><\/td>\n<td style=\"text-align: left;\"><strong>Ignored.<\/strong> Command remains in running-config but is inactive.<\/td>\n<td style=\"text-align: left;\"><strong>Active.<\/strong> Used by Cisco Express Forwarding (CEF) for all unlisted routes.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><strong>Typical Target Platforms<\/strong><\/td>\n<td style=\"text-align: left;\">Catalyst 2960-X, 1000 series, or L2 access-layer topologies.<\/td>\n<td style=\"text-align: left;\">Catalyst 3850, 9300, 9500 series, and Core\/Distribution layers.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h2><span class=\"ez-toc-section\" id=\"Verification_and_Troubleshooting_Diagnostics\"><\/span>Verification and Troubleshooting Diagnostics<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Once configured, verify gateway reachability and diagnose any issues that prevent off-subnet management access.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"How_do_I_check_the_configured_default_gateway_on_a_Layer_2_switch\"><\/span>How do I check the configured default gateway on a Layer 2 switch?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Execute the <code>show ip default-gateway<\/code> command or inspect the active IP configuration:<\/p>\n<pre><code class=\"language-text\">Switch# show ip default-gateway\n192.168.10.1\n<\/code><\/pre>\n<p>You can also view the gateway and interface settings simultaneously using <code>show ip redirects<\/code> or by filtering the running configuration:<\/p>\n<pre><code class=\"language-text\">Switch# show running-config | include ip default-gateway\nip default-gateway 192.168.10.1\n<\/code><\/pre>\n<h3><span class=\"ez-toc-section\" id=\"How_do_I_verify_the_default_gateway_on_a_Layer_3_switch\"><\/span>How do I verify the default gateway on a Layer 3 switch?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Use the <code>show ip route<\/code> command to confirm that the Gateway of Last Resort is properly set:<\/p>\n<pre><code class=\"language-text\">Switch# show ip route 0.0.0.0\nRouting entry for 0.0.0.0\/0, supernet\n  Known via &quot;static&quot;, distance 1, metric 0, candidate default path\n  Routing Descriptor Blocks:\n  * 192.168.10.1\n      Route metric is 0, share count 1\n<\/code><\/pre>\n<p>Look for the <code>S*<\/code> flag in the routing table, which indicates a candidate default static route.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Why_is_the_default_gateway_unreachable_when_pinged_from_the_switch\"><\/span>Why is the default gateway unreachable when pinged from the switch?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>If issuing <code>ping 192.168.10.1<\/code> fails, check the following common causes:<br \/>\n1. <strong>SVI Status Is Down\/Down<\/strong>: If no physical access port assigned to the management VLAN is connected, or if the VLAN is not active on any trunk link, the SVI enters a <code>down\/down<\/code> state. Check with <code>show ip interface brief<\/code>.<br \/>\n2. <strong>Missing VLAN Definition<\/strong>: The VLAN interface exists (<code>interface vlan 10<\/code>), but the VLAN itself was never created in the database. Verify with <code>show vlan brief<\/code>.<br \/>\n3. <strong>Subnet Mask Mismatch<\/strong>: The switch IP and gateway IP do not share an identical network address and subnet mask.<br \/>\n4. <strong>Trunk Pruning<\/strong>: An upstream 802.1Q trunk port is pruning the management VLAN via the <code>switchport trunk allowed vlan<\/code> list.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Why_can_the_switch_ping_the_gateway_but_remote_users_cannot_connect_via_SSH\"><\/span>Why can the switch ping the gateway, but remote users cannot connect via SSH?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>This symptom usually indicates that local Layer 2 ARP resolution is working, but return traffic cannot cross subnet boundaries:<br \/>\n&#8211; <strong>Missing Gateway Command on L2<\/strong>: The switch receives the incoming TCP SYN packet from a remote management workstation, but because <code>ip default-gateway<\/code> is omitted, it has no route to return the TCP SYN-ACK and drops the packet.<br \/>\n&#8211; <strong>Access-Class Restrictions on VTY Lines<\/strong>: An Access Control List (ACL) applied to <code>line vty 0 15<\/code> via <code>access-class<\/code> is filtering the remote client&#8217;s source IP address. Verify using <code>show running-config | section line vty<\/code>.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"What_happens_if_both_ip_default-gateway_and_ip_route_exist_in_the_configuration\"><\/span>What happens if both <code>ip default-gateway<\/code> and <code>ip route<\/code> exist in the configuration?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Cisco IOS resolves this based on the global routing state:<br \/>\n&#8211; If <code>ip routing<\/code> is enabled, the switch uses the static default route (<code>ip route 0.0.0.0 0.0.0.0<\/code>) and ignores <code>ip default-gateway<\/code>.<br \/>\n&#8211; If routing is disabled (<code>no ip routing<\/code>), the switch uses <code>ip default-gateway<\/code> and ignores all <code>ip route<\/code> statements.<\/p>\n<hr \/>\n<h2><span class=\"ez-toc-section\" id=\"Management_IP_and_Default_Gateway_Configuration_Templates\"><\/span>Management IP and Default Gateway Configuration Templates<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Use the following configuration templates to deploy initial management settings. Replace bracketed values (e.g., <code>&lt;VLAN_ID&gt;<\/code>) with your site-specific network parameters.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Template_1_Layer_2_Switch_Management_Template\"><\/span>Template 1: Layer 2 Switch Management Template<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<pre><code class=\"language-text\">! ==========================================\n! CISCO LAYER 2 SWITCH MANAGEMENT TEMPLATE\n! ==========================================\nconfigure terminal\n\n! 1. Create and name the management VLAN\nvlan &lt;MGMT_VLAN_ID&gt;\n name MANAGEMENT\n exit\n\n! 2. Configure the Switch Virtual Interface (SVI)\ninterface vlan &lt;MGMT_VLAN_ID&gt;\n description Switch_Management_Interface\n ip address &lt;SWITCH_MANAGEMENT_IP&gt; &lt;SUBNET_MASK&gt;\n no shutdown\n exit\n\n! 3. Define the Layer 2 Default Gateway\nip default-gateway &lt;DEFAULT_GATEWAY_IP&gt;\n\n! 4. Commit changes to NVRAM\nend\ncopy running-config startup-config\n<\/code><\/pre>\n<h3><span class=\"ez-toc-section\" id=\"Template_2_Layer_3_Multilayer_Switch_Management_Template\"><\/span>Template 2: Layer 3 Multilayer Switch Management Template<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<pre><code class=\"language-text\">! ==========================================\n! CISCO LAYER 3 MULTILAYER SWITCH TEMPLATE\n! ==========================================\nconfigure terminal\n\n! 1. Enable Global Hardware\/Software IP Routing\nip routing\n\n! 2. Create Management VLAN and SVI\nvlan &lt;MGMT_VLAN_ID&gt;\n name MANAGEMENT\n exit\n\ninterface vlan &lt;MGMT_VLAN_ID&gt;\n description Multilayer_Management_SVI\n ip address &lt;SWITCH_MANAGEMENT_IP&gt; &lt;SUBNET_MASK&gt;\n no shutdown\n exit\n\n! 3. Configure the Static Gateway of Last Resort\nip route 0.0.0.0 0.0.0.0 &lt;NEXT_HOP_ROUTER_IP&gt;\n\n! 4. Clean up any redundant L2 gateway statements\nno ip default-gateway\n\n! 5. Commit changes to NVRAM\nend\nwrite memory\n<\/code><\/pre>\n<hr \/>\n<h2><span class=\"ez-toc-section\" id=\"Cisco_IOS_and_IOS-XE_Command_Reference_Standards\"><\/span>Cisco IOS and IOS-XE Command Reference Standards<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>For compliance audits, network documentation, and configuration scripts, adhere to the official Cisco IOS and IOS-XE syntax standards:<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Command_Syntax_ip_default-gateway\"><\/span>Command Syntax: <code>ip default-gateway<\/code><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ul>\n<li><strong>Full Syntax<\/strong>: <code>ip default-gateway ip-address<\/code><\/li>\n<li><strong>Command Mode<\/strong>: Global Configuration (<code>config#<\/code>)<\/li>\n<li><strong>Software Requirements<\/strong>: Cisco IOS 12.2 or higher; Cisco IOS-XE 16.1 or higher.<\/li>\n<li><strong>Hardware Applicability<\/strong>: Cisco Catalyst 1000, 2960, 3560, 3650, 3850, and Catalyst 9000 Series operating without routing.<\/li>\n<li><strong>Operational Rule<\/strong>: Defines the default network device used by the switch when IP routing is not enabled. If IP routing is subsequently activated on the device via <code>ip routing<\/code>, the address assigned by <code>ip default-gateway<\/code> is preserved in text configuration but disregarded by the route forwarding engine.<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"Command_Syntax_ip_route_Default_Path\"><\/span>Command Syntax: <code>ip route<\/code> (Default Path)<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ul>\n<li><strong>Full Syntax<\/strong>: <code>ip route 0.0.0.0 0.0.0.0 {ip-address | interface-type interface-number [ip-address]} [distance]<\/code><\/li>\n<li><strong>Command Mode<\/strong>: Global Configuration (<code>config#<\/code>)<\/li>\n<li><strong>Software Requirements<\/strong>: Cisco IOS 12.0 or higher; Cisco IOS-XE 16.1 or higher with IP Base, IP Services, Network Advantage, or Network Essentials licensing.<\/li>\n<li><strong>Operational Rule<\/strong>: Establishes a static route in the Routing Information Base (RIB). Specifying <code>0.0.0.0 0.0.0.0<\/code> creates a Gateway of Last Resort used to forward any packet for which a more specific match cannot be found in the routing table.<\/li>\n<\/ul>\n<hr \/>\n<h2><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Setting a default gateway on a Cisco switch is a straightforward task that hinges on one fundamental distinction: the routing state of the switch. On Layer 2 access switches, use <code>ip default-gateway<\/code> alongside an active management SVI to handle outbound management packets. On Layer 3 multilayer switches where <code>ip routing<\/code> is enabled, bypass <code>ip default-gateway<\/code> entirely and define a static default route using <code>ip route 0.0.0.0 0.0.0.0<\/code>. Applying the correct command ensures consistent remote reachability, streamlined monitoring, and reliable network management.<\/p>\n<div class='sfsi_Sicons' style='width: 100%; display: inline-block; vertical-align: middle; text-align:left'><div style='margin:0px 8px 0px 0px; line-height: 24px'><span>Please follow and like us:<\/span><\/div><div class='sfsi_socialwpr'><div class='sf_fb_share sf_icon' style='text-align:left;vertical-align: middle;'><a href='https:\/\/www.facebook.com\/sharer\/sharer.php?u=https%3A%2F%2Fcciedump.spoto.net%2Fblog%2Fhow-to-set-default-gateway-on-cisco-switch_24322.html' style='display:inline-block;'  > <img class='sfsi_wicon'  data-pin-nopin='true' width='auto' height='auto' alt='fb-share-icon' title='Facebook Share' src='https:\/\/cciedump.spoto.net\/blog\/wp-content\/plugins\/ultimate-social-media-icons\/images\/visit_icons\/fbshare_bck.png'  \/><\/a><\/div><div class='sf_twiter sf_icon' style='display: inline-block;vertical-align: middle;width: auto;margin-left: 7px;'>\r\n\t\t\t\t\t\t<a target='_blank' href='https:\/\/twitter.com\/intent\/tweet?text=How+to+Set+a+Default+Gateway+on+Cisco+Switch+https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html'style='display:inline-block' >\r\n\t\t\t\t\t\t\t<img data-pin-nopin= true width='auto' class='sfsi_wicon' src='https:\/\/cciedump.spoto.net\/blog\/wp-content\/plugins\/ultimate-social-media-icons\/images\/visit_icons\/en_US_Tweet.svg' alt='Tweet' title='Tweet' >\r\n\t\t\t\t\t\t<\/a>\r\n\t\t\t\t\t<\/div><div class='sf_pinit sf_icon' style='text-align:left;vertical-align: middle;float:left;line-height: 33px;width:auto;margin: 0 -2px;'><a href='#'  onclick='sfsi_pinterest_modal_images(event,\"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html\",\"How to Set a Default Gateway on Cisco Switch\")' style='display:inline-block;'  > <img class='sfsi_wicon'  data-pin-nopin='true' width='auto' height='auto' alt='fb-share-icon' title='Pin Share' src='https:\/\/cciedump.spoto.net\/blog\/wp-content\/plugins\/ultimate-social-media-icons\/images\/share_icons\/Pinterest_Save\/en_US_save.svg'  \/><\/a><\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Setting a default gateway on a Cisco switch is a fundamental step in network staging and administration. Without a default gateway, a switch can communicate with devices on its local management subnet, but it cannot reply to IP traffic originating from other subnets. This means administrators cannot access the switch via SSH, send telemetry to&#8230; &raquo; <a class=\"read-more-link\" href=\"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html\">read more<\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3,608],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v18.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Set a Default Gateway on Cisco Switch - SPOTO Official Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Set a Default Gateway on Cisco Switch - SPOTO Official Blog\" \/>\n<meta property=\"og:description\" content=\"Setting a default gateway on a Cisco switch is a fundamental step in network staging and administration. Without a default gateway, a switch can communicate with devices on its local management subnet, but it cannot reply to IP traffic originating from other subnets. This means administrators cannot access the switch via SSH, send telemetry to... &raquo; read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html\" \/>\n<meta property=\"og:site_name\" content=\"SPOTO Official Blog\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-03T03:45:22+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"SPOTO \u7f16\u8f91\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/cciedump.spoto.net\/blog\/#\/schema\/person\/25594d4796697ccb1ef63d55c269c638\",\"name\":\"SPOTO Club\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/cciedump.spoto.net\/blog\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/cciedump.spoto.net\/blog\/wp-content\/uploads\/2020\/03\/spoto-facemask-96x96.jpg\",\"contentUrl\":\"https:\/\/cciedump.spoto.net\/blog\/wp-content\/uploads\/2020\/03\/spoto-facemask-96x96.jpg\",\"caption\":\"SPOTO Club\"},\"logo\":{\"@id\":\"https:\/\/cciedump.spoto.net\/blog\/#personlogo\"},\"description\":\"SPOTO is an excellent leader in IT certification training for 20+ years. We offer 100% real Cisco CCNA, CCNP exam dumps, CCIE Lab study materials, PMP, CISA, CISM, AWS, Palo Alto, and other IT exam dumps. We have helped thousands of candidates around the world to pass their IT exams on the first try! As the first-class online IT training organization in China, SPOTO cooperates with many giant Internet companies in China like Tencent, Baidu, and Alibaba. What\u2019s more, we have won lots of awards in IT education training such as \u201cTop Ten Influential Brands In Online Education Industry\u201d given by Baidu, \u201cOfficial IT Online Training Organization\u201d awarded by Tencent Class, etc. Join us: https:\/\/cciedump.spoto.net\/ Contact us: E-mail: support@spoto.net Phone \/ WhatsApp: +86 18344981205\",\"sameAs\":[\"https:\/\/cciedump.spoto.net\/\"]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cciedump.spoto.net\/blog\/#website\",\"url\":\"https:\/\/cciedump.spoto.net\/blog\/\",\"name\":\"SPOTO Official Blog\",\"description\":\"Focus on Online IT Training for 20+ Years\",\"publisher\":{\"@id\":\"https:\/\/cciedump.spoto.net\/blog\/#\/schema\/person\/25594d4796697ccb1ef63d55c269c638\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cciedump.spoto.net\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html#webpage\",\"url\":\"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html\",\"name\":\"How to Set a Default Gateway on Cisco Switch - SPOTO Official Blog\",\"isPartOf\":{\"@id\":\"https:\/\/cciedump.spoto.net\/blog\/#website\"},\"datePublished\":\"2026-11-03T03:45:22+00:00\",\"dateModified\":\"2026-11-03T03:45:22+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cciedump.spoto.net\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Set a Default Gateway on Cisco Switch\"}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html#article\",\"isPartOf\":{\"@id\":\"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html#webpage\"},\"author\":{\"@id\":\"https:\/\/cciedump.spoto.net\/blog\/#\/schema\/person\/4edd6074d9632c14eda17a2205a88dd1\"},\"headline\":\"How to Set a Default Gateway on Cisco Switch\",\"datePublished\":\"2026-11-03T03:45:22+00:00\",\"dateModified\":\"2026-11-03T03:45:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html#webpage\"},\"wordCount\":1346,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/cciedump.spoto.net\/blog\/#\/schema\/person\/25594d4796697ccb1ef63d55c269c638\"},\"articleSection\":[\"CCNA Certification\",\"Cisco Certification\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html#respond\"]}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/cciedump.spoto.net\/blog\/#\/schema\/person\/4edd6074d9632c14eda17a2205a88dd1\",\"name\":\"SPOTO \u7f16\u8f91\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/cciedump.spoto.net\/blog\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/cciedump.spoto.net\/blog\/wp-content\/litespeed\/avatar\/f525ded90e4ff384a19ebdbe47c80d22.jpg?ver=1793350507\",\"contentUrl\":\"https:\/\/cciedump.spoto.net\/blog\/wp-content\/litespeed\/avatar\/f525ded90e4ff384a19ebdbe47c80d22.jpg?ver=1793350507\",\"caption\":\"SPOTO \u7f16\u8f91\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Set a Default Gateway on Cisco Switch - SPOTO Official Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html","og_locale":"en_US","og_type":"article","og_title":"How to Set a Default Gateway on Cisco Switch - SPOTO Official Blog","og_description":"Setting a default gateway on a Cisco switch is a fundamental step in network staging and administration. Without a default gateway, a switch can communicate with devices on its local management subnet, but it cannot reply to IP traffic originating from other subnets. This means administrators cannot access the switch via SSH, send telemetry to... &raquo; read more","og_url":"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html","og_site_name":"SPOTO Official Blog","article_published_time":"2026-11-03T03:45:22+00:00","twitter_card":"summary_large_image","twitter_misc":{"Written by":"SPOTO \u7f16\u8f91","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["Person","Organization"],"@id":"https:\/\/cciedump.spoto.net\/blog\/#\/schema\/person\/25594d4796697ccb1ef63d55c269c638","name":"SPOTO Club","image":{"@type":"ImageObject","@id":"https:\/\/cciedump.spoto.net\/blog\/#personlogo","inLanguage":"en-US","url":"https:\/\/cciedump.spoto.net\/blog\/wp-content\/uploads\/2020\/03\/spoto-facemask-96x96.jpg","contentUrl":"https:\/\/cciedump.spoto.net\/blog\/wp-content\/uploads\/2020\/03\/spoto-facemask-96x96.jpg","caption":"SPOTO Club"},"logo":{"@id":"https:\/\/cciedump.spoto.net\/blog\/#personlogo"},"description":"SPOTO is an excellent leader in IT certification training for 20+ years. We offer 100% real Cisco CCNA, CCNP exam dumps, CCIE Lab study materials, PMP, CISA, CISM, AWS, Palo Alto, and other IT exam dumps. We have helped thousands of candidates around the world to pass their IT exams on the first try! As the first-class online IT training organization in China, SPOTO cooperates with many giant Internet companies in China like Tencent, Baidu, and Alibaba. What\u2019s more, we have won lots of awards in IT education training such as \u201cTop Ten Influential Brands In Online Education Industry\u201d given by Baidu, \u201cOfficial IT Online Training Organization\u201d awarded by Tencent Class, etc. Join us: https:\/\/cciedump.spoto.net\/ Contact us: E-mail: support@spoto.net Phone \/ WhatsApp: +86 18344981205","sameAs":["https:\/\/cciedump.spoto.net\/"]},{"@type":"WebSite","@id":"https:\/\/cciedump.spoto.net\/blog\/#website","url":"https:\/\/cciedump.spoto.net\/blog\/","name":"SPOTO Official Blog","description":"Focus on Online IT Training for 20+ Years","publisher":{"@id":"https:\/\/cciedump.spoto.net\/blog\/#\/schema\/person\/25594d4796697ccb1ef63d55c269c638"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cciedump.spoto.net\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html#webpage","url":"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html","name":"How to Set a Default Gateway on Cisco Switch - SPOTO Official Blog","isPartOf":{"@id":"https:\/\/cciedump.spoto.net\/blog\/#website"},"datePublished":"2026-11-03T03:45:22+00:00","dateModified":"2026-11-03T03:45:22+00:00","breadcrumb":{"@id":"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cciedump.spoto.net\/blog"},{"@type":"ListItem","position":2,"name":"How to Set a Default Gateway on Cisco Switch"}]},{"@type":"Article","@id":"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html#article","isPartOf":{"@id":"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html#webpage"},"author":{"@id":"https:\/\/cciedump.spoto.net\/blog\/#\/schema\/person\/4edd6074d9632c14eda17a2205a88dd1"},"headline":"How to Set a Default Gateway on Cisco Switch","datePublished":"2026-11-03T03:45:22+00:00","dateModified":"2026-11-03T03:45:22+00:00","mainEntityOfPage":{"@id":"https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html#webpage"},"wordCount":1346,"commentCount":0,"publisher":{"@id":"https:\/\/cciedump.spoto.net\/blog\/#\/schema\/person\/25594d4796697ccb1ef63d55c269c638"},"articleSection":["CCNA Certification","Cisco Certification"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/cciedump.spoto.net\/blog\/how-to-set-default-gateway-on-cisco-switch_24322.html#respond"]}]},{"@type":"Person","@id":"https:\/\/cciedump.spoto.net\/blog\/#\/schema\/person\/4edd6074d9632c14eda17a2205a88dd1","name":"SPOTO \u7f16\u8f91","image":{"@type":"ImageObject","@id":"https:\/\/cciedump.spoto.net\/blog\/#personlogo","inLanguage":"en-US","url":"https:\/\/cciedump.spoto.net\/blog\/wp-content\/litespeed\/avatar\/f525ded90e4ff384a19ebdbe47c80d22.jpg?ver=1793350507","contentUrl":"https:\/\/cciedump.spoto.net\/blog\/wp-content\/litespeed\/avatar\/f525ded90e4ff384a19ebdbe47c80d22.jpg?ver=1793350507","caption":"SPOTO \u7f16\u8f91"}}]}},"_links":{"self":[{"href":"https:\/\/cciedump.spoto.net\/blog\/wp-json\/wp\/v2\/posts\/24322"}],"collection":[{"href":"https:\/\/cciedump.spoto.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cciedump.spoto.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cciedump.spoto.net\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/cciedump.spoto.net\/blog\/wp-json\/wp\/v2\/comments?post=24322"}],"version-history":[{"count":0,"href":"https:\/\/cciedump.spoto.net\/blog\/wp-json\/wp\/v2\/posts\/24322\/revisions"}],"wp:attachment":[{"href":"https:\/\/cciedump.spoto.net\/blog\/wp-json\/wp\/v2\/media?parent=24322"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cciedump.spoto.net\/blog\/wp-json\/wp\/v2\/categories?post=24322"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cciedump.spoto.net\/blog\/wp-json\/wp\/v2\/tags?post=24322"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}