R3303-HP HSR6800 Routers MPLS Command Reference
342
route-distinguisher (VPN instance view)
Use route-distinguisher to configure an RD for a VPN instance.
Syntax
route-distinguisher route-distinguisher
Views
VPN instance view
Default command level
2: System level
Parameters
route-distinguisher: RD for the VPN instance, a string of 3 to 21 characters in one of these 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.
• 32-bit AS number:16-bit user-defined number, where the minimum value of the AS number is 65536.
For example, 65536:1.
Usage guidelines
An RD is used to create the routing and FIB of a VPN. By prefixing an RD to an IPv4 prefix, you get a VPN
IPv4 prefix unique globally.
No RD is configured by default; you must configure an RD for each VPN instance.
A VPN instance takes effect only after you configure an RD for it.
Once you configure an RD for a VPN, you cannot remove the association.
You cannot change an RD directly; you can only delete the VPN instance, and then re-create the VPN
instance and re-configure a new RD.
Examples
# Configure the RD of VPN instance vpn1.
<Sysname> system-view
[Sysname] ip vpn-instance vpn1
[Sysname-vpn-instance-vpn1] route-distinguisher 22:1
route-tag
Use route-tag to configure an external route tag for imported VPN routes.
Use undo route-tag to restore the default.
Syntax
route-tag tag-value
undo route-tag
Default
If BGP is running in the MPLS backbone and the BGP's AS number is not greater than 65535, the first two
octets of the default external route tag is always 0xD000 and the last two octets is the AS number of the
local BGP. For example, if the local BGP AS number is 100, the default value of the external route tag is










