1668
C
97: MPLS L2VPN C
HAPTER
View
Parameter
Description
Example
route-distinguisher (MPLS L2VPN view)
Syntax
View
Parameter
Description
Example
C
ONFIGURATION
OMMANDS
User view
as-number: Resets L2VPN BGP connections with the peers in the AS with this
number. The AS number must be in the range 1 to 65535.
ip-address: Resets the L2VPN BGP connection to the peer with this IP address.
all: Resets all L2VPN BGP connections.
external: Resets L2VPN EBGP sessions.
internal: Resets L2VPN IBGP sessions.
Use the
reset bgp l2vpn
# Reset all L2VPN BGP connections.
<Sysname> reset bgp l2vpn all
route-distinguisher route-distinguisher
MPLS L2VPN view
route-distinguisher: Specifies the route distinguisher (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 either of the following formats:
16-bit AS number: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.
■
Use the
route-distinguisher
Different VPNs on a PE must have different RDs, while a VPN can have the same or
different RDs on different PEs.
n
You cannot change an RD directly; you can only delete the VPN and then
■
re-create the VPN using the new RD.
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.
# Configure the RD of a VPN.
<Sysname> system-view
[Sysname] mpls l2vpn vpn1 encapsulation ppp
[Sysname-mpls-l2vpn-vpn1] route-distinguisher 300:1
command to reset L2VPN BGP connections.
command to configure an RD for the VPN.