< Home

(Optional) Setting the Default Preference Value for IPv4 Static Routes

Context

The default preference value of IPv4 static routes affects route selection. When an IPv4 static route is configured without specifying a preference value, the default preference value is used.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run ip route-static default-preference preference

    The default preference value of static routes is set.

    The default preference value of static routes is initially set to 60.

    After the default preference value is reconfigured, the new default preference value is valid only for new IPv4 static routes.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >