Skip to content
Related Articles

Related Articles

Basic Switch Configuration in Cisco

View Discussion
Improve Article
Save Article
  • Last Updated : 22 Jun, 2022
View Discussion
Improve Article
Save Article

The switch is a network device that is used to segment the networks into different subnetworks called subnets or LAN segments. It is responsible for filtering and forwarding the packets between LAN segments based on the MAC address. 

In this article, we will see the switch configuration in the Cisco packet tracer.

Steps to Configure the Switch: 

Step 1. Open the packet tracer desktop and take a switch (PT-Switch) from the devices.

 

Step 2: Configure the Host name of the swicth0.

  • Click on switch0 and go to Command Line Interface.
  • Then change the hostname to “sh”

Command: 

switch>
switch>en
switch#conf t
switch(config)#hostname sh
sh(config)exit

Step 3: Set a message of the day (MOTD) banner for the users.

Command:

sh(config)#banner motd $
  • Then, enter MOTD and end it with ‘$’ to exit.

 

Step 4: Set up line control password and enable secret password.

To configure the Line Control password and Enable secret follow the below commands:

sh#conf t
sh(config)#
sh(config)#line con 0
sh(config-line)#password GFG123
sh(config-line)#login
sh(config-line)#exit
sh(config)#enable secret GFG@123
sh(config)#exit

 

Step 5: Verify the password

  • When you try to log in first, it will ask for the line control password.
  • Then, to configure the terminal it will ask to enable a secret password.

 

 To save the configuration use the below command:

Command:

sh#copy run startup-config

For more detail on Switch please refer What is a network switch, and how does it work? article.

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!