Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Changing the metric for static route

0 views
Skip to first unread message

neil j.cherry

unread,
Dec 13, 1994, 11:34:41 AM12/13/94
to
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?

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)#

Bruce Pinsky

unread,
Dec 19, 1994, 9:31:26 PM12/19/94
to
neil j.cherry writes:

==>
==>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 ** |
+-----------------------------------------------------------------------------+

neil j.cherry

unread,
Dec 20, 1994, 11:43:13 AM12/20/94
to
In article <7878906...@news.Colorado.EDU>,

Bruce Pinsky <b...@cisco.com> wrote:
>neil j.cherry writes:
>
>==>
>==>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
^^^^^^^ Bad mask! Bad Mask! ;-}

>
>where 250 is the admin distance.
>
>The current default admin distances are as follows:
>
>Route Source Default Distance
>--------------------------------------------------------
>Connected interface 0
Oh! At least that explains why I was getting a 0 as the metric. And we have
now resolved the problem. (We as in Cisco and myself.) It turns out that the
mask being used (see above comment) on the remote ethernet and the mask being
reported by OSPF weren't the same.
Example:
ip route 163.244.4.0 255.255.255.0 163.244.254.26 250
If I put in the above static statement and the OSPF route showed a mask for
163.244.4.0 of 255.255.252.0 the static statement would clobber the OSPF
route even though the OSPF route would have a better distance count. So now
when I build static route I check the table and see what mask is being used
in the router and use that mask in my static statement.
Example:
ip route 163.244.7.0 255.255.252.0 163.244.254.26 250

NJC

0 new messages