R3303-HP HSR6800 Routers MPLS Command Reference

316
Examples
# Enter IPv4 VPN view.
<Sysname> system-view
[Sysname] ip vpn-instance vpn1
[Sysname-vpn-instance-vpn1] ipv4-family
[Sysname-vpn-ipv4-vpn1]
mpls ldp vpn-instance
Use mpls ldp vpn-instance to enable LDP for a VPN instance, create an LDP instance, and enter MPLS
LDP VPN instance view.
Use undo mpls ldp vpn-instance to disable LDP for a VPN instance and remove the LDP instance.
Syntax
mpls ldp vpn-instance vpn-instance-name
undo mpls ldp vpn-instance vpn-instance-name
Default
A VPN instance is not enabled with LDP.
Views
System view
Default command level
2: System level
Parameters
vpn-instance-name: Specifies the name of the VPN instance, a case-sensitive string of 1 to 31 characters.
Usage guidelines
Before configuring the mpls ldp vpn-instance command, you must configure the MPLS LSR ID and enable
MPLS for the device.
Examples
# Enable LDP for VPN instance vpn1, create the LDP instance, and enter the MPLS LDP VPN instance
view.
<Sysname> System-view
[Sysname] mpls ldp vpn-instance vpn1
[Sysname-mpls-ldp-vpn-instance-vpn1]
Related commands
mpls
mpls lsr-id
nesting-vpn
Use nesting-vpn to enable the nested VPN function.
Use undo nesting-vpn to disable the nested VPN function.