< Home

ipv6 route-static default-preference

Function

The ipv6 route-static default-preference command sets the default preference for IPv6 static routes.

The undo ipv6 route-static default-preference restores the default preference of IPv6 static routes.

By default, the default preference of IPv6 static routes is 60.

Format

ipv6 route-static default-preference preference

undo ipv6 route-static default-preference

Parameters

Parameter Description Value
preference Specifies the default preference of IPv6 static routes. It is an integer ranging from 1 to 255. The smaller the value is, the higher the preference is.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Applicable Environment

You can change the status of a route by changing its preference. You can use the ipv6 route-static default-preference command to change the default preference for all the new IPv6 static routes.

Configuration Impact

After the ipv6 route-static default-preference command is used, all the new IPv6 static routes that use the default preference are restored to the new default preference.

Precautions

After a default preference is specified, the new default preference is valid for subsequent rather than existing IPv6 static routes.

Example

# Set the default preference of IPv6 static routes to 70.

<sysname> system-view
[sysname] ipv6 route-static default-preference 70
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >