R3303-HP 6600/HSR6600 Routers MPLS Command Reference Guide

223
all: Resets all L2VPN BGP sessions.
external: Resets L2VPN EBGP sessions.
internal: Resets L2VPN IBGP sessions.
Examples
# Reset all L2VPN BGP sessions.
<Sysname> reset bgp l2vpn all
route-distinguisher (MPLS L2VPN view)
Use route-distinguisher to configure an RD for the VPN.
Syntax
route-distinguisher route-distinguisher
Views
MPLS L2VPN view
Default command level
2: System level
Parameters
route-distinguisher: Specifies the RD in the format of nn:nn or IP-address:nn. It can be a string of 3 to 21
characters.
An RD can be in one of these formats:
16 - bi t AS nu mb er :32-bit user-defined number. For example, 101:3.
32-bit IP address:16-bit user-defined number. For example, 192.168.122.15:1.
32-bit AS number:16-bit user-defined number, where the AS number must be equal to or greater
than 65536. For example, 65536:1.
Usage guidelines
Different VPNs on a PE must have different RDs. A VPN can have the same or different RDs on different
PEs.
No RD is configured by default. You must configure an RD for each VPN. A VPN takes effect only when
it is configured with an RD.
Once you configure an RD for a VPN, you cannot remove the association between the RD and the VPN.
You cannot change an RD directly. You can only delete the VPN and then re-create the VPN by using the
new RD.
Examples
# Configure the RD of a VPN.
<Sysname> system-view
[Sysname] mpls l2vpn vpn1 encapsulation ppp
[Sysname-mpls-l2vpn-vpn1] route-distinguisher 300:1
service-instance
Use service-instance to create a service instance on the current interface and enter service instance view.