This article mainly introduces how to set up the IP floating static route of the router, and provides a schematic diagram and specific command line configuration. The following article will give you a detailed introduction.
Intention: Floating Static Route is used to interconnect the entire network. Normally, R1 sends packets to R3.
From e0/0192.168.12.0), when e0/0 is disconnected, R1 will automatically switch to e0/11942521.0), when e0/0
When it is enabled, R1 automatically switches to the floating static route e0/0 port.
(R1 Configuration :)
!
!
Interface Loopback0
Ip address 1.1.1.1 255.255.255.255
!
Interface Ethernet0/0
Ip address 192.168.12.1 255.255.255.0
Shutdown
Half-duplex
!
Interface Ethernet0/1
Ip address 192.168.21.1 255.255.255.0
Half-duplex
!
Ip route 3.3.3.3 255.255.255.255.255 192.168.12.2
Ip route 3.3.3.3 255.255.255.255.255 192.168.21.2 50
Ip route 192.168.23.0 255.255.255.0 192.168.12.2
Ip route 192.168.23.0 255.255.255.0 192.168.21.2 50
!
!
(R2 Configuration :)
!
Interface Ethernet0/0
Ip address 192.168.12.2 255.255.255.0
Half-duplex
!
Interface Ethernet0/1
Ip address 192.168.21.2 255.255.255.0
Half-duplex
!
Interface Ethernet0/2
Ip address 192.168.23.2 255.255.255.0
Half-duplex
!
Ip route 3.3.3.3 255.255.255.255 192.168.23.3
!
!
(R3 Configuration :)
!
Interface Loopback0
Ip address 3.3.3.3 255.255.255.255
!
Interface Ethernet0/2
Ip address 192.168.23.3 255.255.255.0
Half-duplex
!
Ip route 192.168.12.0 255.255.255.0 192.168.23.2
Ip route 192.168.21.0 255.255.255.0 192.168.23.2
!
!
--------------------------------
(Inspect R1 :)
R1 #
R1 # traceroute 3.3.3.3
Type escape sequence to abort.
Tracing the route to 3.3.3.3
1 192.168.12.2 124 msec 12 msec 48 msec
2 192.168.23.3 112 msec * 160 msec
R1 #
Disable shutdown ethernet 0/0 port for e0/0)
R1 #
R1 (config) # int e0/0
R1 (config-if) # shutdown
R1 #
R1 # traceroute 3.3.3.3
Type escape sequence to abort.
Tracing the route to 3.3.3.3
1 192.168.21.2 144 msec 72 msec 20 msec
2 192.168.23.3 80 msec * 96 msec
R1 #
Re-enable reopen ethernet 0/0 port on port e0/0)
R1 #
R1 # config t
R1 (config) # int e0/0
R1 (config-if) # no shutdown
R1 #
R1 # traceroute 3.3.3.3
Type escape sequence to abort.
Tracing the route to 3.3.3.3
1 *
192.168.12.2 76 msec 76 msec
2 192.168.23.3 88 msec * 120 msec
R1 #
Notice: ip route 3.3.3.3 255.255.255.255 192.168.21.2 50 (the following 50 indicates the management distance from It
Represents "Distance metric for this route ")