cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2864
Views
0
Helpful
4
Replies

VLAN With secondary IP address and it’s HSRP configuration.

Switch-1

interface Vlan200

ip address 10.X.X.1 255.255.254.0 secondary

ip address 192.X.X.1 255.255.255.0

standby 200 ip 192.X.X.7

standby 200 priority 110

standby 200 preempt

standby 66 ip 10.X.X.7

standby 66 priority 95

standby 66 preempt

 

Switch-2

 interface Vlan200

ip address 10.X.X.4 255.255.254.0 secondary

ip address 192.X.X.2 255.255.255.0

standby 200 ip 192.X.X.7

standby 200 priority 95

standby 200 preempt

standby 66 ip 10.X.X.7

standby 66 priority 110

standby 66 preempt

 

is the above HSRP configuration correct.

2 Accepted Solutions

Accepted Solutions

Hi again Veera,

 

The config looks correct. You will have Switch -1 as the HSRP active for primary ip subnet and Switch-2 as the active router for Secondary subnet with the above config.

 

Please let me know if you have any questions.

 

Hope this helps. 

PS : Kindly rate all useful posts.

 

Thanks,

Madhu.

View solution in original post

Hi Veera,

I have not tried it before, but the configuration does not seem to work since the syntax seems to wrong as you cannot type an ip address after secondary keyword. An example below.

 

(config-if)#standby 85 ip 10.127.1.130 secondary ?
  <cr>

 

But your idea seems to work with exception of the above syntax mistake. A useful post can be seen below.

 

https://supportforums.cisco.com/discussion/9912176/hsrp-secondary-address

 

Hope this helps. Please always remeber to rate all useful posts.

 

Thanks

Madhu.

 

 

View solution in original post

4 Replies 4

Hi again Veera,

 

The config looks correct. You will have Switch -1 as the HSRP active for primary ip subnet and Switch-2 as the active router for Secondary subnet with the above config.

 

Please let me know if you have any questions.

 

Hope this helps. 

PS : Kindly rate all useful posts.

 

Thanks,

Madhu.

Thanks Madhu.

How about this config. Just want to understand the difference.

 

Switch-1

interface Vlan200

ip address 10.X.X.1 255.255.254.0 secondary

ip address 192.X.X.1 255.255.255.0

standby 200 ip 192.X.X.7 secondary 10.X.X.7

standby 200 priority 110

standby 200 preempt


Switch-2

 interface Vlan200

ip address 10.X.X.4 255.255.254.0 secondary

ip address 192.X.X.2 255.255.255.0

standby 200 ip 192.X.X.7 secondary 10.X.X.7

standby 200 priority 95

standby 200 preempt

 

Hi Veera,

I have not tried it before, but the configuration does not seem to work since the syntax seems to wrong as you cannot type an ip address after secondary keyword. An example below.

 

(config-if)#standby 85 ip 10.127.1.130 secondary ?
  <cr>

 

But your idea seems to work with exception of the above syntax mistake. A useful post can be seen below.

 

https://supportforums.cisco.com/discussion/9912176/hsrp-secondary-address

 

Hope this helps. Please always remeber to rate all useful posts.

 

Thanks

Madhu.