2-2Default RouteTo avoid too large a routing table, you can configure a default route.When the destination address of a packet fails to match any entry in the routing table,z If there is default route in the routing table, the default route will be selected to forward the packet.z If there is no default route, the packet will be discarded and an ICMP Destination Unreachable orNetwork Unreachable packet will be returned to the source.A default route can be manually configured or generated by some dynamic routing protocols, such asOSPF and RIP.Static Route ConfigurationConfiguration PrerequisitesBefore configuring a static route, perform the following tasks:z Configuring the physical parameters of related interfacesz Configuring IP addresses for related interfacesConfiguring a Static RouteFollow these steps to configure a static route:To do... Use the command... RemarksEnter system view system-view —Configure a staticrouteip route-static ip-address { mask |mask-length } { interface-typeinterface-number | next-hop } [ preferencepreference-value ] [ reject | blackhole ][ detect-group group number ] [ descriptiontext ]RequiredBy default, the system canobtain the route to thesubnet directly connectedto the router.z Use the ip route-static command to configure a default route by setting the destination IP addressand the mask to 0.0.0.0.z Avoid configuring the next hop address of a static route to the address of an interface on the localswitch.z Different preferences can be configured to implement flexible route management policies.z For automatic detection information, refer to the part discussing Auto Detect.Displaying and Maintaining Static RoutesTo do... Use the command... RemarksDisplay the current configurationinformation display current-configuration Available inany view