Floating static route
*Note: This article is intended for the majority of users to learn, some of which will mention some professional Internet terms, or abbreviations. If you do not understand the network, you can learn and explore it together. If you have any questions, you can add QQ or YY. (QQ: 914560310, YY: 283755973) "//" is not a command output or description.
Let's talk about floating Static Routing. The purpose of this experiment is to modify the Management Distance of the static route to 130, so that the router selects RIP first when selected, and the static route is used as a backup. Enhance network connectivity.
Through this experiment, you can master the principle, configuration, and backup applications of floating Static Routing.
The topology is as follows (the vro used is 2811 ):
In this tutorial, the Management Distance of the static route is modified to 130, so that the router selects RIP first, and the static route is used as the backup.
The router R1 configuration is as follows:
R1 # configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
R1 (config) # ip route 2.2.2.0 255.255.255.0 192.168.12.2 130 // set the Management Distance of static routes to 130 while enabling static routes
R1 (config) # router rip
R1 (config-router) # version 2
R1 (config-router) # no auto-summary
R1 (config-router) # network 1.1.1.0
R1 (config-router) # network 192.168.21.0
R1 (config-router )#
The vror2 R2 configuration is as follows:
R2 # configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
R2 (config) # ip route 1.1.1.0 255.255.255.0 192.168.12.1 130
R2 (config) # router rip
R2 (config-router) # version 2
R2 (config-router) # no auto-summary
R2 (config-router) # network 192.168.21.0
R2 (config-router) # network 2.2.2.0
R2 (config-router )#
View the route table on R1:
R1 # show ip route
Codes: C-connected, S-static, I-IGRP, R-RIP, M-mobile, B-BGP
D-OSPF, EX-VPN external, O-OSPF, IA-OSPF inter area
N1-ospf nssa external type 1, N2-ospf nssa external type 2
E1-OSPF external type 1, E2-OSPF external type 2, E-EGP
I-IS, L1-IS level-1, L2-IS level-2, ia-IS inter area
*-Candidate default, U-per-user static route, o-ODR
P-periodic downloaded static route
Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, Loopback0
2.0.0.0/24 is subnetted, 1 subnets
R 2.2.2.0 [120/1] via 192.168.21.2, 00:00:21, FastEthernet0/0
C 192.168.12.0/24 is directly connected, Serial0/3/0
C 192.168.21.0/24 is directly connected, FastEthernet0/0
R1 #
The output of the above R1 route table shows that the router puts RIP into the route table because the RIP management distance is 120, which is less than 130 of the static route we just set, so RIP becomes the preference of this network connection, and the static route is in the backup state.
On R1, we disable the "f0/0" interface and view the status of the route table:
R1 # configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
R1 (config) # inter f0/0//Enter "f0/0"Interface,
R1 (config-if) # shutdown//Close interface
% LINK-5-CHANGED: Interface FastEthernet0/0, changed state to administratively down
% LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to down
R1 (config-if) # exit//Return to previous Mode
R1 (config) # exit//Return to previous Mode
R1 #
% SYS-5-CONFIG_ I: Configured from console by the console
R1 # show ip route//View route table
Codes: C-connected, S-static, I-IGRP, R-RIP, M-mobile, B-BGP
D-OSPF, EX-VPN external, O-OSPF, IA-OSPF inter area
N1-ospf nssa external type 1, N2-ospf nssa external type 2
E1-OSPF external type 1, E2-OSPF external type 2, E-EGP
I-IS, L1-IS level-1, L2-IS level-2, ia-IS inter area
*-Candidate default, U-per-user static route, o-ODR
P-periodic downloaded static route
Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, Loopback0
2.0.0.0/24 is subnetted, 1 subnets
S 2.2.2.0 [130/0] via 192.168.12.2
C 192.168.12.0/24 is directly connected, Serial0/3/0
R1 #
The output table of the above R indicates that the static route we set is displayed when the interface "f0/0" is down. There is no problem with the connection of this network. It explains the working principle of floating Static Routing as a backup. And its advantages.
On R1, enable "f0/0" and view the route table:
R1 # configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
R1 (config) # inter f0/0
R1 (config-if) # no shutdown
% LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
% LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
R1 (config-if) # end//In any mode, the privileged mode can be returned.
R1 #
% SYS-5-CONFIG_ I: Configured from console by the console
R1 # show ip route//View route table
Codes: C-connected, S-static, I-IGRP, R-RIP, M-mobile, B-BGP
D-OSPF, EX-VPN external, O-OSPF, IA-OSPF inter area
N1-ospf nssa external type 1, N2-ospf nssa external type 2
E1-OSPF external type 1, E2-OSPF external type 2, E-EGP
I-IS, L1-IS level-1, L2-IS level-2, ia-IS inter area
*-Candidate default, U-per-user static route, o-ODR
P-periodic downloaded static route
Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, Loopback0
2.0.0.0/24 is subnetted, 1 subnets
R 2.2.2.0 [120/1] via 192.168.21.2, 00:00:06, FastEthernet0/0
C 192.168.12.0/24 is directly connected, Serial0/3/0
C 192.168.21.0/24 is directly connected, FastEthernet0/0
R1 #
*The above output indicates that when the router R1Interface "f0/0" on"After the recovery, the floating static route is also restored to the backup status.
(* Original works, not reposted. If you need to reposted, please indicate the source ~)