Share this
5 Basic Cisco Switch Commands You Need to Know
by PivIT Global on Oct 11, 2022 10:00:00 AM
Have you recently tried configuring a Cisco switch, only to realize you've forgotten the commands? You're not alone; we all need a refresher once in a while -- so, here's your refresher course.
Whether you are brand new to Cisco networking or a veteran with decades of experience, it's usually smart to memorize these fundamental Cisco switch commands. For this discussion, we'll be using PuTTY!
Download the guide and refer back to it at any time!
If you're needing to extend the life of your Cisco 3850s while waiting for your Catalyst 9200, 9300, 9400, or 9500 Series switches to arrive, PivIT supports these switches on our OneCall third-party maintenance offering.
Watch the video below for more details:
As you know, the switch is the heart of your network. It links all other equipment and gathers important information about your network traffic.
Whether installing a brand new switch or simply reorganizing your network, the first step is connecting your device to the switch's console port.
Then, we'll move to the configuration of the switch. The initial configuration allows the switch to recognize the new devices that are attached.
Not the configuration guide you're looking for? View some of our others:
- Configuration Guide: Routing Between VLANs
- A Quick Guide to EIGRP Configuration with Stub Routing
- Configuration Guide: STP Extension in Cisco NX-OS
Basic Cisco Switch Commands in Five Tasks
All you need to know to learn or refresh your knowledge of the basic commands for Cisco switches can be broken down into these five tasks:
- Task 1: How To Access a Switch
- Task 2: How To Set Up a Switch To Enable Passwords
- Task 3: How To Set Up a Cisco Switch Host Name
- Task 4: How To Configure the MOTD Banner in Your Switch
- Task 5: How To Configure Telnet on Your Cisco Switch
Task 1: How To Access a Switch
We can access the switch using different software. Most PuTTY and secure CRTs are used to access the switch through a console cable. This physical connection is shown below.
Let's configure the switch:
- Download PuTTY.
- Connect the console cable to your Cisco router or switch.
- Run the downloaded
putty.exe
file. - Using the PuTTY navigation, expand "Connection" then select "Serial."
- Enter the port number inside the "Serial line to connect to" text box. The port number is COM4 in the sample below, but the port number may be different for your connection. Correctly identifying the port is crucial for proper configuration.
- Next, we'll configure the serial line. For this example, we've used the values below:
- Bits per sec: 9600
- Data bits: 8
- Stop bits: 1
- Parity: None
- Flow control: XON/XOFF
- Press "Open," and the command line will appear where you can configure your switch.
Task 2: How To Set Up a Switch To Enable Passwords
You'll want to set up a switch password for added security. Be sure to know the Cisco basic configurations before moving towards advanced configurations. You can configure a secure password, as shown in the image below.
Task 3: How To Set Up a Cisco Switch Host Name
You can easily configure your Cisco switch's hostname to identify the switch location. The picture below shows how one can configure each switch's hostname.
You'll need this option if your network has multiple switches installed and it is difficult to remember all of the switches. You can configure a hostname to remember its location. Configuration is given below:
__________________
As part of PivIT's EXTEND, we offer a secure, isolated, and remote environment to pre-configure your network, compute, and storage hardware before deployment to your locations worldwide using our out-of-band (OOB) management platform. Find out more about how our Remote Staging Environment works.
__________________
Task 4: How To Configure the MOTD Banner in Your Switch
Users will be presented with a MOTD (Message of the Day) banner every time they attempt a connection via the console port, auxiliary port, SSH, or a telnet session to the Cisco switch. Use the commands below to configure your MOTD message.
Notice the # character is before and after the message. We mostly used this banner for security purposes so that if anyone mistakenly accesses this switch, we can convey a legal message to them.
Task 5: How To Configure Telnet on Your Cisco Switch
In this task, we configure telnet services on a switch to access it from anywhere remotely. This configuration is similar to how you would configure telnet on routers. Telnet allows you to configure, monitor, and manage your switch from remote locations.
To use this feature, you have to configure and enable passwords for telnet configurations. Below are the configurations.
Additional Resources To Keep Your Network Running
Need to implement these Cisco switch commands on an actual unit? Explore your switch options here at PivIT. Click below to learn more about the switch solutions we can bring to your network, whether it be the hardware itself, maintenance, or the field services you need to get online.
We created the Tech Corner to connect with you on product discussions, configurations, and product comparisons, and provide you with information about the industry! Subscribe to the Tech Corner today! Leave a comment, question, or concern below.
Share this
- Configuration Guides (47)
- Cisco Routers (29)
- Switches (27)
- Network Security (23)
- Cisco Switches (21)
- Routing Protocols (21)
- Routers (20)
- Cisco (19)
- Product Comparisons (19)
- Firewall (18)
- Cisco Security (17)
- Cisco Technical Information (17)
- IT Hardware Solutions (17)
- Network Protocols (17)
- Wireless (17)
- Security (15)
- OneCall (13)
- Servers (12)
- cisco asa (12)
- Cisco Wireless (11)
- Router Protocols (11)
- Cisco Catalyst (9)
- Cisco UCS (9)
- Upgrading Network (9)
- Cisco Servers (8)
- Product Highlight (8)
- Access Control Lists (7)
- Fortinet (7)
- Server Comparisons (7)
- Access Points (6)
- Arista Networks (6)
- OSPF (6)
- Wireless APs (6)
- Cisco ASR (5)
- Cloud Solutions (5)
- HPE-Aruba Wireless (5)
- Juniper Mist (5)
- Network Management (5)
- SD-WAN (5)
- Storage (5)
- Switch Comparison (5)
- Back To Basics (4)
- Cybersecurity (4)
- EIGRP (4)
- Firewall Architecture (4)
- HSRP (4)
- Juniper Networks (4)
- Network Automation (4)
- Network Servers (4)
- OEM Comparison (4)
- Aruba Central (3)
- Cisco Telephony (3)
- DHCP (3)
- DHCP Snooping (3)
- Dell EMC PowerEdge (3)
- Internet (3)
- Maintenance (3)
- Maintenance Renewal (3)
- Network Accessories (3)
- TPM (3)
- Telephony (3)
- aruba (3)
- Cisco NX-OS (2)
- Cisco Nexus (2)
- Dell Servers (2)
- Fortinet NGFWs (2)
- IT Trends (2)
- LAN Networks (2)
- Network Time Protocol (2)
- Palo Alto NGFWs (2)
- Rapid PVST+ (2)
- Remote Configuration (2)
- Software Defined Networking (2)
- WLAN (2)
- Ways to Save (2)
- fortigate (2)
- Asset Management (1)
- CPU Usage (1)
- Cisco AIR-CT (1)
- Cisco Aironet (1)
- Cisco DNA (1)
- Cisco ISR (1)
- Cisco Supervisor Engines (1)
- Cisco UCS Manager (1)
- Cognitive Campus (1)
- Cost of Downtime (1)
- Dell EMC Data Domain (1)
- Edge Switches (1)
- Fabric Extenders (1)
- GRE Tunnel (1)
- HPE BL (1)
- Juniper SRX (1)
- Nexus Switches (1)
- Nutanix (1)
- Optics (1)
- PowerEdge R740xd (1)
- STP Extension (1)
- Sparing Integrity Program (1)
- Switched Virtual Interface (1)
- TCP (1)
- UCS Fabric Interconnects (1)
- hyperconverge (1)
- April 2024 (2)
- March 2024 (1)
- February 2024 (2)
- January 2024 (1)
- December 2023 (1)
- November 2023 (2)
- October 2023 (1)
- September 2023 (3)
- August 2023 (5)
- July 2023 (2)
- June 2023 (4)
- May 2023 (5)
- April 2023 (8)
- March 2023 (7)
- February 2023 (5)
- January 2023 (2)
- December 2022 (3)
- November 2022 (3)
- October 2022 (8)
- September 2022 (9)
- August 2022 (9)
- July 2022 (8)
- June 2022 (9)
- May 2022 (5)
- April 2022 (3)
- March 2022 (1)
- February 2022 (2)
- November 2021 (2)
- October 2021 (1)
- September 2021 (2)
- August 2021 (2)
- July 2021 (3)
- June 2021 (2)
- May 2021 (4)
- April 2021 (4)
- March 2021 (2)
- February 2021 (1)
- January 2021 (2)
- December 2020 (2)
- November 2020 (2)
- October 2020 (2)
- September 2020 (2)
- August 2020 (4)
- July 2020 (5)
- June 2020 (4)
- May 2020 (6)
- April 2020 (2)
- March 2020 (1)
- February 2020 (2)
- January 2020 (2)
- December 2019 (1)
- May 2019 (2)
- April 2019 (5)
- February 2019 (1)
- January 2019 (3)
- December 2018 (1)
Comments (6)