0% found this document useful (0 votes)
23 views9 pages

08 Lab Configure EIGRP

Lab

Uploaded by

eye.shop.sa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views9 pages

08 Lab Configure EIGRP

Lab

Uploaded by

eye.shop.sa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Lab: Configure EIGRP

Topology

Objective: Configure EIGRP

Steps:
Configure “R1” Router

1. Set host name on the Router to "R1“

Router#

Router#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#host R1

R1 (config)#
2. Set password on enable mode to be "cisco“

R1 (config)#enable secret cisco

3. Configure the DNS domain.

R1 (config)#ip domain-name cisco.com

4. Generate SSH key, that will be using for encryption

R1 (config)#crypto key generate rsa modulus 2048

The name for the keys will be: R1.cisco.com

% The key modulus size is 2048 bits

% Generating 2048 bit RSA keys, keys will be non-exportable...

[OK] (elapsed time was 2 seconds)

R1 (config)#

*Jun 6 02:04:46.626: %SSH-5-ENABLED: SSH 1.99 has been enabled

R1 (config)#

5. Assign 10.0.0.1 255.255.255.252 to GigabitEthernet0/0

R1 (config)#int g0/0

R1 (config-if)#ip add 10.0.0.1 255.255.255.252

6. Activate interface GigabitEthernet0/0

R1 (config-if)#no shut

R1 (config-if)#

*Jun 6 02:07:31.901: %LINK-3-UPDOWN: Interface GigabitEthernet0/0, changed state to up

*Jun 6 02:07:32.902: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed


state to up

R1 (config-if)#

7. Assign 192.168.1.1 255.255.255.0 to GigabitEthernet0/1

R1 (config)#int g0/1
R1 (config-if)#ip add 192.168.1.1 255.255.255.0

8. Activate interface GigabitEthernet0/1

R1 (config-if)#no shut

R1 (config-if)#

*Jun 6 02:07:31.901: %LINK-3-UPDOWN: Interface GigabitEthernet0/0, changed state to up

*Jun 6 02:07:32.902: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed


state to up

R1 (config-if)#

9. Exit interface configuration mode

R1 (config-if)#exit

R1 (config)#

10. Create user "admin" with password "cisco" with privilege 15 (full)

R1 (config)#username admin pri 15 pass cisco

R1 (config)#

11. Set login password on console line to be "cisco“

R1 (config)#line cons 0

R1 (config-line)#pass cisco

R1 (config-line)#login

R1 (config-line)#

12. Set login local on vty line to be "cisco“

R1 (config-line)#line vty 0 4

R1 (config-line)#login local

R1 (config-line)#

13. Enable SSH on vty line

R1 (config-line)#trans input ssh


R1 (config-line)#

14. Exit line configuration mode

R1 (config-line)#exit

15. Configure EIGRP

Advertise all network on the router

R1(config)#router eigrp 100

R1(config-router)#network 10.0.0.0 0.0.0.3

R1(config-router)#network 192.168.1.0 0.0.0.255

R1(config-router)#exit

16. Save configuration

R1 (config)#exit

R1#

*Jun 6 02:10:58.468: %SYS-5-CONFIG_I: Configured from console by console

R1#

R1#copy run start

Destination filename [startup-config]?

Building configuration...

Compressed configuration from 3726 bytes to 1722 bytes[OK]

R1#

*Jun 6 00:59:17.841: %GRUB-5-CONFIG_WRITING: GRUB configuration is being updated on disk.


Please wait...

*Jun 6 00:59:18.570: %GRUB-5-CONFIG_WRITTEN: GRUB configuration was written to disk


successfully.

R1#

Configure “R2” Router

1. Set host name on the Router to "R2“


Router#

Router#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#host R2

R2 (config)#

2. Set password on enable mode to be "cisco“

R2 (config)#enable secret cisco

3. Configure the DNS domain.

R2 (config)#ip domain-name cisco.com

4. Generate SSH key, that will be using for encryption

R2 (config)#crypto key generate rsa modulus 2048

The name for the keys will be: R2.cisco.com

% The key modulus size is 2048 bits

% Generating 2048 bit RSA keys, keys will be non-exportable...

[OK] (elapsed time was 2 seconds)

R2 (config)#

*Jun 6 02:04:46.626: %SSH-5-ENABLED: SSH 1.99 has been enabled

R2 (config)#

5. Assign 10.0.0.2 255.255.255.252 to GigabitEthernet0/0

