Which command configures a floating static route?

Floating Static Route means we are going above the distance of the dynamic default route. In other words, floating static routes are used as provisory code in any case if the main working route goes down or fails. Floating static routes are commonly employed where the static routes are configured with an advanced executive distance than the selected primary route ones and it would not be in the routing table until the primary route fails.

So primarily here we are configuring a static route with an advanced executive distance the dynamic route begins employed in the location of the static route and will be used as a part of the backup.

First, we will configure the network topology in the Cisco packet tracer:

Step 1: Open packet tracer and create network topology using these devices:

S.NODevicesModel Name1.PCPC2.switchPT-Switch3.RouterPT-Router

Arrange our network topology something like this:

In this Topology, we have a starting point which is PC0 with network id 192.168.10.0, and a destination which is PC1 with network id 192.168.60.0.

We have to reach from starting point to destination for that we have two paths:

  • Router 3: Primary route by priority so packets flow through from host to router0 to router3 to router1 and then finally PC1(destination).
  • Router 2: secondary route by priority so packets flow through from host to router0 to router 2 to router 1 and then finally PC1(destination). this will work if the primary route goes down or shut down.

Which command configures a floating static route?

 

Then we’ll configure PCs with IP and default gateway according to the IP addressing table given below:

S. NoDevice nameIPv4 addressSubnet MaskDefault Gateway1PC0192.168.10.2255.255.255.0192.168.10.12PC1192.168.60.2255.255.255.0192.168.60.1

Which command configures a floating static route?

 

Which command configures a floating static route?

 

Checking by sending PDU from starting point to the destination we will not receive a reply because we have not assigned static routes till now. 

Which command configures a floating static route?

 

As we can see from the above image destination host is unreachable.

Step 2: Let’s configure the interfaces (routers) with IP addresses using the IP address table provided below: 

IP addressing Table (router0):

S. NoDevice nameInterface fa0/0 interface se2/0interface fa1/01.router0192.168.10.1192.168.20.1192.168.40.1

CLI commands to configure router0 :

Router>en
Router#conf t
Router(config)#int fa0/0
Router(config-if)#ip add 192.168.10.1 255.255.255.0
Router(config-if)#no shut
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, 
changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0,
 changed state to up
Router(config-if)#int se2/0
Router(config-if)#ip add 192.168.20.1 255.255.255.0
Router(config-if)#no shut
%LINK-5-CHANGED: Interface Serial2/0, changed state to down
Router(config-if)#int fa1/0
Router(config-if)#ip add 192.168.40.1 255.255.255.0
Router(config-if)#no shut

IP addressing Table (router1): 

Device nameInterface se2/0Interface fa1/0interface fa0/0router1192.168.30.1192.168.50.1192.168.60.1

CLI commands to configure Router1:

Router>en
Router# conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#int se2/0
Router(config-if)#ip add 192.168.30.1 255.255.255.0
Router(config-if)#no shut
Router(config-if)#
%LINK-5-CHANGED: Interface Serial2/0, changed state to up
Router(config-if)#int fa1/0
Router(config-if)#ip add 192.168.50.1 255.255.255.0
Router(config-if)#no shut
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet1/0, 
changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0, 
changed state to up
Router(config)#int fa0/0
Router(config-if)#ip add 192.168.60.1 255.255.255.0
Router(config-if)#no shut

IP addressing Table (router2):

Device nameInterface Se2/0Interface se3/0router2192.168.20.2192.168.30.2

CLI commands to configure router2:

Router>en
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#int s2/0
Router(config-if)#ip add 192.168.20.2 255.255.255.0
Router(config-if)#no shut
Router(config-if)#
%LINK-5-CHANGED: Interface Serial2/0, 
changed state to up
Router(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, 
changed state to up
Router(config-if)#int se3/0
Router(config-if)#ip add 192.168.30.2 255.255.255.0
Router(config-if)#no shut

IP addressing Table (router3):

Device NameInterface fa0/0Interfacefa1/0router3192.168.40.2192.168.50.2

CLI commands to configure router3:

Router>en
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#int fa0/0
Router(config-if)#ip add 192.168.40.2 255.255.255.0
Router(config-if)#no shut
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, 
changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, 
changed state to up
Router(config-if)#int fa1/0
Router(config-if)#ip add 192.168.50.2 255.255.255.0
Router(config-if)#no shut

Now, all of the interfaces are configured successfully and the network will look like this in packet tracer:

Which command configures a floating static route?

 

As of now, only devices are configured with IP addresses but we have not assigned static routers. so, to send packets from starting point to the destination we have to assign routes to the interfaces and prioritize the path by adding admin value.

Commonly, If we assign an interface with primary routes then packets will go through the primary path but if any case primary path blocks then that case packet will flow around and reach its destination via the secondary path.

For Example:

If we are assigning routes to router2 then, we have to add commands in CLI something like in this format:

Router(config)#ip route move towards starting point
Router(config)#ip route  move towards destination point

admin value to make secondary route

Router(config)#ip route 192.168.60.0 255.255.255.0 192.168.40.2  (primary route)
Router(config)#ip route 192.168.60.0 255.255.255.0 192.168.20.2 10 (secondary route)

Let’s assign static routes to router0 by adding typing these commands to CLI:

Router0 static routes:

Router(config)#ip route 192.168.60.0 255.255.255.0 192.168.40.2 ?
 <1-255>  Distance metric for this route
 
Router(config)#ip route 192.168.60.0 255.255.255.0 192.168.40.2 
Router(config)#ip route 192.168.60.0 255.255.255.0 192.168.20.2 10

Router1 static routes:

Router(config)#ip route 192.168.10.0 255.255.255.0 192.168.50.2
Router(config)#ip route 192.168.10.0 255.255.255.0 192.168.30.2 10

Router2 static routes:

Router(config)#ip route 192.168.10.0 255.255.255.0 192.168.20.1
Router(config)#ip route 192.168.60.0 255.255.255.0 192.168.30.1

Router3 static routes:

Router(config)#ip route 192.168.10.0 255.255.255.0 192.168.40.1
Router(config)#ip route 192.168.60.0 255.255.255.0 192.160.50.1

After assigning static routes to the specific interfaces network is well configured so now we will check by sending packets and pinging the destination IP address whether it gives replies or not:

Which command configures a floating static route?

 

Which command configures a floating static route?

 

The above image illustrates how packets travel from beginning point to destination through the primary designated path.

How does the Floating Static Route Will Work:

Let’s say we block or shutdown one channel from the primary path for example:

Router1 interface Fa1/0

by tying these commands in CLI:

Router(config)#in fa1/0
Router(config-if)#shutdown

As we can in the below image the way from router1 to router3 is blocked so the packet will follow the secondary path to reach its destination which is PC0.

Which command configure a floating static route?

Configure a Floating Static Route (2.4. IPv4 static routes are configured using the ip route global configuration command and specifying an administrative distance. If no administrative distance is configured, the default value (1) is used.

What is the command to configure a static route?

To configure a static route, the command could be: Router(config)#ip route 10.2. 3.0 255.255.

What type of static route is a floating static route?

Configure Summary and Floating Static Routes Floating static routes are static routes that have an administrative distance greater than the administrative distance of another static route or dynamic routes. They are very useful when providing a backup to a primary link, as shown in the figure.