Re: distribution lists in RIP

From: Sean C (Upp_and_Upp@xxxxxxxxxxx)
Date: Fri Mar 29 2002 - 12:34:15 GMT-3


   
Hi Eric,

Here's an example from Caslow & Palichenko "Cisco Certification - Bridges,
Routers and Switches for CCIEs" p 429. This will only distribute the listed
networks.

OSPF routes -
172.16.20.0/24
172.16.50.0/24
10.20.30.0/24

IGRP routes -
172.16.1.0/24
172.16.2.0/24
10.1.1.0/24

acl 1 per 172.16.1.0
acl 1 per 172.16.2.0
acl 1 per 10.1.1.0

acl 2 per 172.16.20.0
acl 2 per 172.16.50.0
acl 2 per 10.20.30.0

router ospf 100
redistribute igrp 100 subnets
distribute-list 1 out igrp 100

router igrp 100
redistribute ospf 100 metric 10000 1000 255 1 1500
distribute-list 2 out ospf 100

HTH,
Sean
----- Original Message -----
From: "Eric Lemmons" <ericlemmons@yahoo.com>
To: "Fred Ingham" <fningham@worldnet.att.net>; "Paul Borghese"
<pborghese@groupstudy.com>
Cc: <ccielab@groupstudy.com>
Sent: Friday, March 29, 2002 9:27 AM
Subject: Re: distribution lists in RIP

> Fred,
> Just to make sure I understand why your example works, let me inquire
> further.
> The "distribute-list 1 out rip" command, under the "router ospf 1"
> configuration, is telling the IOS to filter the updates coming IN
> from rip (destined to be sent to the OSPF process), before sending
> them OUT to the ospf process. Is my reasoning correct?
> Thanks, Fred.
> By the way, I recently attended the NMC2 course, and I'm sorry I
> didn't get a chance to meet you when I was there.
> Eric
>
> --- Fred Ingham <fningham@worldnet.att.net> wrote:
> > Paul: To filter the routes use: router ospf 1
> > redistribute rip subnets
> > distribute-list 1 out rip
> > Cheers, Fred.
> >
> > Paul Borghese wrote:
> > >
> > > I have a configuration where I would like to redistribute from
> > RIP to OSPF.
> > > I would prefer to apply a filter to limit my distributions. I am
> > running
> > > RIP on an ethernet interface and OSPF on a serial interface.
> > When I apply
> > > the command:
> > >
> > > router rip
> > > distribute-list 1 out ospf 1
> > >
> > > It filters the RIP updates out the ethernet interface. So the
> > router seems
> > > to ignore the fact that I told it to only filter when
> > redistrbuting into
> > > OSPF and instead filters regular rip updates. Here is some
> > debugging
> > > output:
> > >
> > > Before applying distribute-list 1 out ospf:
> > >
> >
> --------------------------------------------------------------------
> > > 02:24:10: RIP: sending v1 update to 255.255.255.255 via Ethernet0
> > > (190.27.2.3)
> > > 02:24:10: RIP: build update entries
> > > 02:24:10: network 87.0.0.0 metric 7
> > > 02:24:10: network 180.70.0.0 metric 7
> > > 02:24:10: subnet 190.27.1.0 metric 7
> > > 02:24:10: subnet 190.27.10.0 metric 7
> > > 02:24:10: subnet 190.27.11.0 metric 7
> > >
> >
> -------------------------------------------------------------------------
> > >
> > > Notice there are a number of routes being advertised out E0.
> > >
> > > Now I will apply the command:
> > >
> >
> --------------------------------------------------------------------------

--
> > > --
> > > R7(config-router)#router rip
> > > R7(config-router)#distribute-list 1 out ospf 1
> > > R7(config-router)#
> > > 02:24:15: RIP: Distribute-list changed: sending triggered update
> > > R7(config-router)#
> > > 02:24:35: RIP: sending v1 update to 255.255.255.255 via Ethernet0
> > > (190.27.2.3)
> > > 02:24:35: RIP: build update entries - suppressing null update
> > >
> >
> --------------------------------------------------------------------------
--
> > > --------
> > >
> > > Notice the update did not have any entries.  So the command
> > distribute-list
> > > 1 out ospf 1 blocks routes from leaving the ethernet interface.
> > >
> > > Why?
> > >
> > > Paul Borghese


This archive was generated by hypermail 2.1.4 : Thu Jun 13 2002 - 10:57:25 GMT-3