R2 (config)#int g0/0

R2 (config-if)#ip add 10.0.0.2 255.255.255.252

6. Activate interface GigabitEthernet0/0

R2 (config-if)#no shut

R2 (config-if)#
*Jun 6 02:07:31.901: %LINK-3-UPDOWN: Interface GigabitEthernet0/0, changed state to up

*Jun 6 02:07:32.902: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed


state to up

R2 (config-if)#

7. Assign 192.168.2.1 255.255.255.0 to GigabitEthernet0/1

R2 (config)#int g0/1

R2 (config-if)#ip add 192.168.2.1 255.255.255.0

8. Activate interface GigabitEthernet0/1

R2 (config-if)#no shut

R2 (config-if)#

*Jun 6 02:07:31.901: %LINK-3-UPDOWN: Interface GigabitEthernet0/0, changed state to up

*Jun 6 02:07:32.902: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed


state to up

R2 (config-if)#

9. Exit interface configuration mode

R2 (config-if)#exit

R2 (config)#

10. Create user "admin" with password "cisco" with privilege 15 (full)

R2 (config)#username admin pri 15 pass cisco

R2 (config)#

11. Set login password on console line to be "cisco“

R2 (config)#line cons 0

R2 (config-line)#pass cisco

R2 (config-line)#login

R2 (config-line)#

12. Set login local on vty line to be "cisco“


R2 (config-line)#line vty 0 4

R2 (config-line)#login local

R2 (config-line)#

13. Enable SSH on vty line

R2(config-line)#trans input ssh

R2 (config-line)#

14. Exit line configuration mode

R2 (config-line)#exit

15. Configure EIGRP

Advertise all network on the router

R2(config)#router eigrp 100

R2(config-router)#network 10.0.0.0 0.0.0.3

R2(config-router)#network 192.168.2.0 0.0.0.255

R2(config-router)#exit

16. Save configuration

R2 (config)#exit

R2#

*Jun 6 02:10:58.468: %SYS-5-CONFIG_I: Configured from console by console

R2#

R2#copy run start

Destination filename [startup-config]?

Building configuration...

Compressed configuration from 3726 bytes to 1722 bytes[OK]

R2#

*Jun 6 00:59:17.841: %GRUB-5-CONFIG_WRITING: GRUB configuration is being updated on disk.


Please wait...

*Jun 6 00:59:18.570: %GRUB-5-CONFIG_WRITTEN: GRUB configuration was written to disk


successfully.

R2#
Configure PC1:

IP: 192.168.1.10 - Subnet Mask: 255.255.255.0 - Gateway: 192.168.1.1

root@PC1:~# ifconfig eth0 192.168.1.10 netmask 255.255.255.0

root@PC1:~# route add default gw 192.168.1.1

root@PC1:~#

Configure PC2:

IP: 192.168.2.10 - Subnet Mask: 255.255.255.0 - Gateway: 192.168.2.1

root@PC2:~# ifconfig eth0 192.168.2.10 netmask 255.255.255.0

root@PC2:~# route add default gw 192.168.2.1

root@PC2:~#

Verifying EIGRP configuration

R1 Router

Check if routing table is containing information about networks that are not connected to the router. This
information brought by EIGRP and begins with letter “D”

R1#sh ip route

C 10.0.0.0/30 is directly connected, GigabitEthernet0/0

L 10.0.0.1/32 is directly connected, GigabitEthernet0/0

192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks

C 192.168.1.0/24 is directly connected, GigabitEthernet0/1

L 192.168.1.1/32 is directly connected, GigabitEthernet0/1

D 192.168.2.0/24 [90/3072] via 10.0.0.2, 00:01:08, GigabitEthernet0/0


R1#

R2 Router

Check if routing table is containing information about networks that are not connected to the router. This
information brought by EIGRP and begins with letter “D”
R2#sh ip route

C 10.0.0.0/30 is directly connected, GigabitEthernet0/0

L 10.0.0.2/32 is directly connected, GigabitEthernet0/0

D 192.168.1.0/24 [90/3072] via 10.0.0.1, 00:02:25, GigabitEthernet0/0


192.168.2.0/24 is variably subnetted, 2 subnets, 2 masks

C 192.168.2.0/24 is directly connected, GigabitEthernet0/1

L 192.168.2.1/32 is directly connected, GigabitEthernet0/1

R2#

PC1:

ping PC2

root@PC1:~# ping 192.168.2.10

what is the result of ping? success or fail?

You might also like