BGP export connected or static prefixes

Ondrej Filip feela at network.cz
Sat Mar 7 00:35:54 CET 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 6.3.2015 23:05, Anand Buddhdev wrote:

> So my final config now looks like this, and it works. Of course,
> I'm open to any more improvements.

I think, this looks good. I have a very similar config on my AS112
in NIX.CZ. You may consider to use templates, to make it shorter.
But that's no necessary.

template bgp PEERS {
        local as 112;
        import all;
        export filter as112;
        route limit 10000;
}


protocol bgp from PEERS {
	neighbor <peeraddr1> as <peeras1>;
}
protocol bgp from PEERS {
	neighbor <peeraddr2> as <peeras2>;
}
[...]

		Ondrej


> 
> --- bird.conf --- listen bgp address <myaddr>; router id
> <myaddr>;
> 
> filter as112 { if net = 192.175.48.0/24 then accept; }
> 
> protocol device { }
> 
> protocol direct { interface "dummy0*"; }
> 
> protocol kernel { export all; kernel table 10; }
> 
> protocol bgp { export filter as112; local <myaddr> as 112; 
> neighbor <peeraddr1> as <peeras1>; } protocol bgp { export filter
> as112; local <myaddr> as 112; neighbor <peeraddr2> as <peeras2>; 
> } --- end ---
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJU+jnaAAoJED82D4RIDoWPe2IP/iX4d26LJkYwli2Q2eugLZIR
yDZOH8u+w0cUJ8H/DbGGVoB22LUNx198479++My4tSKaWontHVAVOrQjGqoBS+0a
gLxo59Xz6lrAcR7Z7Girbmj8uNDFzolrNrlqa1vvVfNYZnEfEO0TzkOXc3zPVyIR
HEsA6XmHACX+5CPtnCNNThL9oY2A4Wjm6HMDKUHRB8kfVNdzzVFFH5Zp6L2ga+Uj
Pz+v5m/Cz1yqu9Ce8QSa1EzSyXolIINOjSiHzYIT1D5vy6vFFMruPu7omHCFYLZ8
QTdrz7pJCzxC5WqU2KLIgUzquNHv4h9YgfKlh2EuW4Ccr0ZOShwpBCY2RW+NFilP
ou/kC4mdSuWOuE8UxF9OnUFVC0aX62nRsQ0PjPX5sRNYDEWM9y6tkkfrisW0t5D6
oxr08bI9HIA/qAzHfJR8nfxFF1s5U5i1JLHcUduK+L18Yg5M6AmNYOtuivM4j53D
xZKrrHU3kmKciIXrQz9jV6qY/0xgJFA17yB0rS6zAXm9a1QNjRiDhtON1bQmnZuh
wJU60xjvs2j+pL5h4POoIakABv1qkwQDQLgR9iW8Ukg1591ZdtXyLhkTSdYSilez
QBJk8TVZ0GGzBQ+dXqrcpnm1Jnc4kXvMYbITzpDgJUz0sy5ir2pTIGdTWe0Q3Owi
Xsjxj1l3pw5JjGU5xuK4
=j3fO
-----END PGP SIGNATURE-----


More information about the Bird-users mailing list