From: Marc (tan@dia.janis.or.jp)
Date: Sun May 11 2003 - 04:33:13 GMT-3
I found this in the archives while searching for an answer to another
question I just posted (nssa default originate).
A conditional route-map for default route.
Here is the original
http://www.groupstudy.com/archives/ccielab/200207/msg02449.html
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 <---------------------------WHAT is this matching?
set metric 77
set metric-type type-1
!
My question, what is the match condition in the route-map comparing. I
understand you can do conditional default route advertising if you do a
double match, say match ip address and then match ip next hop under, but
this uses match ip address of 0.0.0.0. So what is the above config
accompolishing by matching on 45.2.2.0. I thought it a mistake, but the
original thread seems to suggest it is working as should, i.e. if the
connected interface of 45.2.2.0 is down, default route doesn't go. But isn't
the match statement supposed to be for the route itself? I don't see how it
works.
Thanks
Marc
This archive was generated by hypermail 2.1.4 : Mon Jun 02 2003 - 15:13:40 GMT-3