6.40 OSPF Filtering with Route-Maps

Hi experts,
I had the follwing "solution":

route-map FILTER deny 10
 match ip address prefix-list R3_LOOPBACK0
 match ip next-hop prefix-list R4  <---
!
ip prefix-list R3_LOOPBACK0 seq 5 permit 150.1.3.3/32
ip prefix-list R4 seq 5 permit 155.1.146.4/32  <---

However, this did not work out as expected (i.e. it did not eliminate the route via R4):

R6#sh ip route 150.1.3.3
Routing entry for 150.1.3.3/32
  Known via "ospf 1", distance 110, metric 130, type intra area
  Redistributing via eigrp 10
  Advertised by eigrp 10 metric 100000 1000 255 1 1500
  Last update from 155.1.146.1 on FastEthernet0/0.146, 00:02:32 ago
  Routing Descriptor Blocks:
    155.1.146.4, from 150.1.30.30, 00:02:32 ago, via FastEthernet0/0.146
      Route metric is 130, traffic share count is 1
  * 155.1.146.1, from 150.1.30.30, 00:02:32 ago, via FastEthernet0/0.146
      Route metric is 130, traffic share count is 1

When I change to a configuration with access-list, it is working as expected:

route-map FILTER deny 10
 match ip address prefix-list R3_LOOPBACK0
 match ip next-hop 4  <---
!
access-list 4 permit 155.1.146.4

R6#sh ip route 150.1.3.3
Routing entry for 150.1.3.3/32
  Known via "ospf 1", distance 110, metric 130, type intra area
  Redistributing via eigrp 10
  Advertised by eigrp 10 metric 100000 1000 255 1 1500
  Last update from 155.1.146.1 on FastEthernet0/0.146, 00:01:06 ago
  Routing Descriptor Blocks:
  * 155.1.146.1, from 150.1.30.30, 00:01:06 ago, via FastEthernet0/0.146
      Route metric is 130, traffic share count is 1

Does anybody know why "match ip next-hop prefix-list R4" does not do the job?
I am using c3640-jk9o3s-mz.124-16a.bin

I couldn't find a description of this command in the IOS 12.4 command reference.

Regards,
tom

Comments

Sign In or Register to comment.