cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
22791
Views
0
Helpful
8
Replies

HSRP with Inter-vlan

konjo1998
Level 1
Level 1

Hi i want to cnfigure 2 routers Distr_1 and Distr_2 with HSRP

Router Distr_1 must be an active router for VLAN 1 and 10 and Router Distr_2 must be an active router for VLAN 20 and 30

im stuck asking myself if i must configure this on int vlan or on the router?

1 Accepted Solution

Accepted Solutions

Hi!

** FOR VLAN 1 **

interface Vlan1
R1(config-if)#ip address 10.1.1.1 255.255.255.0
R1(config-if)#standby 1 ip 10.1.1.10       <<<<<    R1 and R2 must have this same IP address.
R1(config-if)#standby 1 priority 110    <<<<<  R1 has higher priority than R2. So R1 will be                                                                               active

interface Vlan1
R2(config-if)#ip address 10.1.1.2 255.255.255.0
R2(config-if)#standby 1 ip 10.1.1.10
R2(config-if)#standby 1 priority 100

** FOR VLAN 10 (SAME AS VLAN 1) **

interface Vlan10
R1(config-if)#ip address 10.1.10.1 255.255.255.0
R1(config-if)#standby 1 ip 10.1.10.10
R1(config-if)#standby 1 priority 110

interface Vlan10
R2(config-if)#ip address 10.1.10.2 255.255.255.0
R2(config-if)#standby 1 ip 10.1.10.10
R2(config-if)#standby 1 priority 100

** FOR VLAN 20 **

interface Vlan20
R1(config-if)#ip address 10.1.20.1 255.255.255.0
R1(config-if)#standby 1 ip 10.1.20.10
R1(config-if)#standby 1 priority 100

interface Vlan20
R2(config-if)#ip address 10.1.20.2 255.255.255.0
R2(config-if)#standby 1 ip 10.1.20.10
R2(config-if)#standby 1 priority 110

** REPEAT VLAN 20 CONFIG FOR VLAN 30 **

Hope it helps, best regards!

JC

View solution in original post

8 Replies 8

lethanhtung0131
Level 1
Level 1

You need to go to interface vlan to configure.

interface Vlan1
R1(config-if)#ip address 10.1.1.2 255.255.255.0
R1(config-if)#standby 1 ip 10.1.1.1
R1(config-if)#standby 1 priority 110

something like this for R1. 

ok, and do the same with vlan 20 and take ip of vlan 20?

Hi!

** FOR VLAN 1 **

interface Vlan1
R1(config-if)#ip address 10.1.1.1 255.255.255.0
R1(config-if)#standby 1 ip 10.1.1.10       <<<<<    R1 and R2 must have this same IP address.
R1(config-if)#standby 1 priority 110    <<<<<  R1 has higher priority than R2. So R1 will be                                                                               active

interface Vlan1
R2(config-if)#ip address 10.1.1.2 255.255.255.0
R2(config-if)#standby 1 ip 10.1.1.10
R2(config-if)#standby 1 priority 100

** FOR VLAN 10 (SAME AS VLAN 1) **

interface Vlan10
R1(config-if)#ip address 10.1.10.1 255.255.255.0
R1(config-if)#standby 1 ip 10.1.10.10
R1(config-if)#standby 1 priority 110

interface Vlan10
R2(config-if)#ip address 10.1.10.2 255.255.255.0
R2(config-if)#standby 1 ip 10.1.10.10
R2(config-if)#standby 1 priority 100

** FOR VLAN 20 **

interface Vlan20
R1(config-if)#ip address 10.1.20.1 255.255.255.0
R1(config-if)#standby 1 ip 10.1.20.10
R1(config-if)#standby 1 priority 100

interface Vlan20
R2(config-if)#ip address 10.1.20.2 255.255.255.0
R2(config-if)#standby 1 ip 10.1.20.10
R2(config-if)#standby 1 priority 110

** REPEAT VLAN 20 CONFIG FOR VLAN 30 **

Hope it helps, best regards!

JC

thanks, but do i have to configure this on the sub interfaces?

config of my sub interfaces:

interface FastEthernet0/1.10

encapsulation dot1Q 10

ip address 10.1.10.3 255.255.255.0

standby version 2

standby 1 ip 10.1.10.1

!

interface FastEthernet0/1.20

encapsulation dot1Q 20

ip address 10.1.20.3 255.255.255.0

!

interface FastEthernet0/1.30

encapsulation dot1Q 30

ip address 10.1.30.3 255.255.255.0

!

Hi!

Oh Ok, you want to route between your routers as Router on a stick.  Yes it is exactly the same as in my last answer but configure it in your subinterfaces.

Sorry for the delay!

Best regards!

JC

i am facing similar problem with HSRP in intervlan routing. both of my router are in active state. i have configured as you have mention in both of the sub interfaces for my vlan. 


@Carlos Villagran wrote:

Hi!

 

Oh Ok, you want to route between your routers as Router on a stick.  Yes it is exactly the same as in my last answer but configure it in your subinterfaces.

 

Sorry for the delay!

 

Best regards!

JC


 

good day,

I confifured hsrp by configuring vlan in routers, but all vlan are not up. how can I do to let them up ?

Can we configure same ip address for interface vlan and virtual ip address.

if yes, will it create any problem in the future.

what is the best practice ?

Thanks in Advance.

 

Review Cisco Networking for a $25 gift card