R3303-HP HSR6800 Routers MPLS Command Reference

51
ip-prefix prefix-name: Specifies an IP prefix list to filter routing entries, so that static routes and IGP routes
that denied by the IP prefix list cannot trigger LSP establishment. prefix-name indicates the name of the IP
prefix list, a string of 1 to 19 characters.
Usage guidelines
An IP prefix list affects only static routes and IGP routes.
For an LSP to be established, an exactly matching routing entry must exist on the LSR. For example, on an
LSR, to establish an LSP to a loopback address with a 32-bit mask, there must be an exactly matching host
routing entry on the LSR.
If the vpn-instance vpn-instance-name option is specified, the command configures an LSP establishment
triggering policy for the specified VPN. Otherwise, the command configures an LSP establishment
triggering policy for the public network routes.
For information about IP prefix list, see Layer 3—IP Routing Configuration Guide.
Examples
# Specify that all routing entries can trigger establishment of LDP LSPs.
<Sysname> system-view
[Sysname] mpls
[Sysname-mpls] lsp-trigger all
lsr-id
Use lsr-id to configure an LDP LSR ID.
Use undo lsr-id to remove a configured LDP LSR ID and all LDP sessions.
Syntax
lsr-id lsr-id
undo lsr-id
Default
The LDP LSR ID takes the value of the MPLS LSR ID.
Views
MPLS LDP view, MPLS LDP VPN instance view
Default command level
2: System level
Parameters
lsr-id: Specifies the LDP LSR ID.
Examples
# Configure the LDP LSR ID of the public network as 2.2.2.3.
<Sysname> system-view
[Sysname] mpls ldp
[Sysname-mpls-ldp] lsr-id 2.2.2.3
# Configure the LDP LSR ID of VPN instance vpn1 as 4.2.2.3.
<Sysname> system-view
[Sysname] mpls ldp vpn-instance vpn1