How to configure floating routing?

How to configure floating routing?

[[416937]]

Experimental requirements

ISP-1 and ISP-2 use the same loopback port address. By changing the administrative distance of the GW default route, the GW can select the default route with a smaller administrative distance as the primary route and the default route with a larger administrative distance as the backup route, so as to achieve the purpose of selecting the best route for data communication.

IP Address Table

Experimental Configuration

as follows

Configure ISP-1:

  1. ISP-1(config)#interface f0/0
  2. ISP-1(config-if)#ipaddress 192.168.1.1 255.255.255.0 ISP-1(config-if)#noshutdown
  3. ISP-1(config-if)#exit
  4. ISP-1(config)#interface loopback 0
  5. ISP-1(config-if)#ipaddress 123.1.1.1 255.255.255.0 ISP-1(config-if)#exit

Configure ISP-2:

  1. ISP-2(config)#interfacef0/0
  2. ISP-2(config-if)#ipaddress192.168.2.2 255.255.255.0
  3. ISP-2(config-if)#noshutdown
  4. ISP-2(config-if)#exit
  5. ISP-2(config)#interfaceloopback0
  6. ISP-2(config-if)#ipaddress 123.1.1.1 255.255.255.0 ISP-2(config-if)#exit

Configure GW:

  1. GW(config)#interface f1/0
  2. GW(config-if)#ipaddress 192.168.1.2 255.255.255.0
  3. GW(config-if)#noshutdown
  4. GW(config-if)#exit
  5. GW(config)#interface f0/0
  6. GW(config-if)#ipaddress 192.168.2.1 255.255.255.0
  7. GW(config-if)#noshutdown
  8. GW(config-if)#exit
  9. GW(config)#iproute 123.1.1.1 255.255.255.255192.168.1.1 //

The line is the main line, the management distance is changed to 10, and this line is set as the backup line.

GW(config)#iproute 123.1.1.1 255.255.255.255192.168.2.2 10 //Set this line as the default route

Next: show iproute -----à Check the routing table. The GW shows that there are two links to the outgoing address 123.1.1.1, with administrative distances of 1 and 10 respectively.

Experimental Summary

When the administrative distance is not changed, the GW cannot reach the address 123.1.1.1. However, communication is possible by shutting down any interface on the GW.

After the administrative distance is changed, the GW will select the line with the smaller administrative distance as the primary line and communicate with the 123.1.1.1 address from the primary line.

<<:  Foreign media: As of June, South Korea's 5G users have exceeded 16 million

>>:  5G lacks "soul"? Advanced technology is coming

Recommend

Does the cloud-native 5G core network need a DPU?

In 2022, the number of 5G connections worldwide w...

Teach you how to distinguish inferior cables

1. The harm of fake and inferior wires Electric w...

A brief discussion on SD-WAN troubleshooting

What do you do when your SD-WAN has a problem or ...

How big is the bandwidth of 1M cloud server? It is enough for 90% of websites

1M, as the lowest bandwidth configuration of clou...

The world's first batch of 5G-enabled Wi-Fi hotspots are here

There is no need to wait until 2020. Now the worl...

Redis: How do I communicate with the client?

[[406813]] There is a saying in the martial arts ...

Huawei releases a full range of 5G-A solutions to make 5G-A a reality

[ Dubai , UAE , October 11, 2023 ] During the Glo...

How future technologies will improve physical security in data centers

In recent years, the demand for security solution...