From: Rajani Deshpande (rajani_desh@yahoo.com)
Date: Mon Mar 31 2003 - 17:19:24 GMT-3
You need to use the following command to change the
distance in ospf
router ospf 1
distance A 0.0.0.0 255.255.255.255 10
access-list 10 permit x.x.x.x x.x.x.x
A - AD
x - is the subnet and mask
Thanks
--- Jonathan V Hays <jhays@jtan.com> wrote:
> I implemented the example in the link you sent and
> noticed that it does
> not matter which order you enter the commands. The
> resulting routing
> table is the same, and the "show run" command sorts
> "distance 255" at
> the top regardless of whether you put it in first or
> last.
> ---------
> router igrp 109
> network 172.16.0.0
> network 192.168.7.0
> distance 255
> distance 90 192.168.7.0 0.0.0.255
> distance 120 172.16.1.3 0.0.0.0
>
> SHOW IP ROUTE: note the AD has been set to 120
> below.
>
> Gateway of last resort is not set
>
> 172.16.0.0/24 is subnetted, 1 subnets
> C 172.16.1.0 is directly connected, Serial0
> I 199.3.3.0/24 [120/8976] via 172.16.1.3,
> 00:00:21, Serial0
> r2503b#
> ---------
>
> Needless to add, IGRP is no longer a part of the
> CCIE Lab.
>
> BTW, the distance command works differently under
> other routing
> protocols, particularly in OSPF where you must
> specify the type of
> route.
>
> r2501a(config-router)#distance ospf ?
> external External type 5 and type 7 routes
> inter-area Inter-area routes
> intra-area Intra-area routes
>
>
>
> > -----Original Message-----
> > From: nobody@groupstudy.com
> [mailto:nobody@groupstudy.com] On
> > Behalf Of Nigel Taylor
> > Sent: Sunday, March 30, 2003 3:01 AM
> > To: ccielab@groupstudy.com
> > Subject: Re: Clarification on DISTANCE command
> >
> >
> > Cebuano,
> > Here's a link that pretty much
> explains the
> > command and it's
> > use. Based on your post, I don't believe there
> will a
> > difference, in how
> > the router will interpret the commands
> >
> >
>
http://www.cisco.com/univercd/cc/td/doc/product/software/ios122/122cgcr/
> fipr
> rp_r/ind_r/1rfindp1.htm#1017503
> watch the line wrap..
>
> HTH
>
> Nigel
>
>
> ----- Original Message -----
> From: "cebuano" <cebu2ccie@cox.net>
> To: <ccielab@groupstudy.com>
> Sent: Saturday, March 29, 2003 11:11 PM
> Subject: Clarification on DISTANCE command
>
>
> > Hi group.
> > Can someone eloquently explain the practical
> difference between these
> > two?
> >
> > Example 1:
> > Router ospf 1
> > Net a.b.c.d
> > Distance 255
> > Distance 90 a.b.c.d w.x.y.z
> > Distance 120 e.f.g.h w.x.yz
> >
> > Example 2:
> > Router ospf 1
> > Net a.b.c.d
> > Distance 90 a.b.c.d w.x.y.z
> > Distance 120 e.f.g.h w.x.y.z
> > Distance 255
> >
> > TIA.
This archive was generated by hypermail 2.1.4 : Sat Apr 05 2003 - 08:51:47 GMT-3