Configuring IP
Two static routes to 192.168.7.0/24:
Router A
| 192.168.6.188/24 |
|
| Port 1/1 |
|
| When route through interface | 192.168.6.69/24 |
|
| |
| 1/1 is available, Router A always |
|
192.168.8.12/24 | uses that route. |
|
|
| |
Port 4/4 |
|
|
192.168.8.11/24
| If route through interface |
|
|
| 1/1 becomes unavailable, |
|
|
Router B | Router A uses alternate | Router C | Router D |
| route through gateway |
|
|
| 192.168.8.11/24. |
|
|
Figure 6.4 Standard and interface routes to the same destination network
To configure the multiple static routes of different types to the same destination, use either of the following methods.
USING THE CLI
To configure a standard static IP route and a null route to the same network as shown in Figure 6.3 on page
HP9300(config)# ip route 192.168.7.0/24 192.168.6.157/24 1
HP9300(config)# ip route 192.168.7.0/24 null0 3
The first command configures a standard static route, which includes specification of the
The second command configures another static route for the same destination network, but the second route is a null route. The metric for the null route is 3, which is higher than the metric for the standard static route. If the standard static route is unavailable, the software uses the null route.
For complete syntax information, see “Configuring a Static IP Route” on page
To configure a standard static route and an
HP9300(config)# ip route 192.168.6.0/24 ethernet 1/1 1
HP9300(config)# ip route 192.168.6.0/24 192.168.8.11/24 3
The first command configured an
6 - 45