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?