cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1124
Views
0
Helpful
3
Replies

HSRP Config in WAN and LAN

narayanan141182
Level 1
Level 1

HI ALL

I have a scenario where I have to configure HSRP in both WAN and LAN side of a router.

Kindly find the Attached Diagram.

In wan side the ISP has configured HSRP and they are using static route.

The static routes are: to reach 192.168.1.0/24 they forward to 10.10.10.4 and to reach 192.168.2.0 they forward to 10.20.20.4

Router A Config:

int Fa0/0

desc LAN

ip add    192.168.2.1 255.255.255.0

int Fa0/1

desc WAN

ip add 10.20.20.4 255.255.255.248

Ip route 0.0.0.0 0.0.0.0 10.20.20.1

Kindly Help Me to config Router B and Router C

Regards

Narayanan

00971-551091485

3 Replies 3

Follow example below:

ROUTER B

interface FastEthernet0/0

ip address 10.10.10.5 255.255.255.0

duplex auto

speed auto

standby 20 ip 10.10.10.4

standby 20 timers 5 15

standby 20 preempt

standby 20 authentication "yourpassword"

end

ROUTER C

interface FastEthernet0/0

ip address 10.10.10.6 255.255.255.0

duplex auto

speed auto

standby 20 ip 10.10.10.4

standby 20 timers 5 15

standby 20 priority 10

standby 20 preempt

standby 20 authentication "yourpassword"

end

Adjust the ip address for lan side and add routes.

Regards.

HI Daniele

Thanks for your reply this config will help in wan HSRP . what about my LAN side in router B and Router C

they also need HSRP and If the Wan or Lan link goes down is should change to Standby router.

I have user the Track commands with decrement .But the issue is when Wan goes down then Wan alone changes to standby router .Lan does not change . 

Rg

Karthik

ROUTER B

interface FastEthernet0/0

description WAN

ip address 10.10.10.5 255.255.255.0

duplex auto

speed auto

standby 20 ip 10.10.10.4

standby 20 timers 5 15

standby 20 preempt

standby 20 authentication "yourpassword"

end

interface FastEthernet0/1

description LAN

ip address 192.168.1.2 255.255.255.0

duplex auto

speed auto

standby 20 ip 192.168.1.1

standby 20 timers 5 15

standby 20 preempt

standby 20 authentication "yoursecondpassword"

end

ROUTER C

interface FastEthernet0/0

description WAN

ip address 10.10.10.6 255.255.255.0

duplex auto

speed auto

standby 20 ip 10.10.10.4

standby 20 timers 5 15

standby 20 priority 10

standby 20 preempt

standby 20 authentication "yourpassword"

end

interface FastEthernet0/1

description LAN

ip address 192.168.1.3 255.255.255.0

duplex auto

speed auto

standby 20 ip 192.168.1.1

standby 20 timers 5 15

standby 20 preempt

standby 20 authentication "yoursecondpassword"

end

You can use IP SLA and EEM to shutdown the LAN interface when the WAN goes down and viceversa.

You can follow this example:

track 100 rtr 99 reachability

delay down 5 up 60 ### consider it "down" if down for 5 secs, consider it "up" if up for 60 secs

ip sla 99

icmp-echo 10.10.10.6 source-interface F0/1

frequency 10

ip sla schedule 99 life forever start-time now

event manager environment _interface_to_shut fa0/1

event manager applet shut_some_interface

event track 151 state down

action 1 cli command "enable"

action 2 cli command "conf t"

action 2 cli command "interface f0/1"

action 3 cli command "shut"

action 4 cli command "end"

You can find more examples in community threads.

Regards.