01-23-2023 03:23 AM
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.
Solved! Go to Solution.
01-23-2023 08:04 AM
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.
01-23-2023 06:40 AM
Post HSRP interface configs.
01-23-2023 07:21 AM
I appreciate the reply, these are the Standby configs on R1 and R2, with R1 being the primary.
01-23-2023 07:23 AM
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.
01-23-2023 07:33 AM - edited 01-23-2023 07:50 AM
I am also curious why I can ping S0/0/0 on R1 directly from Laptop1
But I cannot ping S0/0/1 on R2 directly.
Laptop1 Details
01-23-2023 08:00 AM
Problem is on laptop1's DHCP settings. Gateway should be virtual HSRP IP, 172.16.10.254.
01-23-2023 08:04 AM
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.
01-23-2023 08:08 AM
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.
01-23-2023 10:29 AM
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.
01-23-2023 08:35 AM
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.
01-23-2023 08:05 AM - edited 01-23-2023 08:09 AM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide