Ip Route-Static Default-Preference; Ip Route-Static Fast-Reroute - H3C S5820X Series Command Reference Manual

Layer 3 - ip routing
Hide thumbs Also See for S5820X Series:
Table of Contents

Advertisement

# Configure a static route for a VPN instance named vpn1: the destination address is 1.1.1.1/16 and the
next hop address is 1.1.1.2, which is the address of this VPN instance.
<Sysname> system-view
[Sysname] ip route-static vpn-instance vpn1 1.1.1.1 16 vpn-instance vpn1 1.1.1.2
# Configure a static route: the destination address is 1.1.1.1/24, the output interface is Vlan-interface 1,
and the next hop address is 2.2.2.2, and enable BFD with the echo packet mode.
<Sysname> system-view
[Sysname] ip route-static 1.1.1.1 24 Vlan-interface 1 2.2.2.2 bfd echo-packet

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

ip route-static fast-reroute

Syntax
ip route-static [ vpn-instance vpn-instance-name ] fast-reroute route-policy route-policy-name
undo ip route-static [ vpn-instance vpn-instance-name ] fast-reroute
View
System view
Default level
2: System level
29

Advertisement

Table of Contents
loading

This manual is also suitable for:

S5800 series

Table of Contents