1.
Enable Passwords
enable
configure terminal
enable password Habtamu
enable secret habtu
#
2. Console Password
enable
configure terminal
line console 0
password Habtamu
login
exit
#
3. Telnet
enable
configure terminal
line vty 0 15
password telnet
login
#
3.2 Assign an ip address
enable
configure terminal
interface gigabitEthernet0/0
ip address 192.168.7.1 255.255.255.0
no shutdown
end
#
write
4. Auxiliary Password
line aux 0
password aux
login
#
============================================
5. Setting Up Secure Shell (SSH)
Step 1. Set your hostname
enable
configure terminal
hostname Habtamu
exit
#
Step 2. Set the domain name—both the hostname and domain name are required for the
encryption keys to be generated:
ip domain-name habtu.com
#
Step 3. Set the username to allow SSH client access
username Habtamu password ssh
username ABC secret newpassword
#
Step 4. Generate the encryption keys for securing the session
crypto key generate rsa
#
Step 5. Enable SSH version 2 on the device—not mandatory, but strongly suggested
ip ssh version 2
#
Step 6. Connect to the VTY lines of the switch or router
line vty 0 15
#
Step 7. Tell the lines to use the local database for password
login local
#
Step 8. Configure your access protocols
transport input all
#
Step 9. Verify
show running-config
#
Configure IP Address on a Switch
SW1(config)# interface vlan 1
SW1(config-if)# ip address 192.168.1.10 255.255.255.0
SW1(config-if)# no shutdow
#
Basic Verification Commands
show running-config
show version
show ip interface brief
show users
show line
enable
configure terminal
vlan 10
name Ten
end
#