Hà Nội: NTT03, Line 1, Thống Nhất Complex, 82 Nguyễn Tuân, Thanh Xuân, Hà Nội. ● HCM: Số 31B, Đường 1, Phường An Phú, Quận 2 (Thủ Đức), TP HCM. ===> Đơn Vị Hàng Đầu Trong Lĩnh Vực Cung Cấp Thiết Bị Security - Network - Wifi - CCTV - Conference - Máy chủ Server - Lưu trữ Storge.
Danh mục sản phẩm

Configure a Floating Route

Configuration Condition

None

Configure a Floating Route

Multiple routes are available to the same destination network. The output interfaces or gateway addresses of the routes are different, and the priorities of the routes are also different. The route with the higher priority becomes the primary route while the route with the lower priority becomes the floating route. In the routing table, only the primary route is visible. The floating table appears in the routing table only when the primary route becomes invalid. Therefore, the floating route is usually used as a backup route.

Table 3-6 Configuring a Floating Route

Step

Command

Description

Enter the global configuration mode.

configure terminal

-

Configure the primary route.

ip route destination-ip-address destination-mask interface-name1 distance1

Mandatory.

The output interface of the primary route is interface-name1 and the priority of the route is distance1.

Configure the floating route.

ip route destination-ip-address destination-mask interface-name2 distance2

Mandatory.

The output interface of the floating route is interface-name2, the priority is distance2. The value of distance2 must be larger than the value of distance1.

note


  • In configuring the priorities of the routes, not that the smaller the distance value is, the higher the priority is.