OSPF conditional default route

From: Scott Livingston (scottl@xxxxxxxxxxxxxxxxx)
Date: Thu Jul 25 2002 - 11:06:38 GMT-3


   
Good Morning,

Before leaving my house this today I had some time to play around w/
some OSPF and found something interesting. This has probably been
posted here before, I might be the last to know about it, or I am just
flat out wrong and wasn't awake enough while I was playing.

Anyway, I went to configure 'default-information originate always
route-map CONDITIONAL-&-METRIC' on router B and decided to verify if
what Dr. Bill said on p. 166 of his book (Cisco OSPF Command and
Configuration Handbook) was true. Bill said, "If the keyword always is
used, the default route will be advertised regardless of the conditions
in the route map."

When I set up my configs as you see below I verified that I was getting
my 0.0.0.0/0 on all routers downstream from router B. I then pulled the
plug on segment 2, which is the conditional subnet in my route-map. If
what Bill said is true then I should still see the default-route in all
my routers because I used the 'always' keyword in the command string.
What I have found is that once I pull the plug on seg2 the entire
network loses the default-route that router B was generating.

So tell me; is Dr. Bill wrong? Did I misconfigure something?

Here is the partial topology:

  -------- OSPF -------- --------
 | | | | | RIP | |
 | A |----------|---------| | | | |
 | | | | B |----------|------| c |
 | | | | | | |
 | | | | | |
  -------- seg1 7.7.7.0/29 -------- seg2 45.2.2.0/30 --------

Router B
---------
!
router ospf 10
 log-adjacency-changes
 summary-address 70.2.0.0 255.255.248.0
 redistribute rip subnets
 network 7.7.7.2 0.0.0.0 area 1
 default-information originate always route-map CONDITIONAL-&-METRIC
 distribute-list 20 out rip
!
access-list 1 permit 45.2.2.0 0.0.0.3
!
route-map CONDITIONAL-&-METRIC permit 10
 match ip address 1
 set metric 77
 set metric-type type-1
!

Router A
---------
router ospf 10
log-adjacency-changes
network 7.7.7.1 0.0.0.0 area 1

-Scott



This archive was generated by hypermail 2.1.4 : Sat Sep 07 2002 - 19:36:43 GMT-3