Open In App

Basic Switch Configuration in Cisco

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.



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 $

 

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

 

 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.

Article Tags :