The ip route-isp command sets ISP routes.
The undo ip route-isp command deletes ISP routes.
ip route-isp isp-name interface interface-type interface-number nexthop nexthop-address [ preference preference ] [ track ip-link link-name ]
undo ip route-isp isp-name interface interface-type interface-number nexthop nexthop-address
| Parameter | Description | Value |
|---|---|---|
isp-name |
Specifies the name of an ISP address set. |
The ISP address set must exist on the device. |
interface-type interface-number |
Specifies the outbound interface of a route. |
Currently, the following types of interfaces can serve as outbound interfaces:
|
nexthop-address |
Specifies the next-hop IP address of the route. |
The value is in dotted decimal notation. |
preference preference |
Specifies the preference. |
The value is an integer ranging from 1 to 255. The default value is 70. A smaller value indicates a higher preference. |
link-name |
Specifies the IP-link bound to the route. |
The IP-link name must exist on the device. |
By default, there is no ISP route.
The configuration of ISP routes allows you to specify one or multiple outbound interfaces or next hops for traffic belonging to one ISP address set.
You can repeatedly run the ip route-isp isp-name interface interface-type interface-number nexthop nexthop-address [ preference preference ] [ track ip-link link-name ] command to configure multiple ISP routes.
Usage Scenarios
Traffic whose destination addresses belong to ISP address set ISP_A is forwarded through interface A; traffic whose destination addresses belong to ISP address set ISP_B is forwarded through interface B. This scenario is also called ISP link selection.
Traffic whose destination addresses belong to one ISP address set is forwarded through interfaces A, B, and C based on intelligent uplink selection. This scenario is also called equal-cost ISP route-based global intelligent uplink selection.
Traffic whose destination addresses belong to multiple ISP address sets ISP_A, ISP_B, and ISP_C is forwarded through one outbound interface.
Precaution
For one ISP address set, if the NULL interface and another interface are both specified as outbound interfaces, ISP routes whose outbound interface is the NULL interface automatically become invalid.
If the outbound interface is the NULL interface or a tunnel interface, the next hop can be any (except 0.0.0.0).