cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
364
Views
0
Helpful
2
Replies

HSRP configuration in VLAN configured routers

suresh.nr3171
Level 1
Level 1

Hi,

 

I have just tried to configure HSRP in routers, where VLAN 10 and 20 are configured and communicating, can access web server also. I got an error while configuring stand by ip...i doubt its not possible in this topology. 

2 Replies 2

Hello,

 

on both routers you need an interface configured with an IP address is the same address space.

 

Post the Packet Tracer file (save the project as .pkt and rename it to .jpg, otherwise you cannot post the file).

Deepak Kumar
VIP Alumni
VIP Alumni

Hi, 

In your case, your basic configuration for HSRP as:

 

on Active Router:

 

interface FastEthernet0/0

no ip address

duplex auto

speed auto

!

interface FastEthernet0/0.10

encapsulation dot1Q 10

ip address 192.168.1.254 255.255.255.0

standby 1 ip 192.168.1.1

standby 1 priority 110

standby 1 preempt

!

interface FastEthernet0/0.20

encapsulation dot1Q 20

ip address 192.168.2.254 255.255.255.0

standby 2 ip 192.168.2.1

standby 2 priority 110

standby 2 preempt

!

 

On Standby Router:

 

interface FastEthernet0/0
no ip address
duplex auto
speed auto
!
interface FastEthernet0/0.10
encapsulation dot1Q 10
ip address 192.168.1.253 255.255.255.0
standby 1 ip 192.168.1.1
standby 1 preempt
!
interface FastEthernet0/0.20
encapsulation dot1Q 20
ip address 192.168.2.253 255.255.255.0
standby 2 ip 192.168.2.1
standby 2 preempt

 

Match with your configuration and test again in the lab. Don't forget to configure switch ports as a trunk and allowed VLANs are 20, and 30.

 

Regards,

Deepak Kumar

Regards,
Deepak Kumar,
Don't forget to vote and accept the solution if this comment will help you!
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card