Ip Route-Static - H3C s3100 series Command Manual

Hide thumbs Also See for s3100 series:
Table of Contents

Advertisement

[Sysname-Vlan-interface1] ip address 192.168.0.51 255.255.255.0

ip route-static

Syntax
ip route-static ip-address { mask | mask-length } { interface-type interface-number | next-hop }
[ preference preference-value ] [ reject | blackhole ] [ description text ]
undo ip route-static ip-address { mask | mask-length } [ interface-type interface-number | next-hop ]
[ preference preference-value ]
View
System view
Parameter
ip-address: Destination IP address, in dotted decimal notation.
mask: IP address mask, in dotted decimal notation.
mask-length: Mask length, in the range of 0 to 32.
interface-type interface-number: Next hop outgoing interface. Currently, you can specify a NULL
interface only. A null interface is a virtual interface. Packets destined for a null interface are discarded,
helping to reduce system load.
next-hop: IP address of the next hop of this route, in dotted decimal notation.
preference-value: Preference of this route, in the range of 1 to 255.
reject: Specifies the route as an unreachable route. When a static route destined for a destination
address is of the reject attribute, all the IP packets destined for the destination address are discarded,
and the source host is informed that the destination address is unreachable.
blackhole: Specifies the route as a black hole route. When a static route destined for a destination
address is of the blackhole attribute, the outgoing interface of the route is Null 0 regardless of the next
hop address. All the IP packets destined for the destination address are discarded, and the source host
is not informed that the destination address is unreachable.
description text: Specifies a descriptive string for the static route. The text argument is a case-sensitive
string of 1 to 60 characters (including the space).
Description
Use the ip route-static command to configure a static route.
Use the undo ip route-static command to remove a static route.
By default, the system can obtain the subnet route directly connected to the router. When you configure
a static route, if no preference is specified for the route, the preference defaults to 60. Note that routes
with the same destinations, the same next hops, but different preferences are different routes. Among
these routes, the one with least preference (which means the highest preference) is chosen to be the
current route. A route configured using the ip route-static command is a reachable route if neither of
the reject and blackhole keywords is specified.
Note the following when configuring a static route:
The next hop address of a static route cannot be the VLAN interface address of the local switch.
1-15

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents