cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2473
Views
0
Helpful
7
Replies

HSRP track interface (ASR9k v4.2.3)

Hi all,

I was trying to configure the track interface command within hsrp, and when I apply the command the priority group decrement immediately.

Before of apply the configuration:

RP/0/RSP0/CPU0:PE1-ASR9010-LAB-MACUL#sh hsrp bvi 600

Thu Sep 12 14:04:07.548 UTC

                       P indicates configured to preempt.

                       |

Interface      Grp Pri P State   Active addr     Standby addr   Group addr   

BV600            1 110 P Active  local           200.10.10.3    200.10.10.1

Then, I apply track interface:

router hsrp

interface BVI600

  address-family ipv4

   hsrp 1 version 1

    timers 1 3

    preempt

    priority 110

    address 200.10.10.1

    track GigabitEthernet0/3/0/26 20

   !

And priority decrement:

RP/0/RSP0/CPU0:PE1-ASR9010-LAB-MACUL#sh hsrp bvi 600

Thu Sep 12 14:05:20.302 UTC

                       P indicates configured to preempt.

                       |

Interface      Grp Pri P State   Active addr     Standby addr   Group addr   

BV600            1  90 P Standby 200.10.10.3     local          200.10.10.1 

Why priority decrement if the interface is always up?

Regards.

1 Accepted Solution

Accepted Solutions

What is the configuration on GIg0/3/0/26?  Is it definded as l3 or l2 interface?  HSRP can't track an L2 interface.

Thanks,

Bryan

View solution in original post

7 Replies 7

Michael Toth
Level 4
Level 4

Is the interface 'GigabitEthernet0/3/0/26' down ?


No. That´s why I am asking why the priority decrement if the interface is always UP.

Look:

RP/0/RSP0/CPU0:PE1-ASR9010-LAB-MACUL#sh inter gi 0/3/0/26

Fri Sep 13 10:41:55.907 UTC

GigabitEthernet0/3/0/26 is up, line protocol is up

Without track command:

RP/0/RSP0/CPU0:PE1-ASR9010-LAB-MACUL#sh hsrp bvi 600

Fri Sep 13 10:42:30.411 UTC

                       P indicates configured to preempt.

                       |

Interface      Grp Pri P State   Active addr     Standby addr   Group addr    

BV600            1 110 P Active  local           200.10.10.3    200.10.10.1   

After I apply track command:

router hsrp

interface BVI600

  address-family ipv4

   hsrp 1 version 1

    timers 1 3

    preempt

    priority 110

    address 200.10.10.1

    track GigabitEthernet0/3/0/26 20

RP/0/RSP0/CPU0:PE1-ASR9010-LAB-MACUL#sh inter gi 0/3/0/26

Fri Sep 13 10:44:28.498 UTC

GigabitEthernet0/3/0/26 is up, line protocol is up

RP/0/RSP0/CPU0:PE1-ASR9010-LAB-MACUL#sh hsrp bvi 600                

Fri Sep 13 10:44:43.139 UTC

                       P indicates configured to preempt.

                       |

Interface      Grp Pri P State   Active addr     Standby addr   Group addr    

BV600            1  90 P Standby 200.10.10.3     local          200.10.10.1   


What is the configuration on GIg0/3/0/26?  Is it definded as l3 or l2 interface?  HSRP can't track an L2 interface.

Thanks,

Bryan

An option may be to create an object and track the state of that object?

track THISOBJECT
type line-protocol state
 interface GigE0/0/0/10

router hsrp
int bvi 52
address-family ipv4
track object THISOBJECT 20

didnt test it, but it might be a usable workaround available in 4.2.1 onwards.

xander

Hi Alexander,

I tried with track object and it works fine.

Thanks!.

Regards.

Hi Bryan,

The inteface is L2, that is the problem. Thanks!