Class Lab 4 1: Console to Cisco Multi Layer Switch - Oliver-Mustoe/Oliver-Mustoe-Tech-Journal GitHub Wiki
In this lab, we worked on getting access to a console on a Cisco Multi-Layer switch.
NOTE: I was not present in class when this lab was done
First I would have plugged the serial console cable, blue, into the USB port on the workstations.
Then in device manager, I could look in the "Ports (COM & LPT)" section to see the COM where the USB serial Port is attached to.
I would have then connected the cable to the console port on the switch, powered it on, and then gone back to my workstation.
On my PuTTY, workstation, I would have setup a Serial connection (look on the left in "Category") with the following parameters:
- Serial Line to Connect: <COM PORT FROM "Ports (COM & LPT)">
- Bits per sec : 9600
- Data bits : 8
- Parity : none
- Stop bits : 1
- Flow control : none
Then I would have gone back to "Session", category, and changed the "Serial line" to the same from "Ports (COM & LPT)" (could also save this session for future use). Then I would have clicked open to gain access.
In the console, I would enter privileged, enable, config, conf t, and use the following command to erase the NVRAM file system and remove all files (confirm at prompt):
write erase
Then I would have used the following command, with no at the prompt, to save the config:
reload
After confirming to reload the switch, I would reject the prompted setup setup wizard.
After reload, I would re-enter privileged mode and use the command show run to review default configuration. I would then use the following command to reset the hostname of the switch:
hostname <ENTER_NAME_HERE>
The following details some parts of the alternative that I did instead of the one above. As the in-class lab was originally meant for my Github, I have just added notes for the alternative!
- Turn on router ports (may not be by default)
- How to change password (config mode)
-
- 1.
enable2.configure terminal3.enable secret <PASSWORD>4.end
- 1.
- Change banner (config mode)
-
banner motd $
-
-
- The “$” is how the command will know the motd is done
-
- The enable secret command uses the MD5 hashing function to encrypt the password, which is a very secure method of protection.
- "
exec-timeout [minutes] [seconds]” for timeout - Configure console line with "
line con <BEGINNING LINE> <LAST LINE>" - Configure console line with "
line vty <BEGINNING LINE> <LAST LINE>" - Password command is “
password <PASSWORD>”, follow that with “login” to enable login - Synchronous logging command is “
logging synchronous” - Set history with “
history size <AMOUNT>” - “
service password-encryption” command for global password configuration
- https://www.cisco.com/c/en/us/support/docs/smb/switches/cisco-350-series-managed-switches/smb5557-configure-the-internet-protocol-ip-address-settings-on-a-swi.html
- https://www.cisco.com/c/en/us/td/docs/routers/nfvis/switch_command/b-nfvis-switch-command-reference/ip_addressing_commands.pdf
- https://www.ciscopress.com/articles/article.asp?p=27650&seqNum=4
- https://community.cisco.com/t5/switching/2811-static-routing-setup/td-p/3080730
- https://www.cisco.com/E-Learning/bulk/public/tac/cim/cib/using_cisco_ios_software/cmdrefs/banner_motd.htm
- https://study-ccna.com/configuring-cisco-banner-motd-login-exec/
- https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3850/software/release/3se/security/configuration_guide/b_sec_3se_3850_cg/b_sec_3se_3850_cg_chapter_011.pdf
- https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst2960cx_3650cx/software/release/15-2_7_e/configuration_guide/b_1527e_consolidated_3560cx_2960cx_cg/m_sec_passpr_cg.pdf
- https://www.netadmintools.com/how-to-configure-cisco-switches/#wbounce-modal
- https://www.cisco.com/c/en/us/td/docs/switches/lan/cisco_ie3010/software/release/12-2_53_ez/configuration/guide/ie3010scg/swcli.html#wp1021783
- https://www.cisco.com/c/en/us/support/docs/smb/switches/cisco-250-series-smart-switches/smb5816-configure-idle-session-timeout-settings-on-a-switch-through.html
- https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3560/software/release/12-2_52_se/configuration/guide/3560scg/swlog.html?dtid=osscdc000283
- https://study-ccna.com/exec-timeout-command/#:~:text=By%20default%2C%20an%20IOS%20device,MINUTES%20SECONDS%20line%20mode%20command.&text=To%20disable%20the%20timeout%2C%20use,recommended%20in%20production%20environments!)