Get the App
SLTechnology News&Howtos  ›  Servers  › 

Simple Application of hsrp

Shulou Source: shulou.com Published: 2022-06-02 22:46:53 10月03日 Update

Lab Topology:

Experimental requirements: interworking between pc0.pc1 and pc2, single point link failure does not affect communication

Experimental steps and ideas:

Using Cisco's proprietary protocol hsrp to implement

Configure PC ip address, plan each network segment ip, configure gateway and hsrp on route

Configuration on routing:

Router1:

Router (config-if) # ip add 192.168.10.254 255.255.255.0

Router (config-if) # standby 1 ip 192.168.10.250 (virtual ip address)

Router (config-if) # standby 1 preempt (turn on the main router first, choose the main router)

This prompt appears:

Active for primary router and standby for backup router

Router (config) # rou rip

Router (config-router) # version 2

Router (config-router) # no auto-summary

Router (config-router) # network 192.168.10.0

Router (config-router) # network 192.168.20.0

Router2:

Router (config-if) # ip add 192.168.10.253 255.255.255.0

Router (config-if) # standby 1 ip 192.168.10.250

Router (config-if) # standby 1 preempt

Router (config-if) # router rip

Router (config-router) # version 2

Router (config-router) # no auto

Router (config-router) # net 192.168.10.0

Router (config-router) # net 192.168.30.0

Validate, test, save

Router1: Router#show standby brief

Router2: Router#show standby brief

You can see that router1 is the main router

Ping pc 2: ping 192.168.40.1

Disconnect the port gi0/0 of router1 and then go to ping

After disconnecting the port, it can still communicate with each other, indicating that the backup is successful.

Experimental questions and summary:

* * 1. With the increasing scale of the network in the enterprise, link backup is necessary to prevent single point link failure. At the same time, it is necessary to prevent the priority of the route in the loop topology from being different and can be set to the same. In this way, the backup is also achieved load balancing, which is conducive to improving equipment utilization. * *

Tags: Routing router backup lab link configuration same at the same time address topology fault port single point equilibrium success enterprise priority utilization idea advantage Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB macOS vpn Huawei Shulou Technology