EasyManuals Logo

Cisco WS-C6506 User Manual

Cisco WS-C6506
1488 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #674 background imageLoading...
Page #674 background image
22-8
Catalyst 6500 Series Switch Software Configuration Guide—Release 8.7
OL-8978-04
Chapter 22 Administering the Switch
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
Note For information on configuring a default gateway (default route), see the “Configuring the Default
Gateways” section on page 3-8.
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:
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 Redirect Unreachable
------------- -------- -----------
enabled enabled enabled
The primary gateway: 172.20.52.121
Destination Gateway RouteMask Flags Use Interface
--------------- --------------- ---------- ----- -------- ---------
172.16.16.0 172.20.52.127 0xfffff000 UG 0 sc0
default 172.20.52.121 0x0 UG 0 sc0
172.20.52.120 172.20.52.124 0xfffffff8 U 1 sc0
default default 0xff000000 UH 0 sl0
Console> (enable)
Task Command
Step 1
Configure a static route to the remote network. set ip route destination[/netmask] gateway
[metric]
Step 2
Verify that the static route appears correctly in the
IP routing table.
show ip route

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Cisco WS-C6506 and is the answer not in the manual?

Cisco WS-C6506 Specifications

General IconGeneral
BrandCisco
ModelWS-C6506
CategorySwitch
LanguageEnglish

Related product manuals