Basic Switch Initial Configuration
Configure essential switch settings including hostname, passwords, and remote access for network management.
Step 1: Enter privileged mode and global configuration
|
|
Step 2: Set hostname and domain Configure the switch identity and domain information for proper network identification.
|
|
Step 3: Configure console and enable passwords Set secure passwords for local and privileged access to the switch.
|
|
Step 4: Configure VTY lines for remote access Enable SSH and Telnet access with authentication for remote management.
|
|
Step 5: Create local user account Add a local administrator account for secure remote access.
|
|
Step 6: Configure management VLAN interface Set up an IP address for remote management access.
|
|
Step 7: Generate SSH keys and save configuration Enable secure SSH access and save all configurations to startup-config.
|
|
Step 8: Verify the configuration
|
|
Key Points:
- Always use strong passwords with mixed case, numbers, and symbols
- Enable
logging synchronouson console to prevent command interruption - SSH keys are required for SSH version 2 functionality
- Save configuration to avoid losing settings after reboot
Switch Running and Startup Configuration Management
Manage configuration files between RAM (running-config) and NVRAM (startup-config) for persistent switch settings.
Step 1: View current running configuration Display the active configuration currently loaded in RAM.
|
|
Step 2: View startup configuration Check the configuration that will load on next boot from NVRAM.
|
|
Step 3: Save running config to startup config Copy the active configuration to NVRAM to make changes persistent across reboots.
|
|
Alternative shorter command:
|
|
Step 4: Load startup config to running config Replace current active configuration with the saved startup configuration.
|
|
Step 5: Backup configuration to TFTP server Save configuration files to external server for backup and recovery purposes.
|
|
Step 6: Restore configuration from TFTP server Load a previously saved configuration from external server.
|
|
Step 7: Erase startup configuration Remove the startup configuration file to return to factory defaults on next boot.
|
|
Step 8: Compare configurations View differences between running and startup configurations.
|
|
Step 9: Verify file system and memory usage
|
|
Key Points:
- Running-config is lost on power cycle if not saved to startup-config
- Always verify backup/restore operations completed successfully
- Use
write eraseas shortcut forerase startup-config - Configuration changes take effect immediately in running-config
- TFTP transfers require network connectivity and proper server setup