The ip static-routing-table route-policy command applies a routing policy to static routes in the VPN instance IPv4 address family.
The undo ip static-routing-table route-policy command cancels the routing policy that is applied to static routes in the VPN instance IPv4 address family.
By default, no routing policy is applied to static routes in the VPN instance IPv4 address family.
Usage Scenario
To perform traffic statistics collection, authentication, and accounting based on static routes, run the ip static-routing-table route-policy (VPN instance view) command to apply a routing policy to static routes in the VPN instance IPv4 address family 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
1.The routing policy has been configured using the route-policy command.
2.For static routes, they are categorized based on the ACL, address prefix list, and route tag.Precautions
To apply a routing policy to static routes in the VPN instance IPv4 address family, run the ip route-policy (VPN instance IPv4 address family view) command. To apply a routing policy to static routes in the public network routing table, run the ip route-policy (system view) command.
<HUAWEI> system-view [~HUAWEI] ip ip-prefix pr1 index 10 permit 10.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 vpn-instance vpna [*HUAWEI-vpn-instance-vpna] route-distinguisher 100:1 [*HUAWEI-vpn-instance-vpna-af-ipv4] vpn-target 1:1 [*HUAWEI-vpn-instance-vpna-af-ipv4] ip static-routing-table route-policy ip_qos_rp