Tasks:
Power on devices and then configure the devices as follows:
1) Configure IP addresses as shown in the diagram
2) Ensure routers can ping each other
3) Configure an enable password of "cisco"
4) Encrypt the enabled password
5) Configure a secret password of "cisco123"
6) Configure the first 5 telnet lines and use a line password of cisco on them
7) Make sure you can telnet from one device to the other
8) Configure a console password of "cisco" and test
Download Solved Lab
Solution:
Prerequisites
Power
on both devices by physically pressing the power button at the back of the device
We will rename the hostnames of the Routers so that we can distinguish between these
Router>
Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname Router1
Router1(config)#
Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname Router1
Router1(config)#
Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname Router2
Router2(config)#
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname Router2
Router2(config)#
Step 1: Configure IP Addresses
Execute the following commands at Router 1Router1(config)#interface gigabitEthernet 0/0/0
Router1(config-if)#ip address 10.1.1.1 255.255.255.0
Router1(config-if)#no shutdown
Router1(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0/0, changed state to up
Router1(config-if)#exit
Router1(config)#
Router1(config-if)#ip address 10.1.1.1 255.255.255.0
Router1(config-if)#no shutdown
Router1(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0/0, changed state to up
Router1(config-if)#exit
Router1(config)#
Execute the same commands at Router 2
Router2(config)#interface gigabit 0/0/0
Router2(config-if)#ip address 10.1.1.2 255.255.255.0
Router2(config-if)#no shutdown
Router2(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0/0, changed state to up
Router2(config-if)#exit
Router2(config)#
Router2(config-if)#ip address 10.1.1.2 255.255.255.0
Router2(config-if)#no shutdown
Router2(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0/0, changed state to up
Router2(config-if)#exit
Router2(config)#
Step 2: Ensure Routers can ping each other
Router1#ping 10.1.1.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.1.2, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 0/0/0 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.1.2, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 0/0/0 ms
Router2#ping 10.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/0 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/0 ms
Step 3: Configure an enable password of "cisco"
Router1#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router1(config)#
Router1(config)#enable password cisco
Router1(config)#exit
Router1#
Enter configuration commands, one per line. End with CNTL/Z.
Router1(config)#
Router1(config)#enable password cisco
Router1(config)#exit
Router1#
Router2#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router2(config)#
Router2(config)#enable password cisco
Router2(config)#exit
Router2#
%SYS-5-CONFIG_I: Configured from console by console
Router2#
Enter configuration commands, one per line. End with CNTL/Z.
Router2(config)#
Router2(config)#enable password cisco
Router2(config)#exit
Router2#
%SYS-5-CONFIG_I: Configured from console by console
Router2#
Step 4: Encrypt the Enable Password
Router1#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router1(config)#service password-encryption
Router1(config)#exit
Router2#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router2(config)#service password-encryption
Router2(config)#exit
Enter configuration commands, one per line. End with CNTL/Z.
Router2(config)#service password-encryption
Router2(config)#exit
Step 5: Configure a secret password of "cisco123"
We don’t need to encrypt the secret password. It is already encrypted with an MD5 hash as compared to enable password. Secondly, the secret password overrides enable password, which means that when the secret password is configured the enable password won’t work.Router1(config)#enable secret cisco123
Router1(config)#exit
Router1(config)#exit
Router1(config)#enable secret cisco123
Router1(config)#exit
Router1(config)#exit
Step 6: Configure the first 5 telnet lines and use a line password of cisco on them
Router1#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router1(config)#
Router1(config)#line vty 0 4
Router1(config-line)#login
% Login disabled on line 2, until 'password' is set
% Login disabled on line 3, until 'password' is set
% Login disabled on line 4, until 'password' is set
% Login disabled on line 5, until 'password' is set
% Login disabled on line 6, until 'password' is set
Router1(config-line)#password cisco
Router1(config-line)#
Enter configuration commands, one per line. End with CNTL/Z.
Router1(config)#
Router1(config)#line vty 0 4
Router1(config-line)#login
% Login disabled on line 2, until 'password' is set
% Login disabled on line 3, until 'password' is set
% Login disabled on line 4, until 'password' is set
% Login disabled on line 5, until 'password' is set
% Login disabled on line 6, until 'password' is set
Router1(config-line)#password cisco
Router1(config-line)#
Router2#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router2(config)#line vty 0 4
Router2(config-line)#login
% Login disabled on line 2, until 'password' is set
% Login disabled on line 3, until 'password' is set
% Login disabled on line 4, until 'password' is set
% Login disabled on line 5, until 'password' is set
% Login disabled on line 6, until 'password' is set
Router2(config-line)#password cisco
Router2(config-line)#end
Router2#
%SYS-5-CONFIG_I: Configured from console by console
Enter configuration commands, one per line. End with CNTL/Z.
Router2(config)#line vty 0 4
Router2(config-line)#login
% Login disabled on line 2, until 'password' is set
% Login disabled on line 3, until 'password' is set
% Login disabled on line 4, until 'password' is set
% Login disabled on line 5, until 'password' is set
% Login disabled on line 6, until 'password' is set
Router2(config-line)#password cisco
Router2(config-line)#end
Router2#
%SYS-5-CONFIG_I: Configured from console by console
Step 7: Make sure you can telnet from one device to the other
Router1#telnet 10.1.1.2
Trying 10.1.1.2 ...Open
User Access Verification
Password:
Router2>
Trying 10.1.1.2 ...Open
User Access Verification
Password:
Router2>
Router2#telnet 10.1.1.1
Trying 10.1.1.1 ...Open
User Access Verification
Password:
Router1>
Trying 10.1.1.1 ...Open
User Access Verification
Password:
Router1>
Step 8: Configure a console password of "cisco" and test
Router1#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router1(config)#line console 0
Router1(config-line)#login
% Login disabled on line 0, until 'password' is set
Router1(config-line)#password cisco
Router1(config-line)#end
Enter configuration commands, one per line. End with CNTL/Z.
Router1(config)#line console 0
Router1(config-line)#login
% Login disabled on line 0, until 'password' is set
Router1(config-line)#password cisco
Router1(config-line)#end
Router2#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router2(config)#line console 0
Router2(config-line)#login
% Login disabled on line 0, until 'password' is set
Router2(config-line)#password cisco
Router2(config-line)#end
Router2#
%SYS-5-CONFIG_I: Configured from console by console
Router2#
Enter configuration commands, one per line. End with CNTL/Z.
Router2(config)#line console 0
Router2(config-line)#login
% Login disabled on line 0, until 'password' is set
Router2(config-line)#password cisco
Router2(config-line)#end
Router2#
%SYS-5-CONFIG_I: Configured from console by console
Router2#
We need to save configurations so that configurations are effective even if the routers are restarted
Router1#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Router1#
Destination filename [startup-config]?
Building configuration...
[OK]
Router1#
Router2#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Router2#
Destination filename [startup-config]?
Building configuration...
[OK]
Router2#