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.
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. |
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
<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