The ip static-routing-table command applies a route-policy to static routes on the public network.
The undo ip static-routing-table command cancels the route-policy that is applied to static routes on the public network.
By default, no route-policy is applied to static routes on the public network.
Parameter | Description | Value |
---|---|---|
static-routing-table |
Applies a route-policy to static 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 static routes, run the ip route-policy command to apply a route-policy to public network static routes so that QoS information, such as the traffic behavior or local ID that is associated with the static 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 static-routing-table route-policy ip_qos_rp