distribute-list question

From: Maxim Kurushkin (m.kurushkin@orange-ftgroup.ru)
Date: Sat Feb 10 2007 - 12:54:18 ART


Hi, Group.
I am trying to filter routes in redistribution process (RIP -> OSPF). I
am using commans:

ON ROUTER 1:
router rip
 version 2
 redistribute ospf 1 metric 1
 passive-interface default
 network 200.200.200.0
 distribute-list 1 out ospf 1
 no auto-summary
interface Loopback1
 ip address 200.200.200.200 255.255.255.0
router ospf 1
 redistribute rip subnets
 network 10.1.1.253 0.0.0.0 area 0 <-- Network between R1 and R2
access-list 1 deny any

ON ROUTER 2 I can see 200.200.200.0 route:
Router1#sh ip route ospf
O E2 200.200.200.0/24 [110/20] via 10.1.1.253, 00:11:15, Serial0/0

It is very strange. UniverCD is very clear about distribute-list 1 out
ospf 1 :

      Controlling the Advertising of Routes in Routing Updates

To prevent other routers from learning one or more routes, you can
suppress routes from being advertised in routing updates. Suppressing
routes in route updates prevents other routers from learning the
interpretation of a particular device of one or more routes. You cannot
specify an interface name in OSPF. When used for OSPF, this feature
applies only to external routes.

To suppress routes from being advertised in routing updates, use the
following command in router configuration mode:

Command
        
Purpose

Router(config-router)# *distribute-list* {/access-list-number/ |
/access-list-name/} *out *[/interface-name/ | /routing-process/ |
/as-number/]

        

Permits or denies routes from being advertised in routing updates
depending upon the action listed in the access list.

So, what is metter? Why it is not working?

WBR,
Maxim



This archive was generated by hypermail 2.1.4 : Thu Mar 01 2007 - 07:38:46 ART