11-25-2013 12:13 PM - edited 03-04-2019 09:40 PM
Hi,
How I can use 3 different Subnets on HSRP protocol on my wan interface. HSRP protocol require virtual ip address in the same subnet as physical interface ip address. Following is my subnets detail. I assigned 50.2.3.49 to R1 and 50.2.3.50 to R2 with their subnet mask 255.255.255.240, but when I use 50.2.3.14 as virtual ip there is warning “Address is not within a subnet on this interface” I am using 50.2.3.14 as virtual IP because my ISP is routing all traffic coming for 50.2.3.49 – 62 and 50.20.7.1 – 62 to 50.2.3.14. please advise. or its OK it will work?
IPs Subnet mask Gateway
50.2.3.14 255.255.255.252 50.2.3.13
50.2.3.49 – 62 255.255.255.240
50.20.7.1 – 62 255.255.255.192
my default router as below
ip route 0.0.0.0 0.0.0.0 50.2.3.13
12-19-2013 01:26 PM
Thank you Sir, i will try and get back to you with result.
do you mean each IP address as each subnet?
02-13-2015 11:34 AM
Qasim,
Long time, but no answer. Probably not interested anymore. However, here it goes:
You do not necessary need to use IPs from:
50.2.3.49 – 62 255.255.255.240
50.20.7.1 – 62 255.255.255.192
but I used the one you tried.
Assuming your interfaces are Fa0/0
Router 1:
int f0/0
ip add 50.2.3.49 255.255.255.240
standby 1 name hsrp
standby 1 ip 50.2.3.51
standby 1 ip 50.2.3.14 secondary
standby 1 preempt
standby 1 priority 20
standby 1 track f0/0
!
ip route 50.2.3.12 255.255.255.252 f0/0
Router 2
int f0/0
ip add 50.2.3.50 255.255.255.240
standby 1 name hsrp
standby 1 ip 50.2.3.51
standby 1 ip 50.2.3.14 secondary
standby 1 preempt
standby 1 priority 15
!
ip route 50.2.3.12 255.255.255.252 f0/0
02-13-2015 01:48 PM
Using something like "standby 1 ip 50.2.3.14 secondary" makes sense and works when there is a secondary address configured on the interface. It does not make much sense when there is no secondary address. And I suspect that if you did this on real IOS routers that the HSRP negotiation would fail and therefore the virtual address would not be activated.
I would also note that doing track f0/0 does not make much sense when you are configuring it on f0/0. You usually configure track to know the status of some other interface on the router. Also using the static route and specifying f0/0 instead of a next hop is a sub-optimal way to configure a static route. It might work or it might not work depending on whether the next hop router has enabled proxy arp or not. And even if it does work it makes the router work harder than a static route with a next hop.
HTH
Rick
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