ip direct-routing-table (System view)

Function

The ip direct-routing-table command applies a route-policy to direct routes on the public network.

The undo ip direct-routing-table command cancels the route-policy that is applied to direct routes on the public network.

By default, no route-policy is applied to direct routes on the public network.

Format

ip direct-routing-table route-policy route-policy-name

undo ip direct-routing-table

undo ip direct-routing-table all

Parameters

Parameter Description Value
direct-routing-table

Applies a route-policy to direct routes.

-

all

Cancels the route-policy that is applied to direct or static routes on the public network and all VPN instances.

-

route-policy route-policy-name

Specifies the name of a route-policy.

The name is a string of 1 to 200 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
route-base write

Usage Guidelines

Usage Scenario

To perform traffic statistics collection, authentication, and accounting based on direct routes, run the ip route-policy command to apply a route-policy to public network direct routes so that QoS information, such as the traffic behavior or local ID that is associated with the direct routes can be set for QoS information management.

Prerequisites

  1. The route-policy has been configured using the route-policy command.
  2. Routes have been categorized based on specific conditions.
    • For direct routes, they are categorized based on the ACL and IP prefix list.
    • For static routes, they are categorized based on the ACL, IP prefix list, and route tag.

Example

# Apply a route-policy named ip_qos_rp to direct routes and set the QoS local ID to 123 for 1.1.1.1/32.
<HUAWEI> system-view
[~HUAWEI] ip ip-prefix pr1 index 10 permit 1.1.1.1 32
[*HUAWEI] route-policy ip_qos_rp permit node 10
[*HUAWEI-route-policy] if-match ip-prefix pr1
[*HUAWEI-route-policy] apply qos-local-id 123
[*HUAWEI-route-policy] commit
[~HUAWEI-route-policy] quit
[~HUAWEI] ip direct-routing-table route-policy ip_qos_rp
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >