[prev in list] [next in list] [prev in thread] [next in thread] 

List:       quagga-users
Subject:    [quagga-users 10472] Re: ospf and routing to subnets
From:       Alexis Rosen <quagga-users () alexis ! users ! panix ! com>
Date:       2009-03-18 8:46:01
Message-ID: 6B29EA1C-6F90-466F-B090-B3C8E8479A70 () alexis ! users ! panix ! com
[Download RAW message or body]

On Mar 12, 2009, at 7:07 PM, Lucjan Kisiel wrote:
> On Mar 10, 2009, at 6:43 PM, Lucjan Kisiel wrote:
>> Hi, As a newbie one I have a question.. Is there any tool in ospf
>> (quagga) which let me to set cost on IP subnets no for whole
>> interface. Simply I want to, routing to some subnets was preffered
>> to first neighbor and to the other subnets to the second neighbor
>> even though I get all paths from every neighbor.
>
> [Alexis Rosen wrote:]
>> If you're redistributing from some other protocol, use a route-map on
>> the redistribution statement to set the cost. (Route-maps can set  
>> cost
>> on Ciscos; I assume it works on Quagga but haven't tested.)
>
> Unfortunately not, on quagga can't make this.

1) Please clean up your quoting. It's broken in several of your  
messages, which makes this hard to follow.

2) Really? Are you sure? Can you at least set things like route type  
(external-type-1, -type-2, internal)?

Looking briefly at the Vyatta 5.0.2 update notes, I see mention of  
this bugfix: "OSPF - Setting kernel redistribution metric generates  
internal error". That strongly suggests that you're wrong, at least in  
the latest versions of Quagga.

>> [Alexis wrote:] If you're
>> not... I don't think so, since OSPF is a link-state protocol.  
>> However,
>> there are a few obvious workarounds, one of which should work for  
>> you.
>> For example, you could move that one subnet onto a subinterface, and
>> assign that subint a different cost. Tunnels would also work.
>
> workarounds ? God..

Bad attitude. The internet is built on workarounds. :-) Of course,  
you'd have to use that technique where the routes originate, and if  
that's not directly on the two routers you described, you may be SOL  
anyway, depending on the structure of your net and whether you control  
the node(s) where the routes originate. And that's true for the  
redistribution approach as well- that is, you can only adjust the cost  
of routes at the node where they're imported.

>> Of course, you could also consider using BGP for this, since it's
>> arguably much better suited to the task.
>
> Maybe some specialist of the quagga, ospf can me tell.. is there any  
> other option (no workaround) in quagga to solve my problem ??

OSPF is really not designed for this sort of manipulation. The truly  
"right" way to do this is to use BGP.

/a
_______________________________________________
Quagga-users mailing list
Quagga-users@lists.quagga.net
http://lists.quagga.net/mailman/listinfo/quagga-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic