Here is some of the router's config and sh ip route info:
Before:
IEBRAY#sh hard
GS Software (GS3), Version 9.21(5), RELEASE SOFTWARE (fc1)
Copyright (c) 1986-1994 by cisco Systems, Inc.
Compiled Wed 10-Aug-94 09:46 by deannaw
ROM: System Bootstrap, Version 4.6(10), SOFTWARE
IEBRAY uptime is 3 days, 40 minutes
System restarted by power-on
System image file is "ags+9215.img", booted via flash
CSC4 (68040) processor with 16384K bytes of memory.
X.25 software, Version 2.0, NET2, BFE and GOSIP compliant.
Bridging software.
4 MCI controllers (2 Ethernet, 12 Serial).
Environmental Controller.
2 Ethernet/IEEE 802.3 interfaces.
12 Serial network interfaces.
64K bytes of multibus memory.
64K bytes of non-volatile configuration memory.
4096K bytes of flash memory on MC+ card (via MCI).
Configuration register is 0x102
IEBRAY#wr t
:
interface Serial1
ip address 163.244.254.13 255.255.255.252
ip ospf cost 10420
:
:
!
interface Serial2
ip address 163.244.254.21 255.255.255.252
ip ospf cost 10420
:
:
!
interface Serial7
ip address 163.244.254.25 255.255.255.252
!
!
router ospf 1
network 163.244.0.0 0.0.255.255 area 0.0.0.2
redistribute static metric 12000 metric-type 1
passive-interface Serial7
IEBRAY#sh ip route
Codes: I - IGRP derived, R - RIP derived, O - OSPF derived
C - connected, S - static, E - EGP derived, B - BGP derived
i - IS-IS derived, D - EIGRP derived
* - candidate default route, IA - OSPF inter area route
E1 - OSPF external type 1 route, E2 - OSPF external type 2 route
L1 - IS-IS level-1 route, L2 - IS-IS level-2 route
EX - EIGRP external route
Gateway of last resort is 163.244.254.5 to network 140.222.0.0
:
163.244.0.0 is variably subnetted, 37 subnets, 3 masks
:
O 163.244.7.0 255.255.255.0
[110/10430] via 163.244.254.14, 0:14:01, Serial1
[110/10430] via 163.244.254.22, 0:14:01, Serial2
:
IEBRAY#sh ip route 163.244.7.0
Routing entry for 163.244.7.0 (mask 255.255.255.0)
Known via "ospf 1", distance 110, metric 10430
Tag 0, type intra area
Redistributing via ospf 1
Last update from 163.244.254.14 on Serial1, 0:15:32 ago
Routing Descriptor Blocks:
* 163.244.254.14, from 163.244.7.0, 0:15:32 ago, via Serial1
Route metric is 10430, traffic share count is 1
163.244.254.22, from 163.244.7.0, 0:15:32 ago, via Serial2
Route metric is 10430, traffic share count is 1
IEBRAY#
After:
IEBRAY#conf t
Enter configuration commands, one per line. End with CNTL/Z.
IEBRAY(config)#ip route 163.244.7.0 163.244.254.26 150
IEBRAY(config)#
IEBRAY#sh ip route
Codes: I - IGRP derived, R - RIP derived, O - OSPF derived
C - connected, S - static, E - EGP derived, B - BGP derived
i - IS-IS derived, D - EIGRP derived
* - candidate default route, IA - OSPF inter area route
E1 - OSPF external type 1 route, E2 - OSPF external type 2 route
L1 - IS-IS level-1 route, L2 - IS-IS level-2 route
EX - EIGRP external route
Gateway of last resort is 163.244.254.5 to network 140.222.0.0
:
163.244.0.0 is variably subnetted, 38 subnets, 3 masks
:
S 163.244.7.0 255.255.255.252 [150/0] via 163.244.254.26
O 163.244.7.0 255.255.255.0
[110/10430] via 163.244.254.14, 0:19:58, Serial1
[110/10430] via 163.244.254.22, 0:19:58, Serial2
:
IEBRAY#sh ip route 163.244.7.0
Routing entry for 163.244.7.0 (mask 255.255.255.252)
Known via "static", distance 150, metric 0
Tag 0
Redistributing via ospf 1
Routing Descriptor Blocks:
* 163.244.254.26
Route metric is 0, traffic share count is 1
IEBRAY#conf t
Enter configuration commands, one per line. End with CNTL/Z.
IEBRAY(config)#no ip route 163.244.7.0 163.244.254.26 150
IEBRAY(config)#
==>
==>I have an AGS+ with 9.21 (5?) software, I using OSPF as the routing
==>protocol. I need to add a couple of static routes but when I attempt
==>to add them they overwrite the OSPF routes. Of course this is to be
==>expected, so I tried changing the metric to a value MUCH higher than
==>the OSPF route metric. I tried using the metric parameter on the
==>redistribute line but I still end up with a metric of 0 for the static
==>route. Any ideas on how I change the metric value of a static route?
==>
The router ranks the reliability of routing sources by using an administrative
distance. This is how OSPF is more reliable than RIP, etc. A static route
has a higher admin distance than OSPF. To make the router use the OSPF over
the static route, give the static route a higher admin distance. Something
like:
ip route 163.244.7.0 255.255.255.252 163.244.254.26 250
where 250 is the admin distance.
The current default admin distances are as follows:
Route Source Default Distance
--------------------------------------------------------
Connected interface 0
--------------------------------------------------------
Static route 1
--------------------------------------------------------
Enhanced IGRP summary route 5
--------------------------------------------------------
External BGP 20
--------------------------------------------------------
Internal Enhanced IGRP 90
--------------------------------------------------------
IGRP 100
--------------------------------------------------------
OSPF 110
--------------------------------------------------------
IS-IS 115
--------------------------------------------------------
RIP 120
--------------------------------------------------------
EGP 140
--------------------------------------------------------
External Enhanced IGRP 170
--------------------------------------------------------
Internal BGP 200
--------------------------------------------------------
Unknown 255
--------------------------------------------------------
+-------------------------+-----------------------+---------------------------+
+ || || + + Bruce Pinsky +
+ || || + Cisco Systems, Inc. + Sr. Internetwork Supt Engr+
+ |||| |||| + 170 West Tasman Drive + Phone: (800) 553-24HR +
+ ..:||||||:..:||||||:.. + San Jose, CA 95134 + Fax: (408) 526-8787 +
+ Cisco Systems Inc. + + E-mail: b...@cisco.com +
+-------------------------+-----------------------+---------------------------+
| ** The Science of Networking Networks ** |
+-----------------------------------------------------------------------------+
NJC