From: Brian McGahan (brian@cyscoexpert.com)
Date: Wed Dec 25 2002 - 17:44:41 GMT-3
Sage,
The "mask" in the distance command is a wildcard mask, not a
subnet mask. Also, it's not the interface address you want to match in
OSPF, it's the router-id. It is possible, however, that the router-id
is that interface address. The address to match can be seen in the
"from w.x.y.z via..." field in the "show ip route a.b.c.d" output, where
a.b.c.d is the prefix in question.
Your syntax should read:
distance 200 w.x.y.z 0.0.0.0
Where w.x.y.z is R1's router-id
For more info:
http://www.groupstudy.com/archives/ccielab/200210/msg02109.html
Merry X-Mas
Brian McGahan, CCIE #8593
Director of Design and Implementation
brian@cyscoexpert.com
CyscoExpert Corporation
Internetwork Consulting & Training
Voice: 847.674.3392
Fax: 847.674.2625
> -----Original Message-----
> From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf
Of
> Sage Vadi
> Sent: Tuesday, December 24, 2002 9:51 PM
> To: ccielab@groupstudy.com
> Subject: OSPF: distance command
>
> Merry Christmas and Happy New Year.
>
> Topology:
>
> R1-----------------------------------R2
> 116.16.16.1/30 116.16.16.2/30
>
> Problem Description:
>
> R2 learns OSPF routes from R1. Using the distance
> command, I configure the following in R2:
>
> * distance 200 116.16.16.1 255.255.255.252
> which OSPF converts into:
> * distance 200 0.0.0.1 255.255.255.252
>
> I don't have a problem if OSPF converts it.
> But here is what happens on R2's route table:
>
> O IA 116.16.13.0/25 [200/74] via 116.16.16.1
> O E1 190.190.0.0 [200/158] via 116.16.16.1
> [200/158] via 116.16.26.2 **
> O E2 172.16.0.0 [200/20] via 116.16.16.1
> [200/20] via 116.16.26.2 **
> O E2 110.110.0.0 [200/20] via 116.16.16.1
>
> NB: ** OSPF routes learnt from 116.16.26.2 also
> increased to 200. Q) Why does that occur? To be short
> and concise I have not drawn the other routes to which
> R2 is connected to.
>
> My aim is to increase all the routes learnt from
> R1/116.16.16.1 to 200. Ideas?
>
> rgds,
> Sage
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts
> http://uk.my.yahoo.com
> .
.
This archive was generated by hypermail 2.1.4 : Fri Jan 17 2003 - 17:21:52 GMT-3