This section describes how to configure ISP link selection.
The procedure for configuring ISP link selection is as follows:
An ISP address file stores all IP addresses of an ISP network. IP addresses of different ISP networks are written into different files. You can access the Add Carrier page, download the address library file template, edit it locally.
The ISP address files must be .csv files.
You can only set IP segment as Destination IP Address Range.
If the ISP address file contains a large number of addresses and the number of routes generated after this file is applied exceeds the device specifications, excess ISP routes do not take effect.
Upload ISP address files to the FW using SFTP. Details are omitted. The imported ISP address files are stored in the isp folder in the root directory.
Operation |
Command |
Description |
|---|---|---|
Access the system view |
system-view |
- |
Create an ISP name and associate it with the ISP address file |
isp name isp-name set filename filename |
After you import an ISP address file, you need to create a name for the file. Usually, you can use the ISP name. The FW uses the ISP address file to generate an ISP address group. Content of the address group cannot be modified directly, but you can modify the ISP address file and import it again to modify the address group. You can reference the ISP address group in policy-based routes as the source or destination address. Each ISP name corresponds to only one ISP address file, but one ISP address file can correspond to multiple ISP names. |
Configure an ISP route You can configure an ISP route in either of the following methods: |
||
Enabling ISP Routes on Interfaces |
|
Before adding an interface to an ISP interface group, configure an IP address and a gateway address (using the gateway command) for the interface. By default, after an interface is added to an ISP interface group, a specific ISP route (enable) will be delivered. An ISP route is also called an operator route. In a routing table, the protocol type of an ISP route is user network route (UNR), and the priority value is 70, which is greater than that (60) of a static route. If ISP routes are delivered after interfaces are added to an ISP interface group, the FW will generate ISP routes in batches for a specific operator. The destination addresses of these ISP routes are IP addresses in the ISP address file, and the next-hop addresses of these ISP routes are gateway addresses configured for interfaces. Compared with manual collection of massive routes, using ISP link selection is more convenient. |
Directly Creating ISP Routes |
ip route-isp isp-name interface interface-type interface-number nexthop nexthop-address [ preference preference ] [ track ip-link link-name ] |
By default, there is no ISP route. |
To improve traffic forwarding reliability, ISP link selection can function with Health Check. Ensure that the health check is created in advance. If the health check result indicates that a link is faulty, the FW will delete the ISP route entry. Therefore, traffic will neither match this route nor being forwarded to the faulty link. When the link recovers, the ISP route entry is created again, and traffic can be forwarded on this route.
Operation |
Command |
Description |
|---|---|---|
Access the interface view |
interface interface-type { interface-number | interface-number.subinterface-number } |
- |
Apply health check |
healthcheck healthcheck-name |
Health check must have been configured. |