3Com Switch 7750 Configuration Guide Guide
268 CHAPTER 31: STATIC ROUTE CONFIGURATION
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.
Static Route
Configuration
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
Configuring a Static
Route
n
■ If the destination IP address and the mask of a route are both 0.0.0.0, the route
is the default route. Any packet for which the router fails to find a matching
entry in the routing table will be forwarded through the default route.
■ Do not configure the next hop address of a static route to the address of an
interface on the local switch.
■ The preference can be configured differently to implement flexible route
management policy.
Displaying and
Maintaining the
Routing Table
After the above configuration, use the display command in any view to display
the static route configuration, so as to verify configuration result. You can use the
reset command in user view to clear routing table statistics.
Tabl e 192 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 [ selective ] ]
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.