Configuring Static Routes - Cisco WS-C2950SX-48-SI Configuration Manual

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

Advertisement

Chapter 27
Administering the Switch
This example sets the ARP aging time:
Console> (enable) set arp agingtime 300
ARP aging time set to 300 seconds.
Console> (enable)
This example shows how to display the ARP cache:
Console> (enable) show arp
ARP Aging time = 300 sec
+ - Permanent Arp Entries
* - Static Arp Entries
* 20.1.1.1 at 00-80-1c-93-80-40 on vlan 1
172.20.52.35 at 00-80-1c-93-80-40 on vlan 1
172.20.52.35 at 00-80-1c-93-80-40 on vlan 1
Console> (enable)
To clear ARP entries, perform this task in privileged mode:
Task
Step 1
Clear a dynamic, static, or permanent ARP entry. clear arp [dynamic | permanent | static]
Step 2
Verify the ARP configuration.
This example shows how to clear all permanent ARP entries and verify the configuration:
Console> (enable) clear arp permanent
Permanent ARP entries cleared.
Console> (enable) show arp
ARP Aging time = 300 sec
+ - Permanent Arp Entries
* - Static Arp Entries
+ 10.1.1.1
* 20.1.1.1
Console> (enable)

Configuring Static Routes

For information on configuring a default gateway (default route), see the
Note
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.
In software release 5.1 and later releases, you can configure Classless InterDomain Routing (CIDR)
routes, such as IP supernets, in the switch IP routing table. You can specify the subnet mask 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 uses the longest-match network address in the IP routing table to determine which gateway
to use to forward IP traffic. In releases prior to software release 5.1, the switch always uses the classful
subnet mask for IP routing table entries.
78-15486-01
3-6.
Catalyst 4500 Series, Catalyst 2948G, Catalyst 2980G Switches Software Configuration Guide
Command
{ip_addr hw_addr}
show arp
at 00-80-1c-93-80-60 on vlan 1
at 00-80-1c-93-80-40 on vlan 1
"Configuring Default
Configuring Static Routes
Release 8.1
27-9

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents