Re: OSPF route-type per neighbor

From: Alexei Monastyrnyi <alexeim73_at_gmail.com>
Date: Wed, 18 Dec 2013 11:59:56 +0100

distribute-list for OSPF won't work either, as it is designed for filtering
 OSPF routes from being installed in the RIP. Besides match ip address in
this case is for route source which is OSPF router ID, has nothing to do
with actual prefix.
The only way I see is to run two OSPF processes on two sides of the network
and do a route type manipulation while redistributing between them. But as
Tony asked "why, oh why???" :-)

On 18 December 2013 10:14, Sam Bibby <sammybibs_at_gmail.com> wrote:

> Sam,
>
> On R1 when redistributing set them as E2 as you put them in, that's the
> easy part.
>
> For making them E1 on r2 on ingress you could *try*:
>
> !R2
> ip prefix-list SET->E1->To->E2 permit 1.1.1.0/24
> !
> route-map MED_TYPE_MOD permit 10
> match ip address prefix-list SET->E1->To->E2
> set metric-type type-1
> !
> route-map MED_TYPE_MOD permit 1000
> !
> Interface fas 0/0 !!!whatever interface is learning the routes
> ip policy route-map MED_TYPE_MOD
> !
>
>
> I am not saying this will work, but it may be worth giving it a shot in
> the lab. Or you could try applying the route map within ospf:
> !!R2
> router osfp 1
> distribute-list route-map MED_TYPE_MOD in
>
> But as Al said, "would make the database inconsistent", so you prob can do
> it, but you may break stuff.
>
> My 2 cents :)
>
> \Sam
>
>
>
>
> On Wed, Dec 18, 2013 at 8:59 AM, Alexei Monastyrnyi <alexeim73_at_gmail.com>wrote:
>
>> Hi.
>> I reckon you can not, as the prefix is in the OSPF database and
>> manipulating the routs type on hop by hop basis would make the database
>> inconsistent. Entire OSPF logic relies on the database being consistent
>> across the board.
>>
>> Unless I am missing something.
>>
>> Cheers
>> A.
>>
>> Sent from my iPhone
>>
>> > On 18 dec 2013, at 09:39, sameer khan <khanzadap_at_hotmail.com> wrote:
>> >
>> > hey folks
>> > 1.1.1.0/24|R1--R3| <http://1.1.1.0/24%7CR1--R3%7C> |R2--R4
>> >
>> > R1 is the asbr redistributing routes from rip (1.1.1.0/24). Is it
>> possible to
>> > set route-type to E1 for R2 and E2 for R3.
>> > Thanks
>> >
>> >
>> > Blogs and organic groups at http://www.ccie.net
>> >
>> > _______________________________________________________________________
>> > Subscription information may be found at:
>> > http://www.groupstudy.com/list/CCIELab.html
>>
>>
>> Blogs and organic groups at http://www.ccie.net
>>
>> _______________________________________________________________________
>> Subscription information may be found at:
>> http://www.groupstudy.com/list/CCIELab.html

Blogs and organic groups at http://www.ccie.net
Received on Wed Dec 18 2013 - 11:59:56 ART

This archive was generated by hypermail 2.2.0 : Wed Jan 01 2014 - 20:26:19 ART