HSRP with Vlan

Answered Question
Feb 17th, 2009

hii

Here i am attached my Network Diagram.in this diagram i have shown that we are having Two valn and we are reqired HSRP so how it's possible and how it configure??

Attachment: 

Just one more little thing..... if you are tracking another interface - you need to configure a decrement value, by default it's 10. So if you set the priority to 150 and track an interface, when that interface goes down - it decrements by that value = 150 - 10 = 140. The Default HSRP priority on an interface is 100....so the interface that is connected to the failed circuit still has the highest priority :o(

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 3 (1 ratings)
Loading.

What you want to do is pretty straight forward.

R2 could be the active and R3 could be the standby. The HSRP or standby address should be the IP address, the PC's and Phones have currently as a default gateway. Then you give the interfaces their own IP address. Configure your group numbers, preempt & priority numbers - and you are good to go.

HTH>

Jayesh Prajapati Tue, 02/17/2009 - 08:44

hii..

You are right.but ..

My Problem is in my R1(Main) router there is no. of sub interface, so i have to Put HSRP configuration to all Subinterface.? and is there R3 router connected through Trunk Port?? and is it also configure sub interfaces in R3 Standby Router.?

R3 is not in question?

You want to have 100% availbility from SW1 & SW2 to a layer 3 routing device = HSRP on VLAN 1 and VLAN 2 this is easy.

The connection between R2/R3 & R1 is something different - how do they connect?? over a serial connection?? I would run a dynamic routing protocol between R1/R2/R3 - use a specific /29 IP subnet between them.

Jayesh Prajapati Tue, 02/17/2009 - 08:57

ok ok so just i have to configure HSRP in first valn! and just R3 connected with Trunk Port ok ?..

Tshi M Tue, 02/17/2009 - 08:58

I agree with you Andrew. I misread his diagram for I don't VLAN2 address on the switch. As you pointed out, the HSRP should take place for VLAN1 and VLAN2 ant its standby address would be used as gateway addresses

Jayesh Prajapati Tue, 02/17/2009 - 09:03

here i have to use layer 2 sw and inter-Vlan routing is there..can you send me configuration fo both R2 and R3 Router?

Tshi M Tue, 02/17/2009 - 09:07

a sample HSRP config that you can modify on your layer 3 switches.

sw1

int vlan1

ip address 10.60.2.100 255.255.255.0

standby 1 ip 10.60.2.x

standby 1 prio 150

standby 1 preempt

int vlan2

ip address 10.60.5.x 255.255.255.0

standby 2 ip 10.60.5.y

standby 2 preempt

sw2

int vlan1

ip address 10.60.2.101 255.255.255.0

standby 1 ip 10.60.2.x

standby 1 preempt

int vlan2

ip address 10.60.5.z 255.255.255.0

standby 2 ip 10.60.5.y

standby 2 pri 150

standby 2 preempt

Jayesh Prajapati Tue, 02/17/2009 - 09:14

Thank you for configuration but my main problem is we are using only Layer 2 Sw and is this (HSRP) possible with Router only??? we are not worried about Vlan but main thing is connecting R1 to R2,R3 with Serial (E1) Link. when R2 router link is broken then all my vlan traffic pass through R3 (stand by) Router To R1..?

Tshi M Tue, 02/17/2009 - 09:22

You might have to config trunk port on R3 as well

R2

int g0/0.1

ip address 10.60.2.100 255.255.255.0

standby 1 ip 10.60.2.x

standby 1 prio 150

standby 1 preempt

standby 1 track serialx

int g0/0.2

ip address 10.60.5.x 255.255.255.0

standby 2 ip 10.60.5.y

standby 2 preempt

standby 2 track serialx

R3

int g0/0.1

ip address 10.60.2.101 255.255.255.0

standby 1 ip 10.60.2.x

standby 1 preempt

standby 1 track serialx

int g0/0.2

ip address 10.60.5.z 255.255.255.0

standby 2 ip 10.60.5.y

standby 2 pri 150

standby 2 preempt

standby 2 track serialx

Correct Answer

Just one more little thing..... if you are tracking another interface - you need to configure a decrement value, by default it's 10. So if you set the priority to 150 and track an interface, when that interface goes down - it decrements by that value = 150 - 10 = 140. The Default HSRP priority on an interface is 100....so the interface that is connected to the failed circuit still has the highest priority :o(

Tshi M Tue, 02/17/2009 - 08:47

R3 has no presence in vlan2 so I am assuming that you would only setup HSRP for VLAN1 since that is present in both R2 and R3. but the setup is pretty straight forward once you have all the addresses that you need on both routers.

Jayesh Prajapati Tue, 02/17/2009 - 08:51

Hii,

Dear i am not understaning what you are talling is ther R3 connected with trunk port ?is ther required creat sub interdface in R3 router??

Actions

This Discussion