35-77
Catalyst 3750 Switch Software Configuration Guide
OL-8550-02
Chapter 35 Configuring IP Unicast Routing
Configuring Protocol-Independent Features
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:
Use the
no ip route
prefix mask
{
address
|
interface
} global configuration command to remove a static
route.
The switch retains static routes until you remove them. However, you can override static routes with
dynamic routing information by assigning administrative distance values. Each dynamic routing
protocol has a default administrative distance, as listed in
Table 35-14
. If you want a static route to be
overridden by information from a dynamic routing protocol, set the administrative distance of the static
route higher than that of the dynamic protocol.
Command
Purpose
Step 1
configure terminal
Enter global configuration mode.
Step 2
router
{
bgp
|
rip
|
ospf
|
eigrp
}
Enter router configuration mode.
Step 3
maximum-paths
maximum
Set the maximum number of parallel paths for the protocol routing
table. The range is from 1 to 16; the default is 4 for most IP routing
protocols, but only 1 for BGP.
Step 4
end
Return to privileged EXEC mode.
Step 5
show ip protocols
Verify the setting in the
Maximum path
field.
Step 6
copy running-config startup-config
(Optional) Save your entries in the configuration file.
Command
Purpose
Step 1
configure terminal
Enter global configuration mode.
Step 2
ip route
prefix mask
{
address
|
interface
} [
distance
]
Establish a static route.
Step 3
end
Return to privileged EXEC mode.
Step 4
show ip route
Display the current state of the routing table to verify
the configuration.
Step 5
copy running-config startup-config
(Optional) Save your entries in the configuration file.
Table 35-14
Dynamic Routing Protocol Default Administrative Distances
Route Source
Default Distance
Connected interface
0
Static route
1
Enhanced IRGP summary route
5
Содержание 3750G - Catalyst Integrated Wireless LAN Controller
Страница 80: ...1 28 Catalyst 3750 Switch Software Configuration Guide OL 8550 02 Chapter 1 Overview Where to Go Next ...
Страница 606: ...27 8 Catalyst 3750 Switch Software Configuration Guide OL 8550 02 Chapter 27 Configuring UDLD Displaying UDLD Status ...
Страница 670: ...31 18 Catalyst 3750 Switch Software Configuration Guide OL 8550 02 Chapter 31 Configuring SNMP Displaying SNMP Status ...
Страница 1048: ...41 20 Catalyst 3750 Switch Software Configuration Guide OL 8550 02 Chapter 41 Configuring MSDP Monitoring and Maintaining MSDP ...
Страница 1086: ...43 26 Catalyst 3750 Switch Software Configuration Guide OL 8550 02 Chapter 43 Troubleshooting Using the crashinfo Files ...
Страница 1104: ...B 4 Catalyst 3750 Switch Software Configuration Guide OL 8550 02 Appendix B Supported MIBs Using FTP to Access the MIB Files ...