![3Com 7750 Series Command Reference Manual Download Page 320](http://html.mh-extra.com/html/3com/7750-series/7750-series_command-reference-manual_441219320.webp)
3Com Switch 7750 Series
Command Reference Guide – Routing Protocol
Chapter 1 Static Route Configuration Commands
1-16
mask-length:
Mask length. Since 1s in a 32-bit mask must be consecutive, a mask in
dotted decimal notation can be replaced by
mask-length
, which is the number of the
consecutive 1s in the mask.
interface-type
interface-number
: Next-hop outgoing interface
.
The packets sent to a
null
interface, which is a virtual interface, will be discarded immediately. This can
decrease the system load.
next-hop
: Next hop IP address of the route, in dotted decimal notation.
preference-value
:
Preference level of the route, in the range from 1 to 255. The
default preference is 60.
reject
: Indicates an unreachable route. If a static route to a destination has the
"
reject
" attribute, all the IP packets destined for this destination will be discarded.
blackhole
: Indicates a blackhole route. If a static route to a destination has the
“
blackhole
” attribute, the outgoing 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
Use the
ip route-static
command to configure a static route.
Use the
undo ip route-static
command to delete a manually configured 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, and if the route is not specified as
reject
or
blackhole
, the
route will be reachable by default.
When configuring a static route, note the following points:
z
If the destination IP address and the mask are both 0.0.0.0, what you are
configuring is a default route.
All the packets that fail to find a routing entry will be
forwarded through this default route.
z
You cannot configure an interface address of the local switch as the next hop
address of a static route.
z
You can configure a different preference to implement flexible route
management policy.
Related command:
display ip routing-table
,
ip route-static default-preference
,
ip
route-static default-preference
.
Example
# Configure the next hop of the default route as 129.102.0.2.
<3Com> system-view
System View: return to User View with Ctrl+Z.
[3Com] ip route-static 0.0.0.0 0.0.0.0 129.102.0.2