Cisco WS-C2950SX-48-SI Configuration Manual page 51

Catalyst 4500 series switches
Hide thumbs Also See for WS-C2950SX-48-SI:
Table of Contents

Advertisement

Chapter 3
Configuring the Switch IP Address and Default Gateway
Note
In some cases, you might want to configure static IP routes in addition to default gateways. For
information on configuring static routes, see the
You can define up to three default IP gateways. Use the primary keyword to make a gateway the primary
gateway. If you do not specify a primary default gateway, the first gateway that is configured is the
primary gateway. If more than one gateway is designated as primary, the last primary gateway that is
configured is the primary default gateway.
The switch sends all off-network IP traffic to the primary default gateway. If connectivity to the primary
gateway is lost, the switch attempts to use the backup gateways in the order they were configured. The
switch sends periodic ping messages to determine whether each default gateway is up or down. If
connectivity to the primary gateway is restored, the switch resumes sending traffic to the primary.
If both the in-band (sc0) and management Ethernet (me1) interfaces are configured when you specify
default gateways, then the switch software automatically determines through which interface each
default gateway can be reached.
To specify one or more default gateways, perform this task in privileged mode:
Task
Step 1
Configure a default IP gateway address for the
switch.
Step 2
(Optional) Configure additional default gateways
for the switch.
Step 3
Verify that the default gateways appear correctly
in the IP routing table.
To remove default gateway entries, perform one of these tasks in privileged mode:
Task
Clear an individual default gateway entry.
Clear all default gateways and static routes.
This example shows how to configure three default gateways on the switch and how to verify the default
gateway configuration:
Console> (enable) set ip route default 10.1.1.10
Route added.
Console> (enable) set ip route default 10.1.1.20
Route added.
Console> (enable) set ip route default 10.1.1.1 primary
Route added.
Console> (enable) show ip route
Fragmentation
-------------
enabled
The primary gateway: 10.1.1.1
Destination
---------------
default
default
78-15486-01
Redirect
Unreachable
--------
-----------
enabled
enabled
Gateway
---------------
10.1.1.1
10.1.1.20
Catalyst 4500 Series, Catalyst 2948G, Catalyst 2980G Switches Software Configuration Guide
"Configuring Static Routes" section on page
Command
set ip route default gateway [metric] [primary]
set ip route default gateway [metric] [primary]
show ip route
Command
clear ip route default gateway
clear ip route all
RouteMask
Flags
Use
----------
-----
--------
0x0
UG
6
0x0
G
0
Configuring Default Gateways
27-9.
Interface
---------
sc0
sc0
Release 8.1
3-7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents