ingress-lsp trigger route-policy (BGP-VPN instance IPv4 address family view/BGP-labeled VPN instance IPv4 address family view)

Function

The ingress-lsp trigger route-policy command specifies a routing policy to control the creation of ingress LSPs based on private labeled BGP IPv4 routes.

The undo ingress-lsp trigger command restores the default configuration.

By default, ingress LSPs are not created based on received private BGP labeled routes.

Format

ingress-lsp trigger route-policy policy-name

undo ingress-lsp trigger

Parameters

Parameter Description Value
route-policy policy-name

Specifies the name of a routing policy to be used to create ingress LSPs based on BGP labeled routes.

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

BGP-labeled VPN instance IPv4 address family view, BGP-VPN instance IPv4 address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

In the CSC scenario, BGP VPN labeled routes are used to establish end-to-end LSPs. To create ingress LSPs for BGP labeled routes that match a routing policy, run this command.

Prerequisites

If the routing policy specified in the ingress-lsp trigger command does not exist, you need to configure the routing policy using the route-policy command first.

Configuration Impact

If the ingress-lsp trigger command is run more than once, the latest configuration overrides the previous one.

Example

# Specify a routing policy named test-policy to control the creation of ingress LSPs based on private labeled IPv4 routes.
<HUAWEI> system-view
[~HUAWEI] ip vpn-instance vpna
[*HUAWEI-vpn-instance-vpna] ipv4-family
[*HUAWEI-vpn-instance-vpna-af-ipv4] route-distinguisher 1:1
[*HUAWEI-vpn-instance-vpna-af-ipv4] quit
[*HUAWEI-vpn-instance-vpna] quit
[*HUAWEI] route-policy test-policy permit node 10
[*HUAWEI-route-policy] quit
[*HUAWEI] bgp 100
[*HUAWEI-bgp] ipv4-family vpn-instance vpna
[*HUAWEI-bgp-vpna] ingress-lsp trigger route-policy test-policy
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >