how to setup HSRP for Redundany

Answered Question
Apr 26th, 2010

Hi all

i have this home network

Router connected to ISP is doing NAT.

Router is connected to layer 3 switch on subnet 192.168.5.1.


Layer 3 switche  has 3 vlans 10,20, and 30 to each layer 2 switch.

DHCP is config on each Vlans.

i am getting one new layer 3 switch for this network.

is this possible with new switch i can run hsrp with existing layer 3 switch?

if yes how can i do that for redundancy?

thanks

mahesh

I have this problem too.
0 votes
Correct Answer by Jon Marshall about 6 years 7 months ago

Mahesh

Ahh okay.

So you need to -

1) connect the 2 L3 switches together using a L2 trunk

2) for each vlan you need 3 addresses eg.

vlan 10 = 192.168.5.0 255.255.255.0

192.168.5.1 =virtual ip

192.168.5.2 = sw1 SVI

192.168.5.3 = sw2 SVI

SW1

====

int vlan 10

ip address 192.168.5.2 255.255.255.0

standby 10 ip 192.168.5.1

standby 10 priority 110

standby 10 preempt

standby 10 auth

SW2

====

int vlan 10

ip address 192.168.5.3 255.255.255.0

standby 10 ip 192.168.5.1

standby 10 auth

Jon

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Jon Marshall Mon, 04/26/2010 - 12:10

Mahesh

It is possible but how are things connected to your L3 switch at the moment ? If you have PCs with one connection to the existing L3 switch then HSRP won't benefit you much.

Jon

mahesh18 Mon, 04/26/2010 - 13:01

hi jon

thanks for reply

i want to set us for Cisco switching exam

to learn how hsrp works

thanks

mahesh

Correct Answer
Jon Marshall Mon, 04/26/2010 - 13:09

Mahesh

Ahh okay.

So you need to -

1) connect the 2 L3 switches together using a L2 trunk

2) for each vlan you need 3 addresses eg.

vlan 10 = 192.168.5.0 255.255.255.0

192.168.5.1 =virtual ip

192.168.5.2 = sw1 SVI

192.168.5.3 = sw2 SVI

SW1

====

int vlan 10

ip address 192.168.5.2 255.255.255.0

standby 10 ip 192.168.5.1

standby 10 priority 110

standby 10 preempt

standby 10 auth

SW2

====

int vlan 10

ip address 192.168.5.3 255.255.255.0

standby 10 ip 192.168.5.1

standby 10 auth

Jon

mahesh18 Mon, 04/26/2010 - 14:06

Hi jon

Thanks for reply

right now vlan 10 has ip 192.168.10.1

vlan 20 has 192.168.20.1  and vlan 30 has 192.168.30.1  on sw1.

and all 3 vlan ips are Default gateway for 3 layer 2 switches.

you mean to say i should find 3 valid ips in each vlan range?

Jon Marshall Tue, 04/27/2010 - 02:16

mahesh18 wrote:

Hi jon

Thanks for reply

right now vlan 10 has ip 192.168.10.1

vlan 20 has 192.168.20.1  and vlan 30 has 192.168.30.1  on sw1.

and all 3 vlan ips are Default gateway for 3 layer 2 switches.

you mean to say i should find 3 valid ips in each vlan range?

Mahesh

You already have one of the addresses ie. 192.168.10.1, 192.168.20.1, 192.168.30.1 so you just need another 2 IPs.

Jon

mahesh18 Fri, 04/30/2010 - 09:39

Hi Jon,

I have attached the config file of layer 3 switch

I am getting  Second layer 3 switch

so in order to have hsrp running on both please let me know what config changes will be on new switch

thanks

mahesh

Attachment: 
mahesh18 Sat, 10/09/2010 - 10:07

Hi jon,

Many thanks again.

today i config my switch b for HSRP Lan redundancy successfully

mahesh

Wassim Aouadi Mon, 04/26/2010 - 12:22

I guess you'll configure your new L3 switch with the aforementioned VLANs.

One way I can think of is to have both L3 switches participate in HSRP on the 3 vlans. For each vlan, one switch will be Active while the other will be Standby.

for example, for vlan 11, swA will be the Active, and swB will be the Standby:

on swA:

int vlan 11

standby 1 ip ...

standby 1 priority 150

on swB:

int vlan 11

standby 1 ip ..

standby 1 prioriry 100 (this line can be omitted since the default priority is 100).

mahesh18 Mon, 04/26/2010 - 13:07

Hi Thanks for reply

so you mean to say  new switch layer 3 can have same config as of working layer switch?

any new config which i need on  new layer 3 switch.

thanks

mahesh

Actions

This Discussion