3Com MSR 50 Network Router User Manual


  Open as PDF
of 2742
 
1220 CHAPTER 81: STATIC ROUTING CONFIGURATION COMMANDS
Examples # Configure a static route, whose destination address is 1.1.1.1/24, next hop
address is 2.2.2.2, tag value is 45, and description information is “for internet &
intranet”.
<Sysname> system-view
[Sysname] ip route-static 1.1.1.1 24 2.2.2.2 tag 45 description for
internet & intranet
# 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
ip route-static default-preference
Syntax ip route-static default-preference default-preference-value
undo ip route-static default-preference
View System view
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.
Note that:
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: display ip routing-table on page 929 and ip route-static.
Examples # Set the default preference of static routes to 120.
<Sysname> system-view
[Sysname] ip route-static default-preference 120