0% found this document useful (0 votes)
37 views3 pages

Switch Config

Switch

Uploaded by

laibaahir
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views3 pages

Switch Config

Switch

Uploaded by

laibaahir
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Part 1: Introduction to Switch Configuration

Overview:

Switch configuration involves setting basic settings such as hostname, passwords, and
management interface configuration. This ensures network security and manageability.

Part 2: Configuring the Switch

Steps:

1. Open Cisco Packet Tracer:


o Launch Cisco Packet Tracer from your computer.

2. Add a Switch to the Workspace:


o Click on the "Network Devices" icon.
o Select "Switches" and choose a switch model (e.g., 2960).
o Drag the switch to the workspace.

3. Access the Switch CLI:


o Click on the switch.
o Go to the "CLI" tab to access the Command Line Interface.

4. Enter Privileged EXEC Mode:


o In the CLI, press Enter to start.
o Type enable to enter Privileged EXEC mode.

Switch> enable
Switch#

5. Enter Global Configuration Mode:


o Type configure terminal to enter Global Configuration mode.

Switch# configure terminal


Switch(config)#

6. Set the Hostname:


o Type hostname followed by the desired hostname.

Switch(config)# hostname Switch1


Switch1(config)#

7. Configure Console Access Password:


o Enter the console line configuration mode.

Switch1(config)# line console 0


Switch1(config-line)#
o Set the console password.

Switch1(config-line)# password cisco


Switch1(config-line)# login
Switch1(config-line)# exit

8. Configure VTY Lines Password:


o Enter the VTY line configuration mode.

Switch1(config)# line vty 0 4


Switch1(config-line)#

o Set the VTY password.

Switch1(config-line)# password cisco


Switch1(config-line)# login
Switch1(config-line)# exit

9. Configure Enable Password:


o Set the enable password to protect Privileged EXEC mode.

Switch1(config)# enable password cisco

10. Configure Enable Secret:


o Set the enable secret password for better security (it overrides the enable
password).

Switch1(config)# enable secret class

11. Configure the Management Interface:


o Enter the interface configuration mode for the VLAN 1 interface.

Switch1(config)# interface vlan 1


Switch1(config-if)#

o Assign an IP address and subnet mask.

Switch1(config-if)# ip address 192.168.1.2 255.255.255.0


Switch1(config-if)# no shutdown
Switch1(config-if)# exit

12. Configure Default Gateway:


o Set the default gateway for the switch.

Switch1(config)# ip default-gateway 192.168.1.1

13. Save the Configuration:


o Exit to Privileged EXEC mode.
Switch1(config)# exit
Switch1#

o Save the configuration to NVRAM.

Switch1# write memory


Part 3: Verifying the Configuration

Steps:

1. Check the Hostname:


o Verify the hostname by looking at the CLI prompt.

Switch1#

2. Check the IP Configuration:


o Use the show ip interface brief command to verify IP address configuration.

Switch1# show ip interface brief

3. Check Passwords and Access:


o Log out and log back in to verify console and VTY passwords.

Switch1# exit
Switch1 con0 is now available
Press RETURN to get started.
User Access Verification
Password: cisco

You might also like