Lab 6 Goal
● Configure the same password for all switch access: console, vty, enable
Lab Requirements
● Switch configured with Lab 2 configuration
● PC configured with
IP address 192.168.1.2 255.255.255.0
● Cisco rollover (console) cable
● Ethernet cable
Yes, hedgelings, it's time to clean up the configuration. It is easier use a single password for all access: console, vty, and enable secret. It is important to remember, however, that these are distinct and different passwords, even if you use the same value like we are going to do. This change is just to make access easier.
Connect PC1 to labsw1 using an Ethernet cable and/or the console cable. An Ethernet connection is preferred for all configured devices. Access labsw1 using the telnet command from PC1.
1. PC> telnet 192.168.1.75
Trying 192.168.1.75 ...
User Access Verification
Password: [pass1]
2. labsw1> enable
Password: [pass5]
3. labsw1# configure terminal
4. labsw1(config)# enable secret cisco (or some other password easy for you to remember)
5. labsw1(config)#line cons 0
6. labsw1(config-line)#password cisco
7. labsw1(config-line)#login
8. labsw1(config-line)#line vty 0 15
9. labsw1(config-line)#password cisco
10. labsw1(config-line)#login
11. labsw1(config-line)#Crtl Z
12. labsw1# copy run start
Verify your changes:
13. labsw1# show running-config
Building configuration...
Current configuration : 1030 bytes
!
version 12.1
no service password-encryption
!
hostname labsw1
!
enable secret 5 $1$mERr$hx5rVt7rPNoS4wqbXKX7m0
enable password pass1
!
ip name-server 192.168.1.3
!
!
interface FastEthernet0/1
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface Vlan1
ip address 192.168.1.75 255.255.255.0
!
line con 0
password cisco
login
!
line vty 0 4
password cisco
login
line vty 5 15
password cisco
login
!
!
end
14. labsw1# exit
Test all connectivity: telnet and console to verify the changes. The password for all connections is now "cisco", or whatever password you chose for your lab.