< Home

route-tag (OSPFv3)

Function

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.

Format

route-tag tag-value

undo route-tag

Parameters

Parameter Description Value

tag-value

Specifies the tag value for the imported VPN route.

It is an integer ranging from 0 to 4294967295.

Views

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. You are advised 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.

If a BGP AS number is greater than 65535, the default tag 0 is used. You can use the command to change the tag in this case.

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.

Example

# 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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >