{"id":348,"date":"2025-11-15T14:07:27","date_gmt":"2025-11-15T13:07:27","guid":{"rendered":"https:\/\/techbygiusi.com\/?p=348"},"modified":"2025-11-15T14:07:28","modified_gmt":"2025-11-15T13:07:28","slug":"cisco-switch-commands-cheat-sheet","status":"publish","type":"post","link":"https:\/\/techbygiusi.com\/index.php\/command\/cisco-switch-commands-cheat-sheet\/","title":{"rendered":"Cisco Switch Commands Cheat Sheet"},"content":{"rendered":"\n<h6 class=\"wp-block-heading\">Legend<\/h6>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"#Basic-Device-Info-&amp;-Navigation\" data-type=\"internal\" data-id=\"#Basic-Device-Info-&amp;-Navigation\">Basic Device Info &amp; Navigation<\/a><\/li>\n\n\n\n<li><a href=\"#Interface-&amp;-VLAN-Management\" data-type=\"internal\" data-id=\"#Interface-&amp;-VLAN-Management\">Interface &amp; VLAN Management<\/a><\/li>\n\n\n\n<li><a href=\"#Port-Security\" data-type=\"internal\" data-id=\"#Port-Security\">Port Security<\/a><\/li>\n\n\n\n<li><a href=\"#Spanning-Tree\" data-type=\"internal\" data-id=\"#Spanning-Tree\">Spanning Tree<\/a><\/li>\n\n\n\n<li><a href=\"#Quick-Administrative-Shortcuts\" data-type=\"internal\" data-id=\"#Quick-Administrative-Shortcuts\">Quick Administrative Shortcuts<\/a><\/li>\n<\/ul>\n\n\n\n<h6 class=\"wp-block-heading\" id=\"Basic-Device-Info-&amp;-Navigation\">Basic Device Info &amp; Navigation<\/h6>\n\n\n\n<p>Show system information<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>show version<\/code><\/pre>\n\n\n\n<p>Show current configuration<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>show running-config<\/code><\/pre>\n\n\n\n<p>Show saved (startup) configuration<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>show startup-config<\/code><\/pre>\n\n\n\n<p>Enter privileged mode<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>enable<\/code><\/pre>\n\n\n\n<p>Enter configuration mode<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>configure terminal<\/code><\/pre>\n\n\n\n<p>Save configuration<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>write memory<\/code><\/pre>\n\n\n\n<p>oder<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>copy running-config startup-config<\/code><\/pre>\n\n\n\n<h6 class=\"wp-block-heading\" id=\"Interface-&amp;-VLAN-Management\">Interface &amp; VLAN Management<\/h6>\n\n\n\n<p>Show interface status<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>show interfaces status<\/code><\/pre>\n\n\n\n<p>Show detailed interface info<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>show interfaces GigabitEthernet1\/0\/1<\/code><\/pre>\n\n\n\n<p>Configure interface<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>interface GigabitEthernet1\/0\/1\n description Uplink-to-Core\n switchport mode access\n switchport access vlan 20<\/code><\/pre>\n\n\n\n<p>Create VLAN<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vlan 20\n name Servers<\/code><\/pre>\n\n\n\n<p>Show VLANs<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>show vlan brief<\/code><\/pre>\n\n\n\n<p>Assign trunk<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>interface GigabitEthernet1\/0\/1\n switchport mode trunk\n switchport trunk allowed vlan 10,20,30<\/code><\/pre>\n\n\n\n<h6 class=\"wp-block-heading\" id=\"Port-Security\">Port Security<\/h6>\n\n\n\n<p>Enable port security<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>interface GigabitEthernet1\/0\/10\n switchport mode access\n switchport access vlan 30\n switchport port-security\n switchport port-security maximum 2\n switchport port-security violation restrict\n switchport port-security mac-address sticky<\/code><\/pre>\n\n\n\n<p>Show port security<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>show port-security\nshow port-security interface GigabitEthernet1\/0\/10<\/code><\/pre>\n\n\n\n<h6 class=\"wp-block-heading\" id=\"Spanning-Tree\">Spanning Tree<\/h6>\n\n\n\n<p>Show STP summary<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>show spanning-tree summary<\/code><\/pre>\n\n\n\n<p>Show STP per VLAN<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>show spanning-tree vlan 10<\/code><\/pre>\n\n\n\n<p>Set switch as root<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>spanning-tree vlan 10 priority 4096<\/code><\/pre>\n\n\n\n<h6 class=\"wp-block-heading\" id=\"Quick-Administrative-Shortcuts\">Quick Administrative Shortcuts<\/h6>\n\n\n\n<p>Show MAC address table<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>show mac address-table<\/code><\/pre>\n\n\n\n<p>Show ARP<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>show ip arp<\/code><\/pre>\n\n\n\n<p>CDP neighbors<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>show cdp neighbors detail<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Legend Basic Device Info &amp; Navigation Show system information Show current configuration Show saved (startup) configuration Enter privileged mode Enter configuration mode Save configuration oder Interface &amp; VLAN Management Show interface status Show detailed interface info Configure interface Create VLAN Show VLANs Assign trunk Port Security Enable port security Show port security Spanning Tree Show [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[19,12],"class_list":["post-348","post","type-post","status-publish","format-standard","hentry","category-command","tag-commands","tag-linux"],"_links":{"self":[{"href":"https:\/\/techbygiusi.com\/index.php\/wp-json\/wp\/v2\/posts\/348","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techbygiusi.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techbygiusi.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techbygiusi.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techbygiusi.com\/index.php\/wp-json\/wp\/v2\/comments?post=348"}],"version-history":[{"count":1,"href":"https:\/\/techbygiusi.com\/index.php\/wp-json\/wp\/v2\/posts\/348\/revisions"}],"predecessor-version":[{"id":349,"href":"https:\/\/techbygiusi.com\/index.php\/wp-json\/wp\/v2\/posts\/348\/revisions\/349"}],"wp:attachment":[{"href":"https:\/\/techbygiusi.com\/index.php\/wp-json\/wp\/v2\/media?parent=348"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techbygiusi.com\/index.php\/wp-json\/wp\/v2\/categories?post=348"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techbygiusi.com\/index.php\/wp-json\/wp\/v2\/tags?post=348"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}