RE: ospf distance

From: Aaron <aaron1_at_gvtc.com>
Date: Wed, 25 Jul 2012 07:46:40 -0500

Yeah, looks like RID is the way to do it.

ospf(config-router)#do sh ip ro
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static
route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

     172.17.0.0/24 is subnetted, 2 subnets
C 172.17.30.0 is directly connected, FastEthernet0/0
O IA 172.17.20.0 [110/20] via 172.17.30.1, 00:00:52, FastEthernet0/0
     172.16.0.0/24 is subnetted, 2 subnets
O E2 172.16.10.0 [110/20] via 172.17.30.1, 00:00:42, FastEthernet0/0
O E2 172.16.11.0 [110/20] via 172.17.30.1, 00:00:42, FastEthernet0/0

ospf(config-router)#do sh ip ro 172.16.10.0
Routing entry for 172.16.10.0/24
  Known via "ospf 1", distance 110, metric 20, type extern 2, forward metric
20
  Last update from 172.17.30.1 on FastEthernet0/0, 00:00:47 ago
  Routing Descriptor Blocks:
  * 172.17.30.1, from 172.17.20.1, 00:00:47 ago, via FastEthernet0/0
      Route metric is 20, traffic share count is 1

ospf(config-router)#
ospf(config-router)#
ospf(config-router)#distance 109 172.17.20.1 ?
  A.B.C.D Wildcard bits

ospf(config-router)#distance 109 172.17.20.1 0.0.0.0 ?
  <1-99> IP Standard access list number
  <1300-1999> IP Standard expanded access list number
  WORD Standard access-list name
  <cr>

ospf(config-router)#distance 109 172.17.20.1 0.0.0.0
ospf(config-router)#do sh ip ro 172.16.10.0
Routing entry for 172.16.10.0/24
  Known via "ospf 1", distance 109, metric 20, type extern 2, forward metric
20
  Last update from 172.17.30.1 on FastEthernet0/0, 00:00:05 ago
  Routing Descriptor Blocks:
  * 172.17.30.1, from 172.17.20.1, 00:00:05 ago, via FastEthernet0/0
      Route metric is 20, traffic share count is 1

ospf(config-router)#
ospf(config-router)#
ospf(config-router)#no distance 109 172.17.20.1 0.0.0.0
ospf(config-router)#
ospf(config-router)#do sh ip ro 172.16.10.0
Routing entry for 172.16.10.0/24
  Known via "ospf 1", distance 110, metric 20, type extern 2, forward metric
20
  Last update from 172.17.30.1 on FastEthernet0/0, 00:00:02 ago
  Routing Descriptor Blocks:
  * 172.17.30.1, from 172.17.20.1, 00:00:02 ago, via FastEthernet0/0
      Route metric is 20, traffic share count is 1

ospf(config-router)#
ospf(config-router)# distance 109 172.17.30.1 0.0.0.0
ospf(config-router)#do sh ip ro 172.16.10.0
Routing entry for 172.16.10.0/24
  Known via "ospf 1", distance 110, metric 20, type extern 2, forward metric
20
  Last update from 172.17.30.1 on FastEthernet0/0, 00:00:03 ago
  Routing Descriptor Blocks:
  * 172.17.30.1, from 172.17.20.1, 00:00:03 ago, via FastEthernet0/0
      Route metric is 20, traffic share count is 1

ospf(config-router)#
ospf(config-router)#do sh ip ro 172.16.10.0
Routing entry for 172.16.10.0/24
  Known via "ospf 1", distance 110, metric 20, type extern 2, forward metric
20
  Last update from 172.17.30.1 on FastEthernet0/0, 00:00:08 ago
  Routing Descriptor Blocks:
  * 172.17.30.1, from 172.17.20.1, 00:00:08 ago, via FastEthernet0/0
      Route metric is 20, traffic share count is 1

ospf(config-router)#
ospf(config-router)#
ospf(config-router)#no distance 109 172.17.30.1 0.0.0.0
ospf(config-router)#distance 109 172.17.20.1 0.0.0.0
ospf(config-router)#
ospf(config-router)#do sh ip ro 172.16.10.0
Routing entry for 172.16.10.0/24
  Known via "ospf 1", distance 109, metric 20, type extern 2, forward metric
20
  Last update from 172.17.30.1 on FastEthernet0/0, 00:00:02 ago
  Routing Descriptor Blocks:
  * 172.17.30.1, from 172.17.20.1, 00:00:02 ago, via FastEthernet0/0
      Route metric is 20, traffic share count is 1

ospf(config-router)#

-----Original Message-----
From: nobody_at_groupstudy.com [mailto:nobody_at_groupstudy.com] On Behalf Of
Gilles FABRE
Sent: Wednesday, July 25, 2012 7:13 AM
To: shekhar sharma; Cisco certification
Subject: re: ospf distance

For OSPF, you should refer not to neighbor adress but router-id

please try instead :

distance 109 150.1.4.4 0.0.0.0

Best regards.

> Message du 25/07/12 C 12h02
> De : "shekhar sharma"
> A : "Cisco certification"
> Copie C :
> Objet : ospf distance
>
> Hi All,
>
>
> I was working with manipulating OSPF distance.
>
> Not able to change ospf distance per neigbour...Not sure if this is
> config issue or OSPF doesn't support it like EIGRP
>
> R5(config-router)#router ospf 1
> R5(config-router)#distance 109 142.1.0.4 0.0.0.0
>
> R5#sh ip route 142.1.34.4
> Routing entry for 142.1.34.0/24
> Known via "ospf 1", distance 110, metric 65, type intra area Last
> update from 142.1.0.4 on Serial0/0, 00:00:36 ago Routing Descriptor
> Blocks:
> 142.1.0.4, from 150.1.4.4, 00:00:36 ago, via Serial0/0 Route metric is
> 65, traffic share count is 1
> * 142.1.0.3, from 150.1.4.4, 00:00:36 ago, via Serial0/0 Route metric
> is 65, traffic share count is 1 Regards, Shekhar
>
>
> Blogs and organic groups at http://www.ccie.net
>
> ______________________________________________________________________
> _ Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
>
>
>
>
>
>
>
>
Received on Wed Jul 25 2012 - 07:46:40 ART

This archive was generated by hypermail 2.2.0 : Wed Aug 01 2012 - 15:55:23 ART