RE: ospf distance

From: Aaron <aaron1_at_gvtc.com>
Date: Wed, 25 Jul 2012 08:34:55 -0500

Rid is still the way I see it working even with summary lsa's (IA)

 

ospf1#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, 3 subnets

C 172.17.40.0 is directly connected, FastEthernet0/0

O 172.17.30.0 [110/20] via 172.17.40.1, 00:00:03, FastEthernet0/0

O IA 172.17.20.0 [110/30] via 172.17.40.1, 00:00:03, FastEthernet0/0

     172.16.0.0/24 is subnetted, 2 subnets

O E2 172.16.10.0 [110/20] via 172.17.40.1, 00:00:03, FastEthernet0/0

O E2 172.16.11.0 [110/20] via 172.17.40.1, 00:00:03, FastEthernet0/0

 

ospf1#ping 172.16.10.1

 

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 172.16.10.1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 40/73/108 ms

 

ospf1#trace 172.16.10.1

 

Type escape sequence to abort.

Tracing the route to 172.16.10.1

 

  1 172.17.40.1 40 msec 28 msec 12 msec

  2 172.17.30.1 28 msec 20 msec 20 msec

  3 172.17.20.1 36 msec 44 msec 24 msec

  4 172.16.10.1 68 msec * 92 msec

 

ospf1#sh run | sec router ospf

router ospf 1

log-adjacency-changes

network 172.17.40.2 0.0.0.0 area 0

ospf1#conf t

Enter configuration commands, one per line. End with CNTL/Z.

ospf1(config)#router ospf 1

 

ospf1(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, 3 subnets

C 172.17.40.0 is directly connected, FastEthernet0/0

O 172.17.30.0 [110/20] via 172.17.40.1, 00:00:44, FastEthernet0/0

O IA 172.17.20.0 [110/30] via 172.17.40.1, 00:00:44, FastEthernet0/0

     172.16.0.0/24 is subnetted, 2 subnets

O E2 172.16.10.0 [110/20] via 172.17.40.1, 00:00:44, FastEthernet0/0

O E2 172.16.11.0 [110/20] via 172.17.40.1, 00:00:44, FastEthernet0/0

 

ospf1(config-router)#do sh ip ro 172.17.20.0

Routing entry for 172.17.20.0/24

  Known via "ospf 1", distance 110, metric 30, type inter area

  Last update from 172.17.40.1 on FastEthernet0/0, 00:00:48 ago

  Routing Descriptor Blocks:

  * 172.17.40.1, from 172.17.30.1, 00:00:48 ago, via FastEthernet0/0

      Route metric is 30, traffic share count is 1

 

ospf1(config-router)#distance 108 ?

  A.B.C.D IP Source address

  <cr>

 

ospf1(config-router)#distance 108 172.17.20.0 ?

  A.B.C.D Wildcard bits

 

ospf1(config-router)#distance 108 172.17.20.0 0.0.0.255

 

************* specifying network doesn't work

 

ospf1(config-router)#do sh ip ro 172.17.20.0

Routing entry for 172.17.20.0/24

  Known via "ospf 1", distance 110, metric 30, type inter area

  Last update from 172.17.40.1 on FastEthernet0/0, 00:00:04 ago

  Routing Descriptor Blocks:

  * 172.17.40.1, from 172.17.30.1, 00:00:04 ago, via FastEthernet0/0

      Route metric is 30, traffic share count is 1

 

ospf1(config-router)#no distance 108 172.17.20.0 0.0.0.255

ospf1(config-router)#

ospf1(config-router)#distance 108 172.17.40.1 0.0.0.0

ospf1(config-router)#

 

************* specifying next hop doesn't work

 

ospf1(config-router)#do sh ip ro 172.17.20.0

Routing entry for 172.17.20.0/24

  Known via "ospf 1", distance 110, metric 30, type inter area

  Last update from 172.17.40.1 on FastEthernet0/0, 00:00:06 ago

  Routing Descriptor Blocks:

  * 172.17.40.1, from 172.17.30.1, 00:00:06 ago, via FastEthernet0/0

      Route metric is 30, traffic share count is 1

 

 

ospf1(config-router)#no distance 108 172.17.40.1 0.0.0.0

ospf1(config-router)#

 

ospf1(config-router)#do sh ip ro 172.17.20.0

Routing entry for 172.17.20.0/24

  Known via "ospf 1", distance 110, metric 30, type inter area

  Last update from 172.17.40.1 on FastEthernet0/0, 00:00:06 ago

  Routing Descriptor Blocks:

  * 172.17.40.1, from 172.17.30.1, 00:00:06 ago, via FastEthernet0/0

      Route metric is 30, traffic share count is 1

 

ospf1(config-router)#

ospf1(config-router)#distance 108 172.17.30.1 0.0.0.0

 

************* specifying RID of source of lsa works

 

ospf1(config-router)#do sh ip ro 172.17.20.0

Routing entry for 172.17.20.0/24

  Known via "ospf 1", distance 108, metric 30, type inter area

  Last update from 172.17.40.1 on FastEthernet0/0, 00:00:01 ago

  Routing Descriptor Blocks:

  * 172.17.40.1, from 172.17.30.1, 00:00:01 ago, via FastEthernet0/0

      Route metric is 30, traffic share count is 1

 

ospf1(config-router)#

 

 

From: shekhar sharma [mailto:shekhar.sharma21_at_gmail.com]
Sent: Wednesday, July 25, 2012 7:52 AM
To: Aaron
Cc: Gilles FABRE; Cisco certification
Subject: Re: ospf distance

 

Aaron,

 

 

You have done testing with External LSA ....

 

have u tried it with Intra-area LSA ?? Since i am facing issue with
Intra-area

On Wed, Jul 25, 2012 at 4:46 PM, Aaron <aaron1_at_gvtc.com> wrote:

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 - 08:34:55 ART

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