cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
551
Views
5
Helpful
0
Comments
siskum
Spotlight
Spotlight

Hot Standby Router Protocol.

I belive this example solution helpful for who wants to established reliable internet network connection as well as Network redundent of home-office network.

HSRP Network RedundencyHSRP Network Redundency

 

ISP-Router 1 Configurations

ISP-R1#
ISP-R1#config t
ISP-R1(config)#interface GigabitEthernet0/0/0
ISP-R1(config-if)# ip address 10.35.20.2 255.255.255.248
ISP-R1(config-if)# ip nat inside
ISP-R1(config-if)# duplex auto
ISP-R1(config-if)# speed auto
ISP-R1(config)#interface GigabitEthernet0/0/1
ISP-R1(config-if)# ip address 10.35.40.2 255.255.255.248
ISP-R1(config-if)# ip nat inside
ISP-R1(config-if)# duplex auto
ISP-R1(config-if)# speed auto
ISP-R1(config-if)#exit
ISP-R1(config)#interface Serial0/1/0
ISP-R1(config-if)# ip address 172.10.100.1 255.255.255.248
ISP-R1(config-if)# ip nat outside
ISP-R1(config)#interface Serial0/1/1
ISP-R1(config-if)# ip address 172.10.200.1 255.255.255.248
ISP-R1(config-if)# ip nat outside
ISP-R1(config-if)# clock rate 2000000
ISP-R1(config-if)#exit
ISP-R1(config)#ip route 0.0.0.0 0.0.0.0 GigabitEthernet0/0/1
ISP-R1(config)#ip route 0.0.0.0 0.0.0.0 GigabitEthernet0/0/0
ISP-R1(config)#ip route 10.35.0.0 255.255.0.0 10.35.40.1
ISP-R1(config)#ip route 10.35.0.0 255.255.0.0 10.35.20.1
ISP-R1(config)#exit
ISP-R1#


ISP-R1#sh run
Building configuration...

Current configuration : 1068 bytes
!
version 16.6.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname ISP-R1
!
interface GigabitEthernet0/0/0
ip address 10.35.20.2 255.255.255.248
ip nat inside
duplex auto
speed auto
!
interface GigabitEthernet0/0/1
ip address 10.35.40.2 255.255.255.248
ip nat inside
duplex auto
speed auto
!
interface GigabitEthernet0/0/2
no ip address
duplex auto
speed auto
shutdown
!
interface Serial0/1/0
ip address 172.10.100.1 255.255.255.248
ip nat outside
!
interface Serial0/1/1
ip address 172.10.200.1 255.255.255.248
ip nat outside
clock rate 2000000
!
interface Vlan1
no ip address
shutdown
!
ip classless
ip route 0.0.0.0 0.0.0.0 GigabitEthernet0/0/1
ip route 0.0.0.0 0.0.0.0 GigabitEthernet0/0/0
ip route 10.35.0.0 255.255.0.0 10.35.40.1
ip route 10.35.0.0 255.255.0.0 10.35.20.1
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
end

---------------------------------------------------------------------
Home Office Router 3 Configurations

R3#
R3#config t
Enter configuration commands, one per line. End with CNTL/Z.
R3(config)#interface GigabitEthernet0/1
R3(config-if)# no ip address
R3(config-if)# ip nat inside
R3(config-if)# duplex auto
R3(config-if)# speed auto
R3(config-if)#exit
R3(config)#interface GigabitEthernet0/1.10
R3(config-subif)# encapsulation dot1Q 10
R3(config-subif)# ip address 10.35.10.1 255.255.255.0
R3(config-subif)# standby 10 ip 10.35.10.10
R3(config-subif)# standby 10 priority 140
R3(config-subif)# standby 10 preempt
R3(config-subif)#exit
R3(config)#interface GigabitEthernet0/1.30
R3(config-subif)# encapsulation dot1Q 30
R3(config-subif)# ip address 10.35.30.1 255.255.255.0
R3(config-subif)# standby 30 ip 10.35.30.30
R3(config-subif)# standby 30 priority 140
R3(config-subif)# standby 30 preempt
R3(config-subif)#exit
R3(config)#
R3(config)#ip dhcp pool Net10
R3(dhcp-config)# network 10.35.10.0 255.255.255.0
R3(dhcp-config)# default-router 10.35.10.1
R3(dhcp-config)#ip dhcp pool Net30
R3(dhcp-config)# network 10.35.30.0 255.255.255.0
R3(dhcp-config)# default-router 10.35.30.1
R3(dhcp-config)#exit
R3(config)#ip default-gateway 10.35.20.2
R3(config)#
R3(config)#ip route 10.35.30.0 255.255.255.0 GigabitEthernet0/1.30
R3(config)#ip route 10.35.10.0 255.255.255.0 GigabitEthernet0/1.10
R3(config)#ip route 0.0.0.0 0.0.0.0 GigabitEthernet0/1
R3(config)#ip route 0.0.0.0 0.0.0.0 10.35.20.2
R3(config)#exit
R3#


R3>enable
R3#sh run
Building configuration...

