The network administrator can configure a default route with both destination and mask being
0.0.0.0. The router forwards any packet whose destination address fails to match any entry in the
routing table to the next hop of the default static route.
Some dynamic routing protocols, such as RIP.
Application Environment of Static Routing
Before configuring a static route, you need to know the following concepts:
Destination address and mask
In the ip route-static command, an IPv4 address is in dotted decimal format and a mask can be either
in dotted decimal format or in the form of mask length (the digits of consecutive 1s in the mask).
Output interface and next hop address
While configuring a static route, you can specify either the output interface or the next hop address
depending on the specific occasion. For a NULL0 interface, if the output interface has already been
configured, there is no need to configure the next hop address
In fact, all the route entries must have a next hop address. When forwarding a packet, a router first
searches the routing table for the route to the destination address of the packet. The system can find the
corresponding link layer address and forward the packet only after the next hop address is specified.
The next hop address can not be a local interface IP address; otherwise, the route configuration will not
You can configure different preferences for different static routes so that route management policies can
be applied more flexibly.
Configuring a Static Route
Before configuring a static route, you need to finish the following tasks:
Configure the physical parameters for related interfaces
Configure the link-layer attributes for related interfaces
Configure the IP addresses for related interfaces