Configuration instance of cisco HSRP

Source: Internet
Author: User

Cisco's hot backup routing protocol (HSRP) can provide A backup router when workstation A does not expire, and HSRP can create A virtual router with A virtual MAC address and virtual IP address.
 
Assume there are two routers, Bluestudy A and Bluestudy B, pointing to the router Bluestudy C through two channels:
 
For Bluestudy A, assume that the IP address of E0/0 is 192.168.1.1/24, and the internal network is 192.168.1.0/24, and the IP address of S0/0 is 192.168.2.1/24. The external network is 192.168.2.0/24.
 
For Bluestudy B, assume that the IP address of E0/0 is 192.169.1.2/24, and the internal network is 192.168.1.0/24, and the IP address of S0/0 is 192.168.3.1/24. The external network is 192.168.3.0/24.
 
The virtual IP address is 192.168.1.3/24.
 
For Bluestudy C, it is not described for the time being because it is not closely related to this experiment.
 
The following describes the configurations of the two routers, in which Bluestudy A is used as the primary router and Bluestudy B is used as the backup router. The priority of Bluestudy A is given as 120, while that of Bluestudy B is given as 100 by default, so that Bluestudy A can be made the primary router.
 
Bluestudy:
 
Interface ethernet0/0
 
Ip address 192.168.1.1 255.255.255.0
 
No ip redirects
 
Standby 1 priority 120
 
Standby 1 preempt
 
Standby 1 ip 192.168.1.3
 
!
 
Interface serial0/0
 
Ip address 192.168.2.1 255.255.255.0
 
No shut
 
!
 
Router igrp 100
 
Network 192.168.1.0
 
Network 192.168.2.0
 
 
 
Bluestudy B:
 
Interface ethernet0/0
 
Ip address 192.168.1.2 255.255.255.0
 
Standby 1 preempt
 
Standby 1 ip 192.168.1.3
 
!
 
Interface serial0/0
 
Ip address 192.168.3.1 255.255.255.0
 
No shut
 
!
 
Router igrp 100
 
Network 192.168.1.0
 
Network 192.168.3.0
 
Set the gateway of the connected host to 192.168.1.3.

How much do I learn each day?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.