In this lab, I successfully configured the network switch, including setting a hostname, enabling SSH for secure remote access, assigning a static IP address, and testing network connectivity. I was able to save the configuration to ensure it persists after a reboot. All steps were completed without errors, and the switch is now ready for remote management on the network.
To establish a console connection to the switch and access the Cisco IOS command-line interface. I connected the switch and the PC together with a console cable. I then went into PuTTY and set the serial connection to the appropriate COM port. Once in PuTTY I used the command show ip interface brief to check the current IP configuration of the switch.
To set a unique hostname for the switch you enter these commands
Enable
Conf t
Hostname abby
To enable SSH use these commands
Ip domain-name abby.com
Crypto key generate rsa
Username admin secret pass123
Line vty 0 4
Login local
Transport input ssh
Assign static IP
Interface vlan1
Ip address 192.168.1.1 255.255.255.0
No shutdown
Try pinging from pc
Ping 192.168.1.1