CX11x, CX31x, CX710 (Earlier Than V6.03) , and CX91x Series Switch Modules V100R001C10 Command Reference 17

This document provides the configuration commands of each feature supported by the CX11x&CX31x&CX91x series switches module, including the syntax, view, default level, description, parameters, usage guideline, related commands, and example of each command.

This document provides the configuration commands of each feature supported by the CX11x&CX31x&CX91x series switches module, including the syntax, view, default level, description, parameters, usage guideline, related commands, and example of each command.

ip route-static default-preference

ip route-static default-preference

Function

The ip route-static default-preference command sets the default preference for IPv4 static routes.

The undo ip route-static default-preference command restores the default preference value of IPv4 static routes.

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

Format

ip route-static default-preference preference

undo ip route-static default-preference

Parameters

Parameter Description Value
preference Specifies the default preference for IPv4 static routes. The value is an integer that ranges from 1 to 255.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

You can change the preference of a static route to change the status of the route. To change the default preference of a new IPv4 static route, run the ip route-static default-preference command.

Example

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

<HUAWEI> system-view
[~HUAWEI] ip route-static default-preference 70
Translation
Favorite
Download
Update Date:2025-07-01
Document ID:EDOC1000041693
Views:5041988
Downloads:2013
Average rating:4.0Points

Digital Signature File

digtal sigature tool