import-rib vpn-instance protocol isis

Function

The ip import-rib vpn-instance protocol isis command imports routes in a VPN instance routing table to the public network routing table.

The undo ip import-rib vpn-instance protocol isis command restores the default configuration.

The ipv6 import-rib vpn-instance protocol isis command enables a device to import IPv6 routes from a VPN instance to the public network instance's IPv6 routing table.

The undo ipv6 import-rib vpn-instance protocol isis command disables a device from importing IPv6 routes from a VPN instance to the public network instance's IPv6 routing table.

By default, routes in VPN instance routing tables are not imported to the public network routing table.

By default, a device does not import IPv6 routes from a VPN instance to the public network instance's IPv6 routing table.

Format

ip import-rib vpn-instance vpn-instance-name protocol isis process-id [ valid-route ] [ route-policy route-policy-name | route-filter route-filter-name ]

undo ip import-rib vpn-instance vpn-instance-name protocol isis process-id [ valid-route ] [ route-policy route-policy-name | route-filter route-filter-name ]

Parameters

Parameter Description Value
vpn-instance-name

Specifies the name of a VPN instance.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string.

protocol

Specifies the type of routes to be imported.

-

isis process-id

Imports IS-IS routes of an IS-IS process with the specified ID.

The value is an integer ranging from 1 to 4294967295.

valid-route

Imports only the valid routes of the specified route type.

-

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.

route-filter route-filter-name

Specifies the name of a route-filter.

The value is a string of 1 to 200 case-sensitive characters, spaces not supported. If parameters are included in the referenced route-filter, specify values for them in the format of (var1, var2, ...var8) behind the route-filter name. A maximum of eight parameters can be specified, and each value ranges from 1 to 200 characters.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
isis write

Usage Guidelines

Usage Scenario

In the VPN scenario, one VPN can communicate with another VPN if they have matching VPN targets, but VPNs cannot communicate with the public network. To enable a VPN to communicate with the public network, you have to ensure that the VPN and public network can obtain routes to each other. To import the VPN instance routes to public network, run the ip import-rib vpn-instance command.

In an intelligent traffic control scenario, traffic of different users are distributed to different VPNs. To enable public-network traffic to reach the VPNs, run the ip import-rib vpn-instance command to import routes in each VPN instance routing table to the public network routing table.

Traffic forwarding relies on direct routes (Vlink direct routes) generated based on user entries. When VLAN tag termination sub-interfaces are used for route import between VPN and public network, Vlink direct routes cannot be imported. As a result, traffic forwarding is interrupted. To solve this problem, route import between VPN and public network newly supports import of Vlink direct routes.

Precautions

If you run the ip import-rib vpn-instance command on a device without adding the valid-route, the device will import the optimal IP route of the specified type from the specified VPN instance to the public network instance's corresponding routing table. If the imported route is preferred in this routing table, the device will advertise the route to other devices and deliver the route to the IP routing table to guide traffic forwarding.

If you run the ip import-rib vpn-instance command with only the valid-route keyword added, the device will import the valid IP routes of the specified type from the specified VPN instance to the public network instance's corresponding routing table. If the imported routes are preferred in this routing table, the device will advertise these routes to other devices and deliver these routes to the IP routing table to guide traffic forwarding.

Example

# Configure the device to import IS-IS routes in the routing table of the VPN instance vrf1 to the public network routing table.
<HUAWEI> system-view
[~HUAWEI] ip vpn-instance vrf1
[*HUAWEI-vpn-instance-vrf1] ipv4-family
[*HUAWEI-vpn-instance-vrf1-af-ipv4] route-distinguisher 100:1
[*HUAWEI-vpn-instance-vrf1-af-ipv4] vpn-target 111:1 both
[*HUAWEI-vpn-instance-vrf1-af-ipv4] quit
[*HUAWEI-vpn-instance-vrf1] quit
[*HUAWEI] ip import-rib vpn-instance vrf1 protocol isis 1 valid-route
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >