cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
726
Views
0
Helpful
10
Replies

Understanding Packet Route

Yoram10222621
Level 1
Level 1

Yoram10222621_0-1674472225713.png

Hi I am a new student picking up a networking course in school. My task is to set up HSRP between R1 and R2, where R1 will be the primary router. I will verify that HSRP works by removing the connection between R1 and the switch below it (DLS1) and R2 should take over. However, despite configuring HSRP and using Laptop1 to ping, it does not work.

I noticed that when I ping interface S0/0/1 on R2, the ping goes to G0/1 on R1 then S0/0/0 on R3 then S0/0/1 on R2. And when I remove the connection from R1 and DLS1, if I ping from Laptop1 to R2 S0/0/1 I get the "Request timed out' message. It seems that the pings from Laptop1 only follow the red line in the picture than the green one. Is there a way to configure the green route?

Things I've done:
1. Configured static default route to R3 S0/0/0 on R1.
2. Configured static default route to R3 S0/0/1 on R2.

Please let me know what other information you might need. Thank you.

 

1 Accepted Solution

Accepted Solutions

Also, BTW, when setting routers' real IPs, we often use IPs adjacent to virtual IP.

So, for 172.16.10.254, HSRP IP, we might assign R1 172.16.10.253 and R2 172.16.10.252.

Personally I prefer using gateway and router IPs (and switch IPs) at the bottom/beginning of an address block.  This because I just add one to network prefix for gateway IP, and go sequentially up.  Again, just a personal preference.

View solution in original post

10 Replies 10

Joseph W. Doherty
Hall of Fame
Hall of Fame

Post HSRP interface configs.

I appreciate the reply, these are the Standby configs on R1 and R2, with R1 being the primary.

Yoram10222621_0-1674487221841.pngYoram10222621_1-1674487240049.png

 

This is the addressing table I am using. I have configured R1 to be a DHCP server for VLAN10, and Laptop1 is using a DHCP address from R1.

Yoram10222621_0-1674487390469.png

 

Yoram10222621
Level 1
Level 1

I am also curious why I can ping S0/0/0 on R1 directly from Laptop1

Yoram10222621_0-1674487902864.png

But I cannot ping S0/0/1 on R2 directly.

Yoram10222621_1-1674487967098.png

Laptop1 Details

Yoram10222621_0-1674488994108.png

 

 

Problem is on laptop1's DHCP settings.  Gateway should be virtual HSRP IP, 172.16.10.254.

Also, BTW, when setting routers' real IPs, we often use IPs adjacent to virtual IP.

So, for 172.16.10.254, HSRP IP, we might assign R1 172.16.10.253 and R2 172.16.10.252.

Personally I prefer using gateway and router IPs (and switch IPs) at the bottom/beginning of an address block.  This because I just add one to network prefix for gateway IP, and go sequentially up.  Again, just a personal preference.

Oh! I think you meant that I use 172.16.10.254 when I do the standby commands for R1 and R2 when configuring HSRP.

Ah, great to read you got it to work!

Hopefully you figured this out from my prior post, but specifically what you needed to change was your dhcp default-router setting to 172.16.10.254.

A HSRP IP is used as the gateway IP.

Ah! I managed to get HSRP to work now. Thank you so much! Was stuck on this for a few days. I wish I could repay you somehow.

Oh! How do I configure the virtual IP for the DHCP? These are my DHCP commands, I excluded the first 10 addresses based on the project requirements. Thank you so much.

Yoram10222621_0-1674489877147.png

 

Review Cisco Networking for a $25 gift card