vpn-instance

Use vpn-instance to enable LDP for a VPN instance and enter LDP-VPN instance view, or enter the view of an existing LDP-VPN instance.

Use undo vpn-instance to delete the LDP-VPN instance.

Syntax

vpn-instance vpn-instance-name

undo vpn-instance vpn-instance-name

Default

LDP is disabled for a VPN instance.

Views

LDP view

Predefined user roles

network-admin

Parameters

vpn-instance-name: Specifies a VPN instance by its name, a case-sensitive string of 1 to 31 characters. The VPN instance must have been created by the ip vpn-instance command in system view.

Usage guidelines

Enabling LDP for VPN instances is used for the Carrier's Carrier network that uses LDP between the Level 1 carrier and Level 2 carrier PEs. In such a network, you must enable LDP for each VPN instance on each Level 1 carrier PE.

The GR, NSR, and LDP-IGP synchronization commands, the dscp command, the session protection command, and the targeted-peer command are available only in LDP view. All other commands available in LDP view are available in LDP-VPN instance view.

Commands executed in LDP view take effect only on the public network. Commands executed in LDP-VPN instance view take effect only on the specified VPN instance. The dscp command, NSR commands, and GR commands are global commands and take effect on all VPN instances and the public network.

Examples

# Enable LDP for VPN instance vpn1 and enter LDP-VPN instance view.

<Sysname> system-view
[Sysname] mpls ldp
[Sysname-ldp] vpn-instance vpn1
[Sysname-ldp-vpn-instance-vpn1]

Related commands

ip vpn-instance

mpls ldp