Ip Route-Static Default-Preference; Ipv6 Static Routing Configuration Commands - H3C S5120-EI Series Configuration Commands

Layer 3 - ip routing command reference
Hide thumbs Also See for S5120-EI Series:
Table of Contents

Advertisement

Examples
# Configure a static route, whose destination address is 1.1.1.1/24, next hop address is 2.2.2.2, and
description information is for internet & intranet.
<Sysname> system-view
[Sysname] ip route-static 1.1.1.1 24 2.2.2.2 description for internet & intranet

ip route-static default-preference

Syntax
ip route-static default-preference default-preference-value
undo ip route-static default-preference
View
System view
Default level
2: System level
Parameters
default-preference-value: Default preference for static routes, which is in the range of 1 to 255.
Description
Use the ip route-static default-preference command to configure the default preference for static routes.
Use the undo ip route-static default-preference command to restore the default.
By default, the default preference of static routes is 60.
If no preference is specified when configuring a static route, the default preference is used.
When the default preference is re-configured, it applies to newly added static routes only.
Related commands: ip route-static and display ip routing-table.
Examples
# Set the default preference of static routes to 120.
<Sysname> system-view
[Sysname] ip route-static default-preference 120

IPv6 static routing configuration commands

NOTE:
router
The term
in this document refers to both routers and Layer 3 switches.
20

Advertisement

Table of Contents
loading

Table of Contents