{"id":24197,"date":"2026-10-31T15:50:51","date_gmt":"2026-10-31T07:50:51","guid":{"rendered":"https:\/\/cciedump.spoto.net\/blog\/?p=24197"},"modified":"2026-10-31T15:50:53","modified_gmt":"2026-10-31T07:50:53","slug":"how-to-remove-trunk-port-in-cisco-switch-command","status":"publish","type":"post","link":"https:\/\/cciedump.spoto.net\/blog\/how-to-remove-trunk-port-in-cisco-switch-command_24197.html","title":{"rendered":"How to Remove Trunk Port in Cisco Switch Command"},"content":{"rendered":"<p>In Cisco Catalyst switches running Cisco IOS or IOS-XE, removing a trunk port can mean three different operational tasks: converting an active trunk into a standard access port for an end-user device, stripping all custom configurations to return an interface to factory defaults, or pruning specific VLANs from an active trunk link without tearing down the connection.<\/p>\n<p>Executing the wrong command can lead to spanning tree recalculations, native VLAN mismatches, or unexpected Dynamic Trunking Protocol (DTP) negotiations that leave the port in an unintended state. Below is a comprehensive walkthrough of the CLI commands, behavioral differences, verification steps, and automation templates required to safely modify or remove trunk configurations on Cisco switches.<\/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-remove-trunk-port-in-cisco-switch-command_24197.html\/#Converting_a_Trunk_Port_to_a_Static_Access_Port\" title=\"Converting a Trunk Port to a Static Access Port\">Converting a Trunk Port to a Static Access Port<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-2\"><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/cciedump.spoto.net\/blog\/how-to-remove-trunk-port-in-cisco-switch-command_24197.html\/#Resetting_a_Trunk_Interface_to_Factory_Defaults_with_the_Default_Interface_Command\" title=\"Resetting a Trunk Interface to Factory Defaults with the Default Interface Command\">Resetting a Trunk Interface to Factory Defaults with the Default Interface Command<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-2\"><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/cciedump.spoto.net\/blog\/how-to-remove-trunk-port-in-cisco-switch-command_24197.html\/#Switchport_Mode_Access_vs_Default_Interface_Key_Differences\" title=\"Switchport Mode Access vs. Default Interface: Key Differences\">Switchport Mode Access vs. Default Interface: Key Differences<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-2\"><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/cciedump.spoto.net\/blog\/how-to-remove-trunk-port-in-cisco-switch-command_24197.html\/#Removing_Specific_VLANs_from_a_Trunk_Without_Disabling_the_Link\" title=\"Removing Specific VLANs from a Trunk Without Disabling the Link\">Removing Specific VLANs from a Trunk Without Disabling the Link<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-2\"><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/cciedump.spoto.net\/blog\/how-to-remove-trunk-port-in-cisco-switch-command_24197.html\/#Verifying_Trunk_Removal_and_Inspecting_Interface_State\" title=\"Verifying Trunk Removal and Inspecting Interface State\">Verifying Trunk Removal and Inspecting Interface State<\/a><ul class=\"ez-toc-list-level-3\"><li class=\"ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/cciedump.spoto.net\/blog\/how-to-remove-trunk-port-in-cisco-switch-command_24197.html\/#1_Confirm_the_Port_is_Removed_from_Active_Trunks\" title=\"1. Confirm the Port is Removed from Active Trunks\">1. Confirm the Port is Removed from Active Trunks<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/cciedump.spoto.net\/blog\/how-to-remove-trunk-port-in-cisco-switch-command_24197.html\/#2_Inspect_Administrative_vs_Operational_Switchport_States\" title=\"2. Inspect Administrative vs. Operational Switchport States\">2. Inspect Administrative vs. Operational Switchport States<\/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-remove-trunk-port-in-cisco-switch-command_24197.html\/#3_Check_the_Running_Configuration\" title=\"3. Check the Running Configuration\">3. Check the Running Configuration<\/a><\/li><\/ul><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-2\"><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/cciedump.spoto.net\/blog\/how-to-remove-trunk-port-in-cisco-switch-command_24197.html\/#Ready-to-Use_CLI_Templates_for_Trunk_Port_Decommissioning\" title=\"Ready-to-Use CLI Templates for Trunk Port Decommissioning\">Ready-to-Use CLI Templates for Trunk Port Decommissioning<\/a><ul class=\"ez-toc-list-level-3\"><li class=\"ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/cciedump.spoto.net\/blog\/how-to-remove-trunk-port-in-cisco-switch-command_24197.html\/#Template_1_Convert_Single_Trunk_Interface_to_Access_Port\" title=\"Template 1: Convert Single Trunk Interface to Access Port\">Template 1: Convert Single Trunk Interface to Access Port<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/cciedump.spoto.net\/blog\/how-to-remove-trunk-port-in-cisco-switch-command_24197.html\/#Template_2_Convert_Multiple_Interfaces_Batch_Interface_Range\" title=\"Template 2: Convert Multiple Interfaces (Batch Interface Range)\">Template 2: Convert Multiple Interfaces (Batch Interface Range)<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/cciedump.spoto.net\/blog\/how-to-remove-trunk-port-in-cisco-switch-command_24197.html\/#Template_3_Complete_Interface_Wipe_and_Decommission\" title=\"Template 3: Complete Interface Wipe and Decommission\">Template 3: Complete Interface Wipe and Decommission<\/a><\/li><\/ul><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-2\"><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/cciedump.spoto.net\/blog\/how-to-remove-trunk-port-in-cisco-switch-command_24197.html\/#Cisco_Catalyst_Switchport_Command_Reference_and_Operational_Defaults\" title=\"Cisco Catalyst Switchport Command Reference and Operational Defaults\">Cisco Catalyst Switchport Command Reference and Operational Defaults<\/a><ul class=\"ez-toc-list-level-3\"><li class=\"ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/cciedump.spoto.net\/blog\/how-to-remove-trunk-port-in-cisco-switch-command_24197.html\/#Platform_Defaults_and_Behavioral_Notes\" title=\"Platform Defaults and Behavioral Notes\">Platform Defaults and Behavioral Notes<\/a><\/li><\/ul><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-2\"><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/cciedump.spoto.net\/blog\/how-to-remove-trunk-port-in-cisco-switch-command_24197.html\/#Summary\" title=\"Summary\">Summary<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Converting_a_Trunk_Port_to_a_Static_Access_Port\"><\/span>Converting a Trunk Port to a Static Access Port<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>When repurposing an uplink or server trunk interface for a standard workstation, printer, or single-VLAN endpoint, the interface must be transitioned from trunk mode to static access mode. Simply issuing <code>no switchport mode trunk<\/code> is often insufficient because the port may fall back to dynamic auto or desirable mode depending on the platform default.<\/p>\n<p>Follow these steps to safely convert the port:<\/p>\n<ol>\n<li><strong>Enter Global Configuration Mode:<\/strong><br \/>\n<code>text<br \/>\nSwitch# configure terminal<\/code><\/li>\n<li><strong>Select the Target Interface:<\/strong><br \/>\nSpecify the physical interface currently configured as a trunk (for example, GigabitEthernet 1\/0\/10):<br \/>\n<code>text<br \/>\nSwitch(config)# interface GigabitEthernet 1\/0\/10<\/code><\/li>\n<li><strong>Set the Administrative Mode to Static Access:<\/strong><br \/>\nForce the switchport into permanent non-trunking mode:<br \/>\n<code>text<br \/>\nSwitch(config-if)# switchport mode access<\/code><\/li>\n<li><strong>Assign the Intended Access VLAN:<\/strong><br \/>\nBy default, an access port belongs to VLAN 1. Explicitly assign the port to the appropriate broadcast domain:<br \/>\n<code>text<br \/>\nSwitch(config-if)# switchport access vlan 20<\/code><\/li>\n<li><strong>Clean Up Lingering Trunking Configuration (Optional but Recommended):<\/strong><br \/>\nRemove residual trunk settings to keep the running configuration tidy and prevent unexpected behavior if the port mode is changed in the future:<br \/>\n<code>text<br \/>\nSwitch(config-if)# no switchport trunk allowed vlan<br \/>\nSwitch(config-if)# no switchport trunk native vlan<\/code><br \/>\n<em>(Note: On legacy Catalyst platforms such as the 3560 or 3750 series, you may also need to issue <code>no switchport trunk encapsulation dot1q<\/code> if static encapsulation was defined.)<\/em><\/li>\n<li><strong>Enable Host Optimizations (If Connecting an End Device):<\/strong><br \/>\n<code>text<br \/>\nSwitch(config-if)# spanning-tree portfast<br \/>\nSwitch(config-if)# exit<\/code><\/li>\n<\/ol>\n<hr>\n<h2><span class=\"ez-toc-section\" id=\"Resetting_a_Trunk_Interface_to_Factory_Defaults_with_the_Default_Interface_Command\"><\/span>Resetting a Trunk Interface to Factory Defaults with the Default Interface Command<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>If an interface has accumulated complex configurations\u2014such as custom trunk allowed lists, voice VLANs, QoS trust markings, Storm Control, or port security\u2014manually removing each parameter with <code>no<\/code> commands is time-consuming and error-prone. Cisco IOS provides the <code>default interface<\/code> command to instantly clear all applied configurations and reset the port to factory default settings.<\/p>\n<p>Follow these steps to wipe all trunk parameters completely:<\/p>\n<ol>\n<li><strong>Enter Global Configuration Mode:<\/strong><br \/>\n<code>text<br \/>\nSwitch# configure terminal<\/code><\/li>\n<li><strong>Execute the Default Interface Command:<\/strong><br \/>\nApply the command to the target interface. You must execute this from global configuration mode, not interface mode:<br \/>\n<code>text<br \/>\nSwitch(config)# default interface GigabitEthernet 1\/0\/10<\/code><br \/>\nThe switch will return a confirmation message:<br \/>\n<code>text<br \/>\nInterface GigabitEthernet1\/0\/10 set to default configuration<\/code><\/li>\n<li><strong>Verify Port Security Posture:<\/strong><br \/>\nOn most modern Catalyst switches (such as the Catalyst 9200, 9300, and 9500 series), resetting an interface to default restores it to an unassigned Layer 2 switchport. Depending on your switch&#8217;s global template, the interface may default to an administrative mode of <code>dynamic auto<\/code> or <code>access<\/code> in VLAN 1.<\/li>\n<li><strong>Administratively Disable the Interface (Best Practice):<\/strong><br \/>\nIf the port will not be put into service immediately, shut it down to prevent unauthorized physical connections:<br \/>\n<code>text<br \/>\nSwitch(config)# interface GigabitEthernet 1\/0\/10<br \/>\nSwitch(config-if)# shutdown<br \/>\nSwitch(config-if)# description UNUSED_PORT<br \/>\nSwitch(config-if)# exit<\/code><\/li>\n<\/ol>\n<hr>\n<h2><span class=\"ez-toc-section\" id=\"Switchport_Mode_Access_vs_Default_Interface_Key_Differences\"><\/span>Switchport Mode Access vs. Default Interface: Key Differences<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Choosing between <code>switchport mode access<\/code> and <code>default interface<\/code> depends on whether the interface is being reassigned immediately to an endpoint or decommissioned entirely. The table below highlights how both methods handle operational parameters, downtime, and inherited properties.<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">Criterion<\/th>\n<th style=\"text-align: left;\"><code>switchport mode access<\/code><\/th>\n<th style=\"text-align: left;\"><code>default interface &lt;id&gt;<\/code><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\"><strong>Primary Objective<\/strong><\/td>\n<td style=\"text-align: left;\">Transition an active trunk into a dedicated single-VLAN access port.<\/td>\n<td style=\"text-align: left;\">Completely purge all custom configurations and return port to factory defaults.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><strong>Interface State<\/strong><\/td>\n<td style=\"text-align: left;\">Remains <code>up\/up<\/code> (link does not drop unless renegotiation occurs).<\/td>\n<td style=\"text-align: left;\">Port resets; link flap occurs while port renegotiates speed\/duplex\/STP.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><strong>Port Description<\/strong><\/td>\n<td style=\"text-align: left;\">Retained intact.<\/td>\n<td style=\"text-align: left;\">Completely deleted.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><strong>VLAN Membership<\/strong><\/td>\n<td style=\"text-align: left;\">Must be explicitly defined (defaults to VLAN 1 if omitted).<\/td>\n<td style=\"text-align: left;\">Reverts to factory default (VLAN 1).<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><strong>Residual Configs (QoS, Port Security, MTU)<\/strong><\/td>\n<td style=\"text-align: left;\">All non-trunk parameters remain active on the interface.<\/td>\n<td style=\"text-align: left;\">All QoS, Storm Control, MTU, and security settings are wiped.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><strong>Reversibility<\/strong><\/td>\n<td style=\"text-align: left;\">Fast: switch back with <code>switchport mode trunk<\/code>.<\/td>\n<td style=\"text-align: left;\">Destructive: requires re-entering all custom port attributes.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><strong>Typical Use Case<\/strong><\/td>\n<td style=\"text-align: left;\">Reallocating a server or switch uplink directly to an office workstation.<\/td>\n<td style=\"text-align: left;\">Decommissioning links, clearing misconfigured ports, or preparing for patch audits.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr>\n<h2><span class=\"ez-toc-section\" id=\"Removing_Specific_VLANs_from_a_Trunk_Without_Disabling_the_Link\"><\/span>Removing Specific VLANs from a Trunk Without Disabling the Link<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In enterprise networks, you often need to stop carrying one or more VLANs across an inter-switch trunk without bringing down the trunk itself.<\/p>\n<blockquote><p><strong>Critical Warning:<\/strong> Never use <code>switchport trunk allowed vlan &lt;vlan-id&gt;<\/code> to remove a VLAN. That command <strong>overwrites<\/strong> the existing allowed list, leaving <em>only<\/em> the specified VLAN allowed and instantly dropping traffic for all other VLANs traversing the link.<\/p><\/blockquote>\n<p>To safely prune one or more VLANs from an active trunk:<\/p>\n<ol>\n<li><strong>Inspect Current Allowed VLANs on the Interface:<\/strong><br \/>\n<code>text<br \/>\nSwitch# show interfaces GigabitEthernet 1\/0\/10 trunk<\/code><br \/>\nCheck the <code>Vlans allowed on trunk<\/code> line in the output (for example: <code>1-50,100,200<\/code>).<\/li>\n<li><strong>Enter Interface Configuration Mode:<\/strong><br \/>\n<code>text<br \/>\nSwitch# configure terminal<br \/>\nSwitch(config)# interface GigabitEthernet 1\/0\/10<\/code><\/li>\n<li><strong>Issue the Remove Parameter:<\/strong><br \/>\nUse the <code>remove<\/code> modifier followed by the specific VLAN ID or range you wish to disallow:<br \/>\n<code>text<br \/>\nSwitch(config-if)# switchport trunk allowed vlan remove 20,30,40-45<\/code><\/li>\n<li><strong>Verify the Revised Allowed List:<\/strong><br \/>\n<code>text<br \/>\nSwitch(config-if)# do show interfaces GigabitEthernet 1\/0\/10 trunk<\/code><br \/>\nConfirm that the pruned VLAN IDs no longer appear under <code>Vlans allowed on trunk<\/code>.<\/li>\n<\/ol>\n<hr>\n<h2><span class=\"ez-toc-section\" id=\"Verifying_Trunk_Removal_and_Inspecting_Interface_State\"><\/span>Verifying Trunk Removal and Inspecting Interface State<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>After modifying or removing trunk configurations, use diagnostic show commands to verify that the port is operating in the intended mode and that no unwanted VLAN encapsulation or DTP frames are active.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"1_Confirm_the_Port_is_Removed_from_Active_Trunks\"><\/span>1. Confirm the Port is Removed from Active Trunks<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Execute the global trunk status command:<\/p>\n<pre><code class=\"language-text\">Switch# show interfaces trunk\n<\/code><\/pre>\n<p>If the trunk configuration was successfully removed or the port was transitioned to static access mode, the interface will <strong>not<\/strong> appear in this output.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"2_Inspect_Administrative_vs_Operational_Switchport_States\"><\/span>2. Inspect Administrative vs. Operational Switchport States<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>To verify that dynamic negotiation is disabled and inspect the current operational state, run:<\/p>\n<pre><code class=\"language-text\">Switch# show interface GigabitEthernet 1\/0\/10 switchport\n<\/code><\/pre>\n<p>Evaluate these critical output fields:<\/p>\n<pre><code class=\"language-text\">Name: Gi1\/0\/10\nSwitchport: Enabled\nAdministrative Mode: static access\nOperational Mode: static access\nAdministrative Trunking Encapsulation: dot1q\nOperational Trunking Encapsulation: native\nNegotiation of Trunking: Off\nAccess Mode VLAN: 20 (Marketing)\nTrunking Native Mode VLAN: 1 (default)\nAdministrative Native VLAN tagging: enabled\nVoice VLAN: none\nTrunking VLANs Enabled: ALL\nPruning VLANs Enabled: 2-1001\n<\/code><\/pre>\n<ul>\n<li><strong>Administrative Mode:<\/strong> Reflects your explicit configuration (<code>static access<\/code>).<\/li>\n<li><strong>Operational Mode:<\/strong> Reflects what the hardware is currently doing (<code>static access<\/code>). If this indicates <code>trunk<\/code> while Administrative Mode shows <code>dynamic auto<\/code>, the neighboring switch is forcing the port into a trunk via DTP.<\/li>\n<li><strong>Negotiation of Trunking:<\/strong> Should read <code>Off<\/code> on standard access ports or ports configured with <code>switchport nonegotiate<\/code>.<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"3_Check_the_Running_Configuration\"><\/span>3. Check the Running Configuration<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Ensure no obsolete trunk lines remain in the interface stanza:<\/p>\n<pre><code class=\"language-text\">Switch# show running-config interface GigabitEthernet 1\/0\/10\n<\/code><\/pre>\n<hr>\n<h2><span class=\"ez-toc-section\" id=\"Ready-to-Use_CLI_Templates_for_Trunk_Port_Decommissioning\"><\/span>Ready-to-Use CLI Templates for Trunk Port Decommissioning<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Use the following CLI snippets for batch administration, port decommissioning, or automated script execution. Replace placeholders enclosed in angle brackets (<code>&lt;INTERFACE&gt;<\/code>, <code>&lt;VLAN_ID&gt;<\/code>) with your environment&#8217;s specific values.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Template_1_Convert_Single_Trunk_Interface_to_Access_Port\"><\/span>Template 1: Convert Single Trunk Interface to Access Port<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<pre><code class=\"language-text\">configure terminal\ninterface &lt;INTERFACE&gt;\n description END_USER_DEVICE\n switchport mode access\n switchport access vlan &lt;VLAN_ID&gt;\n switchport nonegotiate\n no switchport trunk allowed vlan\n no switchport trunk native vlan\n spanning-tree portfast\n spanning-tree bpduguard enable\n no shutdown\nexit\n<\/code><\/pre>\n<h3><span class=\"ez-toc-section\" id=\"Template_2_Convert_Multiple_Interfaces_Batch_Interface_Range\"><\/span>Template 2: Convert Multiple Interfaces (Batch Interface Range)<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<pre><code class=\"language-text\">configure terminal\ninterface range GigabitEthernet 1\/0\/10 - 24\n description USER_ACCESS_PORTS\n switchport mode access\n switchport access vlan &lt;VLAN_ID&gt;\n switchport nonegotiate\n no switchport trunk allowed vlan\n spanning-tree portfast\n no shutdown\nexit\n<\/code><\/pre>\n<h3><span class=\"ez-toc-section\" id=\"Template_3_Complete_Interface_Wipe_and_Decommission\"><\/span>Template 3: Complete Interface Wipe and Decommission<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<pre><code class=\"language-text\">configure terminal\ndefault interface &lt;INTERFACE&gt;\ninterface &lt;INTERFACE&gt;\n description DECOMMISSIONED_PORT\n shutdown\nexit\n<\/code><\/pre>\n<hr>\n<h2><span class=\"ez-toc-section\" id=\"Cisco_Catalyst_Switchport_Command_Reference_and_Operational_Defaults\"><\/span>Cisco Catalyst Switchport Command Reference and Operational Defaults<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The table below provides a formal syntax reference for configuring, modifying, and tearing down trunk interfaces on Cisco Catalyst switches running IOS and IOS-XE platforms.<\/p>\n<pre><code class=\"language-text\">========================================================================================\nCOMMAND SYNTAX                                DEFINITION &amp; BEHAVIOR\n========================================================================================\nswitchport mode access                        Configures the interface as a permanent,\n                                              non-trunking Layer 2 port. Suppresses DTP\n                                              trunk formation frames.\n\nswitchport mode trunk                         Forces the port into permanent 802.1Q \n                                              trunking mode and negotiates with the\n                                              neighbor link if DTP is active.\n\nno switchport mode trunk                      Negates explicit trunk mode; returns the\n                                              port's administrative mode to the system\n                                              default (typically dynamic auto).\n\nswitchport trunk allowed vlan remove &lt;id&gt;     Selectively filters out specific VLANs\n                                              from the 802.1Q header tag list without\n                                              disrupting other active VLANs.\n\nswitchport trunk allowed vlan all             Clears all manual trunk pruning, allowing\n                                              all VLANs (1-4094) across the trunk link.\n\nswitchport nonegotiate                        Disables Dynamic Trunking Protocol (DTP)\n                                              frames. Port will not generate DTP packets\n                                              or respond to trunk negotiation attempts.\n\ndefault interface &lt;interface-id&gt;              Clears all Layer 2, Layer 3, and interface\n                                              parameters. Restores hardware-defined\n                                              operational defaults for that port.\n\nswitchport trunk encapsulation dot1q          Specifies standard IEEE 802.1Q tagging.\n                                              (Required on legacy dual-encapsulation\n                                              Catalyst hardware before setting trunk mode.)\n========================================================================================\n<\/code><\/pre>\n<h3><span class=\"ez-toc-section\" id=\"Platform_Defaults_and_Behavioral_Notes\"><\/span>Platform Defaults and Behavioral Notes<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ul>\n<li><strong>Catalyst 9000 Series (IOS-XE):<\/strong> Encapsulation defaults strictly to standard 802.1Q; the legacy Cisco Inter-Switch Link (ISL) protocol is obsolete, and the <code>switchport trunk encapsulation<\/code> command is deprecated on these models.<\/li>\n<li><strong>DTP Considerations:<\/strong> When changing a trunk port back to an access port, always set <code>switchport mode access<\/code> explicitly. Avoid relying on <code>no switchport mode trunk<\/code>, as the switch may default to <code>switchport mode dynamic auto<\/code>, leaving the interface vulnerable to trunking if an unauthorized switch or attacking device sending DTP frames is attached to the other end.<\/li>\n<\/ul>\n<hr>\n<h2><span class=\"ez-toc-section\" id=\"Summary\"><\/span>Summary<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Removing a trunk port on a Cisco switch comes down to three operational scenarios: changing the port&#8217;s role to an access connection via <code>switchport mode access<\/code>, resetting all port parameters using <code>default interface<\/code>, or selectively pruning VLANs with <code>switchport trunk allowed vlan remove<\/code>. Always verify your changes using <code>show interfaces trunk<\/code> and <code>show interface &lt;id&gt; switchport<\/code> to ensure operational and administrative states match, and save your active configurations with <code>write memory<\/code> or <code>copy running-config startup-config<\/code> once the changes are confirmed.<\/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-remove-trunk-port-in-cisco-switch-command_24197.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+Remove+Trunk+Port+in+Cisco+Switch+Command+https:\/\/cciedump.spoto.net\/blog\/how-to-remove-trunk-port-in-cisco-switch-command_24197.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-remove-trunk-port-in-cisco-switch-command_24197.html\",\"How to Remove Trunk Port in Cisco Switch Command\")' 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>In Cisco Catalyst switches running Cisco IOS or IOS-XE, removing a trunk port can mean three different operational tasks: converting an active trunk into a standard access port for an end-user device, stripping all custom configurations to return an interface to factory defaults, or pruning specific VLANs from an active trunk link without tearing down&#8230; &raquo; <a class=\"read-more-link\" href=\"https:\/\/cciedump.spoto.net\/blog\/how-to-remove-trunk-port-in-cisco-switch-command_24197.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 Remove Trunk Port in Cisco Switch Command - 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-remove-trunk-port-in-cisco-switch-command_24197.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Remove Trunk Port in Cisco Switch Command - SPOTO Official Blog\" \/>\n<meta property=\"og:description\" content=\"In Cisco Catalyst switches running Cisco IOS or IOS-XE, removing a trunk port can mean three different operational tasks: converting an active trunk into a standard access port for an end-user device, stripping all custom configurations to return an interface to factory defaults, or pruning specific VLANs from an active trunk link without tearing down... &raquo; read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cciedump.spoto.net\/blog\/how-to-remove-trunk-port-in-cisco-switch-command_24197.html\" \/>\n<meta property=\"og:site_name\" content=\"SPOTO Official Blog\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-31T07:50:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-10-31T07:50:53+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=\"8 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-remove-trunk-port-in-cisco-switch-command_24197.html#webpage\",\"url\":\"https:\/\/cciedump.spoto.net\/blog\/how-to-remove-trunk-port-in-cisco-switch-command_24197.html\",\"name\":\"How to Remove Trunk Port in Cisco Switch Command - SPOTO Official Blog\",\"isPartOf\":{\"@id\":\"https:\/\/cciedump.spoto.net\/blog\/#website\"},\"datePublished\":\"2026-10-31T07:50:51+00:00\",\"dateModified\":\"2026-10-31T07:50:53+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/cciedump.spoto.net\/blog\/how-to-remove-trunk-port-in-cisco-switch-command_24197.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cciedump.spoto.net\/blog\/how-to-remove-trunk-port-in-cisco-switch-command_24197.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cciedump.spoto.net\/blog\/how-to-remove-trunk-port-in-cisco-switch-command_24197.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cciedump.spoto.net\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Remove Trunk Port in Cisco Switch Command\"}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/cciedump.spoto.net\/blog\/how-to-remove-trunk-port-in-cisco-switch-command_24197.html#article\",\"isPartOf\":{\"@id\":\"https:\/\/cciedump.spoto.net\/blog\/how-to-remove-trunk-port-in-cisco-switch-command_24197.html#webpage\"},\"author\":{\"@id\":\"https:\/\/cciedump.spoto.net\/blog\/#\/schema\/person\/4edd6074d9632c14eda17a2205a88dd1\"},\"headline\":\"How to Remove Trunk Port in Cisco Switch Command\",\"datePublished\":\"2026-10-31T07:50:51+00:00\",\"dateModified\":\"2026-10-31T07:50:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/cciedump.spoto.net\/blog\/how-to-remove-trunk-port-in-cisco-switch-command_24197.html#webpage\"},\"wordCount\":1161,\"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-remove-trunk-port-in-cisco-switch-command_24197.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 Remove Trunk Port in Cisco Switch Command - 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-remove-trunk-port-in-cisco-switch-command_24197.html","og_locale":"en_US","og_type":"article","og_title":"How to Remove Trunk Port in Cisco Switch Command - SPOTO Official Blog","og_description":"In Cisco Catalyst switches running Cisco IOS or IOS-XE, removing a trunk port can mean three different operational tasks: converting an active trunk into a standard access port for an end-user device, stripping all custom configurations to return an interface to factory defaults, or pruning specific VLANs from an active trunk link without tearing down... &raquo; read more","og_url":"https:\/\/cciedump.spoto.net\/blog\/how-to-remove-trunk-port-in-cisco-switch-command_24197.html","og_site_name":"SPOTO Official Blog","article_published_time":"2026-10-31T07:50:51+00:00","article_modified_time":"2026-10-31T07:50:53+00:00","twitter_card":"summary_large_image","twitter_misc":{"Written by":"SPOTO \u7f16\u8f91","Est. reading time":"8 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-remove-trunk-port-in-cisco-switch-command_24197.html#webpage","url":"https:\/\/cciedump.spoto.net\/blog\/how-to-remove-trunk-port-in-cisco-switch-command_24197.html","name":"How to Remove Trunk Port in Cisco Switch Command - SPOTO Official Blog","isPartOf":{"@id":"https:\/\/cciedump.spoto.net\/blog\/#website"},"datePublished":"2026-10-31T07:50:51+00:00","dateModified":"2026-10-31T07:50:53+00:00","breadcrumb":{"@id":"https:\/\/cciedump.spoto.net\/blog\/how-to-remove-trunk-port-in-cisco-switch-command_24197.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cciedump.spoto.net\/blog\/how-to-remove-trunk-port-in-cisco-switch-command_24197.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/cciedump.spoto.net\/blog\/how-to-remove-trunk-port-in-cisco-switch-command_24197.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cciedump.spoto.net\/blog"},{"@type":"ListItem","position":2,"name":"How to Remove Trunk Port in Cisco Switch Command"}]},{"@type":"Article","@id":"https:\/\/cciedump.spoto.net\/blog\/how-to-remove-trunk-port-in-cisco-switch-command_24197.html#article","isPartOf":{"@id":"https:\/\/cciedump.spoto.net\/blog\/how-to-remove-trunk-port-in-cisco-switch-command_24197.html#webpage"},"author":{"@id":"https:\/\/cciedump.spoto.net\/blog\/#\/schema\/person\/4edd6074d9632c14eda17a2205a88dd1"},"headline":"How to Remove Trunk Port in Cisco Switch Command","datePublished":"2026-10-31T07:50:51+00:00","dateModified":"2026-10-31T07:50:53+00:00","mainEntityOfPage":{"@id":"https:\/\/cciedump.spoto.net\/blog\/how-to-remove-trunk-port-in-cisco-switch-command_24197.html#webpage"},"wordCount":1161,"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-remove-trunk-port-in-cisco-switch-command_24197.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\/24197"}],"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=24197"}],"version-history":[{"count":1,"href":"https:\/\/cciedump.spoto.net\/blog\/wp-json\/wp\/v2\/posts\/24197\/revisions"}],"predecessor-version":[{"id":24224,"href":"https:\/\/cciedump.spoto.net\/blog\/wp-json\/wp\/v2\/posts\/24197\/revisions\/24224"}],"wp:attachment":[{"href":"https:\/\/cciedump.spoto.net\/blog\/wp-json\/wp\/v2\/media?parent=24197"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cciedump.spoto.net\/blog\/wp-json\/wp\/v2\/categories?post=24197"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cciedump.spoto.net\/blog\/wp-json\/wp\/v2\/tags?post=24197"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}