Configuring A Default Gateway; Configuring A Static Route - Cisco 6500 Series Software Configuration Manual

Hide thumbs Also See for 6500 Series:
Table of Contents

Advertisement

Configuring the Switch

Configuring a Default Gateway

The switch uses the default gateway only when it is not configured with a routing protocol.
Note
To send data to another subnet when the switch is not configured with a routing protocol, configure a
default gateway. The default gateway must be the IP address of an interface on a router in the same
subnet.
To configure a default gateway, perform this task:
Command
Step 1
Router(config)# ip default-gateway A.B.C.D
Step 2
Router# show ip route
This example shows how to configure a default gateway and how to verify the configuration:
Router# configure terminal
Enter configuration commands, one per line.
Router(config)# ip default-gateway 172.20.52.35
Router(config)# end
3d17h: %SYS-5-CONFIG_I: Configured from console by console
Router# show ip route
Default gateway is 172.20.52.35
Host
ICMP redirect cache is empty
Router#

Configuring a Static Route

If your Telnet station or SNMP network management workstation is on a different network from your
switch and a routing protocol has not been configured, you might need to add a static routing table entry
for the network where your end station is located.
To configure a static route, perform this task:
Command
Step 1
Router(config)# ip route dest_IP_address mask
{forwarding_IP | vlan vlan_ID}
Step 2
Router# show running-config
This example shows how to use the ip route command to configure a static route to a workstation at IP
address 171.10.5.10 on the switch with a subnet mask and IP address 172.20.3.35 of the forwarding
router:
Router# configure terminal
Enter configuration commands, one per line.
Router(config)# ip route 171.10.5.10 255.255.255.255 172.20.3.35
Router(config)# end
Router#
Catalyst 6500 Series Switch Cisco IOS Software Configuration Guide—Release 12.1 E
3-12
Purpose
Configures a default gateway.
Verifies that the default gateway appears correctly in the
IP routing table.
Gateway
Last Use
Purpose
Configures a static route.
Verifies the static route configuration.
Chapter 3
Configuring the Switch for the First Time
End with CNTL/Z.
Total Uses
Interface
End with CNTL/Z.
78-14099-04

Advertisement

Table of Contents
loading

Table of Contents