337
Syntax
route-distinguisher route-distinguisher
View
VPN instance view
Default level
2: System level
Parameters
route-distinguisher: Specifies the RD for the VPN instance, which is a string of 3 to 21 characters in one of
the following three formats:
• 16 - b i t AS n u m b e r :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 65,536.
For example, 65536:1.
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
Description
Use the route-tag command to configure the tag for identifying injected VPN routes.
Use the undo route-tag command to restore the default.
If the AS number is not greater than 65,535, the first two octets of the default 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 tag is 3,489,661,028 in decimal. If the AS number is greater than 65,535, the default tag is 0.
An OSPF instance-related VPN instance on a PE is usually configured with a VPN route tag, which must
be included in Type 5/7 LSAs. Configure the same route tag for PEs in the same AS. The route tag is
local significant and can be configured and take effect on only PEs receiving BGP routes and generating
OSPF LSAs. It is not transferred in any BGP extended community attribute. Different OSPF processes can
have the same route tag.
Tags configured with different commands have different priorities:
• A tag configured with the import-route command has the highest priority.
• A tag configured with the route-tag command has the second highest priority.
• A tag configured with the default tag command has the lowest priority.
A received Type 5 or Type 7 LSA is neglected in route calculation if its tag is the same as the local one.
Related commands: import-route (Layer 3—IP Routing Command Reference).
Syntax
route-tag tag-value
undo route-tag