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).
preference (OSPFv3)

preference (OSPFv3)


The preference command sets the preference for an OSPFv3 route.

The undo preference command restores the default setting.

By default, the preference of the OSPFv3 route is 10. When ASE is specified, the default value is 150.


preference [ ase ] { preference | route-policy route-policy-name }*

undo preference [ ase ]


Parameter Description Value
ase Sets the preference for an AS external route or an NSSA route. -
preference Specifies the preference for OSPFv3 routes. It is an integer ranging from 1 to 255.
route-policy route-policy-name Specifies the name of a routing policy and sets the preference for specified routes. The name is a string of 1 to 200 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.


OSPFv3 view

Default Level

2: Configuration level

Usage Guidelines

The smaller the preference value, the higher the preference.

Multiple dynamic routing protocols may be run on a switch at the same time. Consequently, there is a problem of sharing and selecting routing information among routing protocols. Therefore, the system sets a default reference for each routing protocol. If different routing protocols find multiple routes to the same destination, the route discovered by the routing protocol with a higher preference is selected to forward IP packets.


# Set the preference for OSPFv3 routes.

<HUAWEI> system-view
[~HUAWEI] ospfv3 1
[*HUAWEI-ospfv3-1] preference 5
Updated: 2019-03-21

Document ID: EDOC1000166501

Views: 88289

Downloads: 405

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Previous Next