ip direct-routing-table

Function

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.

Format

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

undo ip direct-routing-table

Parameters

Parameter Description Value
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

VPN instance IPv4 address family view, VPN instance 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 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

  1. The routing policy has been configured using the route-policy command.
  2. For direct routes, they are categorized based on the ACL and address prefix list.

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.

Example

# Apply routing policy ip_qos_rp to direct routes in the VPN instance IPv4 address family and set the QoS local ID to 123 for route 10.1.1.1/32.
<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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >