104 CHAPTER 8: CONFIGURING BRIDGING AND ROUTING
To delete a static route, use:
DELete -IP ROUte <IP address> {<gateway> | !<port>}
The metric can be the number of routers a packet must travel through to
reach its destination, or a number associated with the path cost, for
example, speed. The metric is used to determine which route to use if
more than one route exists to a destination. The bridge/router uses the
lowest metric.
Figure 7 Routing Between Gateways
See the example in Figure 7. On router 1, you can add a static route for
the Los Angeles network by entering:
ADD -IP ROUte 10.0.0.0 11.0.0.1 1
This example shows that network number 10.0.0.0 (the Los Angeles
network) is reachable by router 1 through gateway 11.0.0.1 on router 2.
The gateway address is the IP address of port 3 on router 2. Because a
packet routed from router 1 to the Los Angeles network has to go
through one gateway, the metric is 1.
If the outgoing interface is a PPP link, you can add a static route using the
outgoing port number instead of the next-hop gateway address. For
Router 5 Router 2
Santa Barbara
Santa Clara
Router 1
Host
Host
Los Angeles
Router 3
Router 4
San Diego
!1
!1
!3
!1
!3
!3
!3
!4
!1 IP address 129.213.16.10
IP address 11.0.0.2
IP address 11.0.0.1
IP address 10.0.0.5
IP address 10.0.0.24
IP address 192.9.10.24
IP address 192.9.10.2
IP address 130.10.112.43