05-31-2016 06:04 AM - edited 03-08-2019 06:00 AM
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?
Solved! Go to Solution.
05-31-2016 07:15 AM
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
05-31-2016 06:30 AM
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.
05-31-2016 07:00 AM
ok, and do the same with vlan 20 and take ip of vlan 20?
05-31-2016 07:15 AM
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
05-31-2016 07:26 AM
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
!
05-31-2016 09:08 AM
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
05-20-2020 08:01 AM
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
05-24-2019 09:32 PM
good day,
I confifured hsrp by configuring vlan in routers, but all vlan are not up. how can I do to let them up ?
10-27-2019 02:04 AM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide