< Home

ip route-isp

Function

The ip route-isp command sets ISP routes.

The undo ip route-isp command deletes ISP routes.

Format

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

Parameters

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:
  • Ethernet interface and its subinterface
  • Eth-Trunk interface and its subinterface
  • NULL interface
  • VLAN interface
  • Tunnel interface
  • VT interface

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.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

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

ISP routes are mainly used in the following 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).

Example

# Configure an ISP route whose destination address is ISP address set isp_1, outbound interface is GigabitEthernet 0/0/1, and next-hop address is 1.1.1.2.

<sysname> system-view
[sysname] ip route-isp isp_1 interface GigabitEthernet 0/0/1 nexthop 1.1.1.2
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >