Chapter 50
| IP Routing Commands
Global Routing Configuration
– 977 –
â—† If an administrative distance is defined for a static route, and the same
destination can be reached through a dynamic route at a lower administration
distance, then the dynamic route will be used.
â—† If both static and dynamic paths have the same lowest cost, the first route
stored in the routing table, either statically configured or dynamically learned
via a routing protocol, will be used.
â—† Static routes are included in RIP, OSPF or BGP updates periodically sent by the
router if this feature is enabled by the RIP, OSPF or BGP redistribute command
(see page 991, page 1011, page 1103 respectively).
â—† For information on how to define multiple default gateways or remove a
default gateway for a VLAN interface refer to the Command Usage section and
the examples for the ip address command.
Example
This example forwards all traffic for subnet 192.168.1.0 to the gateway router
192.168.5.254, using the default metric of 1.
Console(config)#ip route 192.168.1.0 255.255.255.0 192.168.5.254
Console(config)#
maximum-paths This command sets the maximum number of paths allowed. Use the no form to
restore the default settings.
Syntax
maximum-paths path-count
no maximum-paths
path-count - The maximum number of equal-cost paths to the same
destination that can be installed in the routing table. (Range: 1-8)
Default Setting
Enabled, 4 paths
Command Mode
Global Configuration
Example
Console(config)#maximum-paths 8
Console(config)#