Configuring Static Routes - Cisco WS-X6066-SLB-APC - Content Switching Module Software Manual

Catalyst 6000 series software configuration guide
Hide thumbs Also See for WS-X6066-SLB-APC - Content Switching Module:
Table of Contents

Advertisement

Chapter 20
Administering the Switch
This example shows how to define two IP aliases, sparc and cat6509. sparc refers to IP address
172.20.52.3, and cat6509 refers to IP address 172.20.52.71. This example also shows how to verify the
currently defined IP aliases and what happens when you use the IP aliases with the ping command:
Console> (enable) set ip alias sparc 172.20.52.3
IP alias added.
Console> (enable) set ip alias cat6509 172.20.52.71
IP alias added.
Console> (enable) show ip alias
default
sparc
cat6509
Console> (enable) ping sparc
sparc is alive
Console> (enable) ping cat6509
cat6509 is alive
Console> (enable)

Configuring Static Routes

Note
For information on configuring a default gateway (default route), see the
Gateways" section on page
In some situations, you might need to add a static routing table entry for one or more destination
networks. 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 IP traffic 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 traffic from connected devices, only IP
traffic 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 how to 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
78-13315-02
0.0.0.0
172.20.52.3
172.20.52.71
3-6.
Redirect
Unreachable
--------
-----------
enabled
enabled
Catalyst 6000 Family Software Configuration Guide—Releases 6.3 and 6.4
"Configuring Default
Command
set ip route destination[/netmask] gateway
[metric]
show ip route
Configuring Static Routes
20-7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents