static default vs bgp default

Angel Lopez Delgado ald at ignis.software
Wed Feb 3 03:16:25 CET 2016


Hi Anand Buddhdev,

Change the preference in your static protocol configuration:

protocol static {
  route 0.0.0.0/0 unreachable;
  preference 99;
}

Before:

bird> show route 0.0.0.0/0
0.0.0.0/0          unreachable [static1 16:21:11] * (200)
                   unreachable [Customer 16:03:09 from 10.10.10.101]
(100/-) [i]

After:

bird> show route 0.0.0.0/0
0.0.0.0/0          unreachable [Customer 16:03:09 from 10.10.10.101] *
(100/-) [i]
                   unreachable [static1 16:22:17] (99)

You can set any value lower then 100.

Regards

On Tue, Feb 2, 2016 at 1:07 PM, Anand Buddhdev <anandb at ripe.net> wrote:

> Dear BIRD users,
>
> I want to configure bird with a static default like this:
>
> protocol static {
>   route 0.0.0.0/0 unreachable;
> }
>
> so that if a more specific route isn't known, packets are discarded.
> With the same BIRD instance, I want to peer over BGP with multiple
> peers. However, if any one of these peers provides a default route over
> BGP, I want it to take precedence over the static. How do I get bird to
> install the peer-supplied default with a higher weight?
>
> Regards,
> Anand
>



-- 
*Angel Adrián López Delgado*

*Director Network Engineer*


  <https://www.facebook.com/IgnisSoftware>
<https://twitter.com/IgnisSoftware>


*+52 656 150 44 53 **| * ald at ignis.software |  Ciudad Juárez, Chihuahua,
México |

This e-mail message may contain confidential or legally privileged
information and is intended only for the use of the intended recipient(s).
Any unauthorized disclosure, dissemination, distribution, copying or the
taking of any action in reliance on the information herein is prohibited.
E-mails are not secure and cannot be guaranteed to be error free as they
can be intercepted, amended, or contain viruses. Anyone who communicates
with us by e-mail is deemed to have accepted these risks. Company Name is
not responsible for errors or omissions in this message and denies any
responsibility for any damage arising from the use of e-mail. Any opinion
and other statement contained in this message and any attachment are solely
those of the author and do not necessarily represent those of the company.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20160202/b49f2af1/attachment.html>


More information about the Bird-users mailing list