Current configuration : 1330 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R3
!
ip dhcp pool Net10
network 10.35.10.0 255.255.255.0
default-router 10.35.10.1
ip dhcp pool Net30
network 10.35.30.0 255.255.255.0
default-router 10.35.30.1
!
interface GigabitEthernet0/0
ip address 10.35.20.1 255.255.255.248
ip nat outside
duplex auto
speed auto
!
interface GigabitEthernet0/1
no ip address
ip nat inside
duplex auto
speed auto
!
interface GigabitEthernet0/1.10
encapsulation dot1Q 10
ip address 10.35.10.1 255.255.255.0
standby 10 ip 10.35.10.10
standby 10 priority 140
standby 10 preempt
!
interface GigabitEthernet0/1.30
encapsulation dot1Q 30
ip address 10.35.30.1 255.255.255.0
standby 30 ip 10.35.30.30
standby 30 priority 140
standby 30 preempt
!
interface Vlan1
no ip address
shutdown
!
ip default-gateway 10.35.20.2
ip classless
ip route 10.35.30.0 255.255.255.0 GigabitEthernet0/1.30
ip route 10.35.10.0 255.255.255.0 GigabitEthernet0/1.10
ip route 0.0.0.0 0.0.0.0 GigabitEthernet0/1
ip route 0.0.0.0 0.0.0.0 10.35.20.2
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
end

---------------------------------------------------------------------
Home Office Router 4 Configurations

R4>enable
R4#config t
R4(config)#
R4(config)#interface GigabitEthernet0/0
R4(config-if)# ip address 10.35.40.1 255.255.255.248
R4(config-if)# ip nat outside
R4(config-if)# duplex auto
R4(config-if)# speed auto
R4(config-if)#exit
R4(config)#interface GigabitEthernet0/1
R4(config-if)# no ip address
R4(config-if)# ip nat inside
R4(config-if)# duplex auto
R4(config-if)# speed auto
R4(config-if)#exit
R4(config)#interface GigabitEthernet0/1.10
R4(config-subif)# encapsulation dot1Q 10
R4(config-subif)# ip address 10.35.10.2 255.255.255.0
R4(config-subif)# standby 10 ip 10.35.10.10
R4(config-subif)# standby 10 priority 140
R4(config-subif)# standby 10 preempt
R4(config-subif)#exit
R4(config)#interface GigabitEthernet0/1.30
R4(config-subif)# encapsulation dot1Q 30
R4(config-subif)# ip address 10.35.30.2 255.255.255.0
R4(config-subif)# standby 30 ip 10.35.30.30
R4(config-subif)# standby 30 priority 140
R4(config-subif)# standby 30 preempt
R4(config-subif)#exit
R4(config)#
R4(config)#ip dhcp pool net10
R4(dhcp-config)# network 10.35.10.0 255.255.255.0
R4(dhcp-config)# default-router 10.35.10.2
R4(dhcp-config)#ip dhcp pool net30
R4(dhcp-config)# network 10.35.30.0 255.255.255.0
R4(dhcp-config)# default-router 10.35.30.2
R4(dhcp-config)#exit
R4(config)#ip default-gateway 10.35.40.1
R4(config)#
R4(config)#ip route 0.0.0.0 0.0.0.0 GigabitEthernet0/1
R4(config)#ip route 10.35.10.0 255.255.255.0 GigabitEthernet0/1.10
R4(config)#ip route 10.35.30.0 255.255.255.0 GigabitEthernet0/1.30
R4(config)#ip route 0.0.0.0 0.0.0.0 10.35.40.2
R4(config)#exit
R4#


R4#sh run
Building configuration...

Current configuration : 1442 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R4
!
ip dhcp pool net10
network 10.35.10.0 255.255.255.0
default-router 10.35.10.2
ip dhcp pool net30
network 10.35.30.0 255.255.255.0
default-router 10.35.30.2
!
interface GigabitEthernet0/0
ip address 10.35.40.1 255.255.255.248
ip nat outside
duplex auto
speed auto
!
interface GigabitEthernet0/1
no ip address
ip nat inside
duplex auto
speed auto
!
interface GigabitEthernet0/1.10
encapsulation dot1Q 10
ip address 10.35.10.2 255.255.255.0
standby 10 ip 10.35.10.10
standby 10 priority 140
standby 10 preempt
!
interface GigabitEthernet0/1.30
encapsulation dot1Q 30
ip address 10.35.30.2 255.255.255.0
standby 30 ip 10.35.30.30
standby 30 priority 140
standby 30 preempt
!
interface GigabitEthernet0/2
no ip address
duplex auto
speed auto
shutdown
!
interface Vlan1
no ip address
shutdown
!
ip default-gateway 10.35.40.1
ip classless
ip route 0.0.0.0 0.0.0.0 GigabitEthernet0/1
ip route 10.35.10.0 255.255.255.0 GigabitEthernet0/1.10
ip route 10.35.30.0 255.255.255.0 GigabitEthernet0/1.30
ip route 0.0.0.0 0.0.0.0 10.35.40.2
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
end

------------------------------------------------------------------------------
Summery of Router Status

R3 - Router Status

R3>enable
R3#sh standby brief
P indicates configured to preempt.
|
Interface Grp Pri P State Active Standby Virtual IP
Gig 10 140 P Standby 10.35.10.2 local 10.35.10.10
Gig 30 140 P Standby 10.35.30.2 local 10.35.30.30
R3#

R4 - Router Status

R4>enable
R4#sh standby brief
P indicates configured to preempt.
|
Interface Grp Pri P State Active Standby Virtual IP
Gig 10 140 P Active local 10.35.10.1 10.35.10.10
Gig 30 140 P Active local 10.35.30.1 10.35.30.30
R4#

 

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: