Configuring Static Routes On The Switch - Cisco WS-C6506 Software Manual

Catalyst 6500 series switch
Hide thumbs Also See for WS-C6506:
Table of Contents

Advertisement

Configuring Static Routes on the Switch

Console> (enable) ping sparc
sparc is alive
Console> (enable) ping cat6509
cat6509 is alive
Console> (enable)
Configuring Static Routes on the Switch
For information on configuring a default gateway (default route), see the
Note
Gateways" section on page
In some situations, you might need to add a static routing table entry for one or more destination
networks. The static route entries consist of the destination IP network address, the IP address of the next
hop router, and the metric (hop count) for the route.
The destination IP network address can be variably subnetted to support Classless Interdomain Routing
(CIDR). You can specify the subnet mask (netmask) for a destination network using the number of subnet
bits or using the subnet mask in dotted decimal format. If no subnet mask is specified, the default
(classful) mask is used.
The switch forwards the IP traffic that is generated by the switch using the longest address match in the
IP routing table. The switch does not use the IP routing table to forward the traffic from the connected
devices, only the IP traffic that is generated by the switch itself (for example, Telnet, TFTP, and ping).
To configure a static route, perform this task in privileged mode:
Task
Step 1
Configure a static route to the remote network.
Step 2
Verify that the static route appears correctly in the
IP routing table.
This example shows how to configure a static route on the switch and verify that the route is configured
properly in the routing table:
Console> (enable) set ip route 172.16.16.0/20 172.20.52.127
Route added.
Console> (enable) show ip route
Fragmentation
-------------
enabled
The primary gateway: 172.20.52.121
Destination
---------------
172.16.16.0
default
172.20.52.120
default
Console> (enable)
Catalyst 6500 Series Switch Software Configuration Guide—Release 8.7
22-8
3-8.
Redirect
Unreachable
--------
-----------
enabled
enabled
Gateway
RouteMask
---------------
----------
172.20.52.127
0xfffff000
172.20.52.121
0x0
172.20.52.124
0xfffffff8
default
0xff000000
Chapter 22
"Configuring the Default
Command
set ip route destination[/netmask] gateway
[metric]
show ip route
Flags
Use
Interface
-----
--------
---------
UG
0
sc0
UG
0
sc0
U
1
sc0
UH
0
sl0
Administering the Switch
OL-8978-04

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Catalyst 6506Catalyst 6509Catalyst 6513

Table of Contents