[c-nsp] hsrp and igp
Phil Mayers
p.mayers at imperial.ac.uk
Mon Nov 12 05:17:11 EST 2007
On Mon, 2007-11-12 at 11:58 +0200, Pavel Gulchouck wrote:
> Hi
>
> How can I configure HSRP with two routers and track condition
> if I want that IGP (OSPF) always route to active (not standby)
> gateway?
Very difficult. The only realistic solution I have seen is a route map
on the redistribute statement, referencing a prefix-list and increasing
the route metric; and use EEM to dynamically add/delete entries in the
prefix list.
Vile.
> And another issue: can I configure HSRP in which standby router
> routes local segment via active router but not directly?
Similar issue to above.
>
> I've try following confguration for local segment 10.0.0.0/24
> and virtual gateway 10.0.0.1.
> First router:
>
> interface gi0/1.100
> ip address 10.250.0.2 255.255.255.0
> no ip proxy-arp
> standby ip 10.250.0.1
> standby ip 10.0.0.1 secondary
> standby priority 15
> standby preempt
> standby track 1
> ip route 10.0.0.0 255.255.255.0 Gi0/1.100 track 1
> router ospf 100
> redistribute static subnets metric 20
Ah. Interesting approach.
What is the definition for the track?
>
> Second router:
>
> interface gi0/1.100
> ip address 10.250.0.3 255.255.255.0
> no ip proxy-arp
> standby ip 10.250.0.1
> standby ip 10.0.0.1 secondary
> standby priority 10
> standby preempt
> ip route 10.0.0.0 255.255.255.0 Gi0/1.100 111
> router ospf 100
> redistribute static subnets metric 30
>
> In this case almost all works good (even for /30 clients networks)
> except of arp. :-( Not all devices replies for request
> "arp who-has 10.0.0.5 tell 10.250.0.2" because of 10.250.0.2 is
> not at local segment for this device.
Correct, that doesn't work reliably. Hmm: "arp source-ip blah" command
is needed.
>
> Any solution?
> Or any another ideas how can I configure ospf redistribution depends
> of hsrp state or of track condition?
As above: route map/prefix list/event manager.
It would be a lot easier if Cisco provided this functionality natively.
This is an FAQ :o(
More information about the cisco-nsp
mailing list