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

List:       quagga-users
Subject:    [quagga-users 13283] Re: Pulling local linux routes into zebra for bgp redistribution?
From:       Barry Friedman <barryf () google ! com>
Date:       2013-05-16 23:26:55
Message-ID: CAPPfa8uxkz78chPysZkQ5fZTtkD8cVixE_eFp2SVoK3BRjJ=Jg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Did you try the following:

router bgp xxx
 redistribute kernel

+1 on route tagging, it would be very useful.

Regards,
Barry


On Thu, May 16, 2013 at 3:14 PM, David H <ispcolohost@gmail.com> wrote:

> I'm in the process of setting up Quagga for use as an RTBH router and am
> trying to make it as simple as possible for staff to add routes to be
> injected.  At first I was going to do just bgpd but I need to apply
> different communities under certain conditions, so I added zebra and am
> doing redistribute static with a route map on the bgpd side.  Now I can go
> into zebra and add static routes and they get populated to bgp and off to
> the border routers and upstreams just fine, but looking to make that
> easier.  I noticed on linux that "ip route show" lists routes I've added
> for blocking in zebra, for example:
>
> blackhole 1.2.3.4  proto zebra
>
> I was curious if there's a linux command I could use to add those routes
> myself and then zebra would pick them up?  That would make it very easy to
> script an interface for our noc staff to use to quickly blackhole or block
> someone.  Perhaps something like "ip route add blackhole 1.2.3.4/32 proto
> zebra"?  I did that and it ended up in the routing table of the kernel but
> not in zebra and therefore not in bgpd.  Or if no option there, is there a
> command line method of adding a static route to zebra that doesn't require
> going into the telnet vty interface, conf t, etc.?
>
> On a side note, I noticed someone requesting route tag support back in
> 2004 (
> http://lists.quagga.net/pipermail/quagga-users/2004-October/002857.html)
> and occassionally since then.  Any chance that feature is being worked on?
> It would make RTBH router deployment a lot easier.  Since I need to tag
> different routes with different communities based on whether they're for
> blackholing or remote blocking, I'm having to do some very creative prefix
> lists with length restrictions to make sure the right type of routes are
> tagged the right way.
>
> Thanks,
>
> Dave
>
> _______________________________________________
> Quagga-users mailing list
> Quagga-users@lists.quagga.net
> http://lists.quagga.net/mailman/listinfo/quagga-users
>
>

[Attachment #5 (text/html)]

<div dir="ltr">Did you try the following:<div><br></div><div style>router bgp \
xxx</div><div style> redistribute kernel</div><div style><br></div><div style>+1 on \
route tagging, it would be very useful.</div><div style><br> </div><div \
style>Regards,</div><div style>Barry</div></div><div class="gmail_extra"><br><br><div \
class="gmail_quote">On Thu, May 16, 2013 at 3:14 PM, David H <span dir="ltr">&lt;<a \
href="mailto:ispcolohost@gmail.com" \
target="_blank">ispcolohost@gmail.com</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr"><div><div><div>I&#39;m in the process of \
setting up Quagga for use as an RTBH router and am trying to make it as simple as \
possible for staff to add routes to be injected.  At first I was going to do just \
bgpd but I need to apply different communities under certain conditions, so I added \
zebra and am doing redistribute static with a route map on the bgpd side.  Now I can \
go into zebra and add static routes and they get populated to bgp and off to the \
border routers and upstreams just fine, but looking to make that easier.  I noticed \
on linux that &quot;ip route show&quot; lists routes I&#39;ve added for blocking in \
zebra, for example:<br>

<br></div>blackhole 1.2.3.4  proto zebra<br><br></div>I was curious if there&#39;s a \
linux command I could use to add those routes myself and then zebra would pick them \
up?  That would make it very easy to script an interface for our noc staff to use to \
quickly blackhole or block someone.  Perhaps something like &quot;ip route add \
blackhole <a href="http://1.2.3.4/32" target="_blank">1.2.3.4/32</a> proto \
zebra&quot;?  I did that and it ended up in the routing table of the kernel but not \
in zebra and therefore not in bgpd.  Or if no option there, is there a command line \
method of adding a static route to zebra that doesn&#39;t require going into the \
telnet vty interface, conf t, etc.?<br>

<br></div>On a side note, I noticed someone requesting route tag support back in 2004 \
(<a href="http://lists.quagga.net/pipermail/quagga-users/2004-October/002857.html" \
target="_blank">http://lists.quagga.net/pipermail/quagga-users/2004-October/002857.html</a>) \
and occassionally since then.  Any chance that feature is being worked on?  It would \
make RTBH router deployment a lot easier.  Since I need to tag different routes with \
different communities based on whether they&#39;re for blackholing or remote \
blocking, I&#39;m having to do some very creative prefix lists with length \
restrictions to make sure the right type of routes are tagged the right way.<br>

<br>Thanks,<br><br>Dave<br></div>
<br>_______________________________________________<br>
Quagga-users mailing list<br>
<a href="mailto:Quagga-users@lists.quagga.net">Quagga-users@lists.quagga.net</a><br>
<a href="http://lists.quagga.net/mailman/listinfo/quagga-users" \
target="_blank">http://lists.quagga.net/mailman/listinfo/quagga-users</a><br> \
<br></blockquote></div><br></div>



_______________________________________________
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