Ip Route-Static - H3C S3100-52P Command Manual

Static route
Hide thumbs Also See for S3100-52P:
Table of Contents

Advertisement

Command Manual – Static Route
H3C S3100-52P Ethernet Switch

2.1.2 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
Parameters
ip-address: Destination IP address, in dotted decimal notation.
mask: Subnet mask, in dotted decimal notation.
mask-length: Mask length, in the range of 0 to 32.
interface-type interface-number: Next-hop outbound interface.
next-hop: Next hop IP address of the route, in dotted decimal notation.
preference preference-value: Preference level of a static route, in the range of 1 to 255.
The default preference is 60.
reject: Indicates the destination is unreachable. If a static route to a destination is
marked with reject, all IP packets destined for this destination will be discarded, and
the source host will be informed that the destination is unreachable.
blackhole: Indicates a blackhole route. If a static route to a destination is marked with
blackhole, the outbound interface of this route is the Null 0 interface regardless of the
next hop address, and all the IP packet addresses destined for this destination are
dropped without the source host being notified.
description text: Provides a description for the current route, which is a string of 1 to 60
characters.
Note:
If you specify the next-hop outgoing interface when configuring a static route, the
type of outgoing interface can be Null only.
The packets sent to a Null interface, which is a virtual interface, will be discarded
immediately. This can decrease the system load.
Description
Use the ip route-static command to configure a static route.
Chapter 2 Static Route Configuration Commands
2-2

Advertisement

Table of Contents
loading

Table of Contents