16.1.0 is proper for router A
because only one way to reach that network exists.
Default Route Forwarding Configuration
You should use a default route in situations in which the route from a source to a destination
is not known or when it is not feasible for the router to maintain many routes in its routing
table, such as the one shown in Figure 5-27.
Use the ip route command to con?¬?gure default route forwarding. In Figure 5-27, router B
is con?¬?gured to forward all packets that do not have the destination network listed in the
router B routing table to router A.
In the default route example, the default route is con?¬?gured as follows:
Router(config)# iipp rroouuttee 0.0.0.0 0.0.0.0 172.16.2.2
Table 5-4 Static Route Example Parameters
ip route Command Parameters Description
ip route Identi?¬?es the static route.
172.16.1.0 IP address of a static route to the destination subnetwork.
255.255.255.0 Indicates the subnet mask. There are 8 bits of subnetting in
effect.
172.16.2.1 IP address of the next hop router in the path to the destination.
s0/0/0 Optional: If next hop address is not used, then the interface to
send the packet out can be used instead.
Enabling Static Routing 379
Figure 5-27 Using Default Routes
Table 5-5 lists the ip route command parameters for this example.
Pages:
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523