286 CHAPTER 32: S TATIC ROUTE CONFIGURATIONthe 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 informthe source host that the destination host or network is unreachable.Static RouteConfigurationConfigurationPrerequisitesBefore 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 interfaceConfiguring a StaticRouten ■ If the destination IP address and the mask of a route are both 0.0.0.0, theroute is the default route. Any packet for which the router fails to find amatching entry in the routing table will be forwarded through the defaultroute.■ Do not configure the next hop address of a static route to the address of aninterface on the local switch.■ The preference can be configured differently to implement flexible routemanagement policy.Displaying andMaintaining theRouting TableAfter the above configuration, use the display command in any view to displaythe static route configuration, so as to verify configuration result. You can use thereset command in user view to clear routing table statistics.Table 211 Configure a static routeOperation Command DescriptionEnter system view system-view -Add a static route ip route-static ip-address { mask |mask-length } { interface-typeinterface-number | next-hop }[ preference value ] [ reject |blackhole ]RequiredBy default, the system canobtain the route to thesubnet directly connectedto the router.Delete all static routes delete static-routes all OptionalThis command deletes allstatic routes, includingthe default route.