Basic IP routing configuration task list 197IPLink Software Configuration Guide 17 • Basic IP routing configurationa backup route is activated, thus improving network reliability. Each route is assigned a default precedencevalue and cost value. Modifying these values allow you to set a preference for one route over the next. If staticroutes are redistributed through dynamic routing protocol to neighboring devices, only the active static routeto a destination is advertised.This procedure describes how to configure one or more static IP routes to the same destinationMode: Administrator executionWhere the syntax is:• network—The IP address of the target network or subnet.• mask—A network mask where the 1 bits indicate the network or subnet, and the 0 bits indicate the hostportion of the network address provided.• address—The IP address of a next-hop router that can access the target network or subnet.• interface—The name of the outgoing interface to use for the target network or subnet.• metric—This is an optional parameter. Specifies the desirability of the route when compared against otherroutes. The range is 0 through 15, where 0 is the preferred route. If no metric is specified, the static route isassumed to have a metric of 0.Note To configure a default static IP route, use 0.0.0.0 for the network numberand mask. A valid next-hop address or interface is required.Example: Adding a static IP routeIn the following example, packets for network 20.0.0.0/24 will be routed to the device at 172.17.100.2. TheEthernet port 0 1 has the address 172.17.100.1/24 and is bound to the interface wan.IPLink>enableIPLink#configureIPLink(cfg)#context ip routerIPLink(ctx-ip)[router]#route 20.0.0.0 255.255.255.0 172.17.100.2The route is added to the routing database with the default metric 0. The router will forward packets to the20.0.0.0 network via the interface wan to the router on 172.17.100.2.Deleting static IP routesThe no form of the route command deletes a static IP route from the routing table.This procedure describes how to delete one or more static IP routes from the routing tableStep Command Purpose1 node(cfg)#context ip router Enters the IP routercontext2 node(ctx-ip)[router]#route network mask {address | interface} [metric] Adds a static route