Default Route; Static Route Configuration; Configuring A Static Route - H3C S7500 Series Operation Manual

Hide thumbs Also See for S7500 Series:
Table of Contents

Advertisement

Operation Manual – Routing Protocol
H3C S7500 Series Ethernet Switches

2.1.2 Default Route

A default route is a special route. You can manually configure a static route as the
default route. Some dynamic routing protocols, such as OSPF and IS-IS, can
automatically generate a default route.
A default route is a route used only when no matching entry is found in the routing
table. That is, the default route is used only when there is no proper route. In a routing
table, both the destination IP address and mask of the default route are 0.0.0.0. You
can use the display ip routing-table command to view whether the default route has
been set. If the destination address of a packet does not match any entry in the
routing table, the router will select the default route for the packet; in this case, if there
is no default route, the packet will be discarded, and an Internet control message
protocol (ICMP) packet will be returned to inform the source host that the destination
host or network is unreachable.

2.2 Static Route Configuration

2.2.1 Configuration Prerequisites
Before configuring a static route, perform the following tasks:
Configuring the physical parameters of the related interface
Configuring the link layer attributes of the related interface
Configuring an IP address for the related interface

2.2.2 Configuring a Static Route

Follow these steps to configure a static route:
Enter system view
Add a static route
Delete all static routes
Configure the default
preference for static
routes
To do...
system-view
ip route-static ip-address
{ mask | mask-length }
{ interface-type
interface-number |
next-hop } [ preference
value ] [ reject | blackhole ]
delete static-routes all
ip route-static
default-preference
default-preference-value
Chapter 2 Static Route Configuration
Use the command...
2-2
Remarks
Required
By default, the system can
obtain the route to the
subnet directly connected
to the router.
Optional
This command can delete
all static routes, including
the default route.
Optional
By default, the preference
value is 60.

Advertisement

Table of Contents
loading

Table of Contents