With the unit powered off, hold the MODE button
Power on unit
Wait about 30 seconds, assuming you have a console cable attached, you'll see in the output
"The password-recovery mechanism is enabled."
When you see that posted (it doesn't have anything to do with your reset process) then you've held the button down long enough.
Let go of the MODE button
You'll be prompted with "SWITCH:"
flash_init
Then enter
delete flash:vlan.datFollowed by
del flash:config.textboot - Set the Clock: Use the following command to set the time and date:
clock set hh:mm:ss MONTH DAY YEAR
- For example, to set the clock to 12:15:30 on May 12, 2024, you would enter:
clock set 12:15:30 May 12 2024
- Set Time Zone (Optional): If you want to set the time zone, use the command:
clock timezone TIMEZONE_NAME OFFSET
- For example, for Eastern Standard Time (EST), you would enter:
clock timezone EST -5
- Configure Daylight Saving Time (Optional): To set daylight saving time, use:
clock summer-time TIMEZONE_NAME START_DATE END_DATE
- For example:
clock summer-time EDT recurring
Enter global configuration mode by typing configure terminal.
Set a hostname for the switch using the command: hostname <your_hostname> Example: hostname Switch1.
Configure a domain name using the command: ip domain-name <your_domain> Example: ip domain-name example.com.
Generate an RSA key pair for encryption by typing: crypto key generate rsa When prompted, specify a key size of 2048 bits or higher for better security.
Enable SSH version 2 for enhanced security by typing: ip ssh version 2.
Create a local user account with a username and password for SSH authentication: username <username> privilege 15 secret <password> Example: username admin privilege 15 secret StrongPassword123.
Configure the VTY lines to allow SSH access and disable Telnet:
- Save the configuration
- Access the Switch: console cable or SSH and enter "enable mode"
enable - Enter Configuration Mode:
configure terminal - Select the VLAN Interface: Specify the VLAN interface you want to configure
interface vlan 1 - Assign the IP Address: IP address and subnet mask
ip address 192.168.0.12 255.255.255.0 - Enable the VLAN Interface: sets VLAN interface to stay active
no shutdown - Exit
exit - Save config
write memory
No comments:
Post a Comment
Feel free to leave a comment! If you have any information that you think should be included, please do so here and I'll get it added in.