Configuring The Number Of Equal-Cost Routing Paths; Configuring Static Unicast Routes - Cisco WS-C3750-48PS-S Software Configuration Manual

Network switch
Table of Contents

Advertisement

Configuring Protocol-Independent Features

Configuring the Number of Equal-Cost Routing Paths

When a router has two or more routes to the same network with the same metrics, these routes can be
thought of as having an equal cost. The term parallel path is another way to refer to occurrences of
equal-cost routes in a routing table. If a router has two or more equal-cost paths to a network, it can use
them concurrently. Parallel paths provide redundancy in case of a circuit failure and also enable a router
to load balance packets over the available paths for more efficient use of available bandwidth. Equal-cost
routes are supported across switches in a stack.
Although the router automatically learns about and configures equal-cost routes, you can control the
maximum number of parallel paths supported by an IP routing protocol in its routing table.
Beginning in privileged EXEC mode, follow these steps to change the maximum number of parallel
paths installed in a routing table from the default:
Command
Step 1
configure terminal
Step 2
router {bgp | rip | ospf | igrp | eigrp}
Step 3
maximum-paths maximum
Step 4
end
Step 5
show ip protocols
Step 6
copy running-config startup-config
Use the no maximum-paths router configuration command to restore the default value.

Configuring Static Unicast Routes

Static unicast routes are user-defined routes that cause packets moving between a source and a
destination to take a specified path. Static routes can be important if the router cannot build a route to a
particular destination and are useful for specifying a gateway of last resort to which all unroutable
packets are sent.
Beginning in privileged EXEC mode, follow these steps to configure a static route:
Command
Step 1
configure terminal
Step 2
ip route prefix mask {address | interface} [distance]
Step 3
end
Step 4
show ip route
Step 5
copy running-config startup-config
Catalyst 3750 Switch Software Configuration Guide
34-62
Purpose
Enter global configuration mode.
Enter router configuration mode.
Set the maximum number of parallel paths for the protocol routing
table. The range is from 1 to 8; the default is 4 for most IP routing
protocols, but only 1 for BGP.
Return to privileged EXEC mode.
Verify the setting in the Maximum path field.
(Optional) Save your entries in the configuration file.
Purpose
Enter global configuration mode.
Establish a static route.
Return to privileged EXEC mode.
Display the current state of the routing table to verify
the configuration.
(Optional) Save your entries in the configuration file.
Chapter 34
Configuring IP Unicast Routing
78-16180-02

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Catalyst 3750

Table of Contents