No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.


Command Reference

CloudEngine 8800, 7800, 6800, and 5800 V200R002C50

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
route-tag (OSPFv3)

route-tag (OSPFv3)


The route-tag command sets the tag value for imported VPN routes.

The undo route-tag command restores the default setting.

By default, the first two bytes of the tag value are fixed as 0xD000, and the last two bytes are the local BGP AS number. For example, if the local BGP AS number is 100, the default tag value in decimal notation is 3489661028.


route-tag tag-value

undo route-tag


Parameter Description Value
tag-value Specifies the tag value for the imported VPN route. It is an integer ranging from 0 to 4294967295.


OSPFv3 view

Default Level

2: Configuration level

Usage Guidelines

On a PE, the VPN instance associated with an OSPFv3 instance is configured with a VPN route tag. This route tag must be carried in Type 5 or Type 7 LSAs. It is recommended to configure the same route tag for PEs in the same area. Not transmitted in BGP extended community attributes, the VPN route tag is configured and takes effect only on the PEs that receive BGP routes and generate OSPFv3 LSAs. Different OSPFv3 processes can be configured with the same route tag.

The only difference between the tag value set through the route-tag command and the tag value set through other commands is the preference:

  • The preference of the tag value set through the import-route command is the highest.

  • The preference of the tag value set through the route-tag command is medium.

  • The preference of the tag value set through the default tag tag command is the lowest.

If an Type 5 or Type 7 LSA whose tag is the same as the local tag is received, this LSA is ignored during route calculation.


# Set the tag value of the imported VPN routes in OSPFv3 process 100 to 100.

<HUAWEI> system-view
[~HUAWEI] ip vpn-instance huawei
[*HUAWEI-vpn-instance-huawei] ipv6-family
[*HUAWEI-vpn-instance-huawei-af-ipv6] route-distinguisher 100:1
[*HUAWEI-vpn-instance-huawei-af-ipv6] quit
[*HUAWEI-vpn-instance-huawei] quit
[*HUAWEI] ospfv3 100 vpn-instance huawei
[*HUAWEI-ospfv3-100] route-tag 100
Updated: 2019-03-21

Document ID: EDOC1000166501

Views: 87591

Downloads: 400

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Previous Next