<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.E-MailFormatvorlage17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE-CH" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi there,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">I am really new to the complete topic of BGP. So please have a bit mercy with me if I ask something very stupid. But I am trying to build that for the first time ever and I am feeling like a donkey in front of a big mountain.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Last but not least it is currently running, but I guess its more luck than something else. Like I said I am completely new to the topic of BGP. What I don't get is how I configure them together so they work (as a HA-Cluster)
and currently I can only route a.b.c.249/29 instead of a.b.c.0/22.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Here is what I am trying to build (<a href="https://imgur.com/a/NtWE6MY">https://imgur.com/a/NtWE6MY</a>).<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">And here are my two configs:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">/*<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">* My example bgp01 configuration<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">*/<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">log syslog all;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">log "/var/log/bird.log" all;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"># d.e.f.124/29 is my IP in the transfer network /29 to my peering uplink1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"># d.e.f.125/29 is my 2nd bird bgp in the transfer network /29 to my peering uplink1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">router id d.e.f.124;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">define myasn = XXXX;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">define myaddr = d.e.f.124;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">protocol device {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> scan time 10; # Scan interfaces every 10 seconds<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">}<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">ipv4 table master4;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">protocol direct {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> ipv4; # Tells bird to only do ipv4<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> interface "enp3s0f4"; # Restrict network interfaces BIRD works with<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">}<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">protocol kernel {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> ipv4{<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> table master4;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> import all;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> export all;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> };<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> persist;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">}<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">#a.b.c.0 is my own /22 ip range<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">protocol static static_bgp {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> ipv4;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> route a.b.c.0/22 via d.e.f.124;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">}<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">protocol bgp link1 {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> local d.e.f.124 as XXXX;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> neighbor d.e.f.121 as YYYY; #d.e.f.121 is the first router of my peering uplink 1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> ipv4 { import all;export where proto = "static_bgp"; };<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">}<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">protocol bgp link2 {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> local d.e.f.124 as XXXX;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> neighbor d.e.f.122 as YYYY; #d.e.f.122 is the second router of my peering uplink 1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> ipv4 { import all;export where proto = "static_bgp"; };<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">}<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">/*<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">* My example bgp02 configuration<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">*/<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">log syslog all;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">log "/var/log/bird.log" all;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"># d.e.f.124/29 is my IP in the transfer network /29 to my peering provider1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"># d.e.f.125/29 is my 2nd bird bgp in the transfer network /29 to my peering provider1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">router id d.e.f.125;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">define myasn = XXXX;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">define myaddr = d.e.f.125;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">protocol device {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> scan time 10; # Scan interfaces every 10 seconds<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">}<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">ipv4 table master4;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">protocol direct {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> ipv4; # Tells bird to only do ipv4<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> interface "enp3s0f4"; # Restrict network interfaces BIRD works with<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">}<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">protocol kernel {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> ipv4{<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> table master4;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> import all;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> export all;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> };<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> persist;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">}<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">#a.b.c.0 is my own /22 ip range<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">protocol static static_bgp {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> ipv4;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> route a.b.c.0/22 via d.e.f.125;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">}<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">protocol bgp link1 {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> local d.e.f.125 as XXXX;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> neighbor d.e.f.121 as YYYY; #d.e.f.121 is the first router of my peering provider1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> ipv4 { import all;export where proto = "static_bgp"; };<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">}<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">protocol bgp link2 {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> local d.e.f.125 as XXXX;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> neighbor d.e.f.122 as YYYY; #d.e.f.122 is the second router of my peering provider1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> ipv4 { import all;export where proto = "static_bgp"; };<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">}<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks a lot for your help and inputs<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Best Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Yves<o:p></o:p></span></p>
</div>
</body>
</html>