The ip direct-routing-table command applies a routing policy to direct in the VPN instance IPv4 address family.
The undo ip direct-routing-table command cancels the routing policy that is applied to direct in the VPN instance IPv4 address family.
By default, no routing policy is applied to direct in the VPN instance IPv4 address family.
Usage Scenario
To perform traffic statistics collection, authentication, and accounting based on direct routes, run the ip direct-routing-table command to apply a routing policy to direct in the VPN instance IPv4 address family 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
Precautions
To apply a routing policy to direct 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 direct 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 direct-routing-table route-policy ip_qos_rp