Configuring A Default Gateway - Cisco Catalyst 4500 series Administration Manual

Hide thumbs Also See for Catalyst 4500 series:
Table of Contents

Advertisement

Chapter 3
Configuring the Switch for the First Time
!
line con 0
exec-timeout 0 0
transport input none
line vty 0 4
exec-timeout 0 0
password lab
login
transport input lat pad dsipcon mop telnet rlogin udptn nasi
!
end
Switch#

Configuring a Default Gateway

The switch uses the default gateway only when it is not configured with a routing protocol.
Note
Configure a default gateway to send data to subnets other than its own when the switch is not configured
with a routing protocol. The default gateway must be the IP address of an interface on a router that is
directly connected to the switch.
To configure a default gateway, perform this task:
Command
Step 1
Switch(config)# ip default-gateway IP-address
Step 2
Switch# show ip route
This example shows how to configure a default gateway and how to verify the configuration:
Switch# configure terminal
Enter configuration commands, one per line.
Switch(config)# ip default-gateway 172.20.52.35
Switch(config)# end
3d17h: %SYS-5-CONFIG_I: Configured from console by console
Switch# show ip route
Default gateway is 172.20.52.35
Host
ICMP redirect cache is empty
Switch#
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.
OL-30933-01
Purpose
Configures a default gateway.
Verifies that the default gateway is correctly displayed in
the IP routing table.
Gateway
Last Use
Software Configuration Guide—Release IOS XE 3.6.0E and IOS 15.2(2)E
End with CNTL/Z.
Total Uses
Interface
Configuring the Switch
3-11

Advertisement

Table of Contents
loading

Table of Contents