Operation Manual – Routing Protocol
H3C S3600 Series Ethernet Switches-Release 1510 Chapter 2
Static Route Configuration
2-2
2.1.2 Default Route
A default route is a special route. You can manually configure a default route by using
a static route. Some dynamic routing protocols, such as OSPF, can automatically
generate a default route.
Simply to say, 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 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:
z Configuring the physical parameters of the related interface
z Configuring the link layer attributes of the related interface
z Configuring an IP address for the related interface
2.2.2 Configuring a Static Route
Table 2-1 Configure a static route
Operation Command Description
Enter system view
system-view
—
Add a static route
ip route-static ip-address
{ mask | mask-length }
{ interface-type interface-number
| next-hop } [ preference value ]
[ reject | blackhole ]
[ description text |
detect-group group number ]*
Required
By default, the system can
obtain the route to the
subnet directly connected
to the router.
Delete all static
routes
delete static-routes all
Optional
This command deletes all
static routes, including the
default route.