<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 14 (filtered medium)">
<style><!--
/* Font Definitions */
@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:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"Plain Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
span.PlainTextChar
{mso-style-name:"Plain Text Char";
mso-style-priority:99;
mso-style-link:"Plain Text";
font-family:"Calibri","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
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="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoPlainText">Thanks Ondrej,<o:p></o:p></p>
<p class="MsoPlainText">With your suggested changes, I notice both Kernel and BGP uses single table (master4) and both have the routes. However, the routes shown in the bird has labels attached to them, the routes shown in Kernel table do not show the labels
to them.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">bird> show route<o:p></o:p></p>
<p class="MsoPlainText">Table master4:<o:p></o:p></p>
<p class="MsoPlainText"><span style="background:yellow;mso-highlight:yellow">1.0.1.0/24 unicast [bgp1 11:48:56.097] * (100) [AS65001i]<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="background:yellow;mso-highlight:yellow"> via 10.10.101.1 on bond0.11 mpls 1001</span><o:p></o:p></p>
<p class="MsoPlainText">1.0.0.0/24 unicast [bgp1 11:48:56.097] * (100) [AS65001i]<o:p></o:p></p>
<p class="MsoPlainText"> via 10.10.101.1 on bond0.11 mpls 1000<o:p></o:p></p>
<p class="MsoPlainText">1.0.3.0/24 unicast [bgp1 11:48:56.097] * (100) [AS65001i]<o:p></o:p></p>
<p class="MsoPlainText"> via 10.10.101.1 on bond0.11 mpls 1003<o:p></o:p></p>
<p class="MsoPlainText">1.0.2.0/24 unicast [bgp1 11:48:56.097] * (100) [AS65001i]<o:p></o:p></p>
<p class="MsoPlainText"> via 10.10.101.1 on bond0.11 mpls 1002<o:p></o:p></p>
<p class="MsoPlainText">1.0.5.0/24 unicast [bgp1 11:48:56.097] * (100) [AS65001i]<o:p></o:p></p>
<p class="MsoPlainText"> via 10.10.101.1 on bond0.11 mpls 1005<o:p></o:p></p>
<p class="MsoPlainText">1.0.4.0/24 unicast [bgp1 11:48:56.097] * (100) [AS65001i]<o:p></o:p></p>
<p class="MsoPlainText"> via 10.10.101.1 on bond0.11 mpls 1004<o:p></o:p></p>
<p class="MsoPlainText">1.0.7.0/24 unicast [bgp1 11:48:56.097] * (100) [AS65001i]<o:p></o:p></p>
<p class="MsoPlainText"> via 10.10.101.1 on bond0.11 mpls 1007<o:p></o:p></p>
<p class="MsoPlainText">1.0.6.0/24 unicast [bgp1 11:48:56.097] * (100) [AS65001i]<o:p></o:p></p>
<p class="MsoPlainText"> via 10.10.101.1 on bond0.11 mpls 1006<o:p></o:p></p>
<p class="MsoPlainText">1.0.9.0/24 unicast [bgp1 11:48:56.097] * (100) [AS65001i]<o:p></o:p></p>
<p class="MsoPlainText"> via 10.10.101.1 on bond0.11 mpls 1009<o:p></o:p></p>
<p class="MsoPlainText">1.0.8.0/24 unicast [bgp1 11:48:56.097] * (100) [AS65001i]<o:p></o:p></p>
<p class="MsoPlainText"> via 10.10.101.1 on bond0.11 mpls 1008<o:p></o:p></p>
<p class="MsoPlainText">10.10.101.0/24 unicast [direct1 11:48:09.102] * (240)<o:p></o:p></p>
<p class="MsoPlainText"> dev bond0.11<o:p></o:p></p>
<p class="MsoPlainText">135.21.13.160/28 unicast [direct1 11:46:40.209] * (240)<o:p></o:p></p>
<p class="MsoPlainText"> dev ens3<o:p></o:p></p>
<p class="MsoPlainText">bird><o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">root@ubuntu4-4-VM1:/usr/local/etc# ip -f mpls route show<o:p></o:p></p>
<p class="MsoPlainText">100 as to 200 via inet 192.168.2.2 dev ens3<o:p></o:p></p>
<p class="MsoPlainText">300 dev lo<o:p></o:p></p>
<p class="MsoPlainText">root@ubuntu4-4-VM1:/usr/local/etc# ip -f inet route show<o:p></o:p></p>
<p class="MsoPlainText">default via 135.21.13.161 dev ens3 onlink<o:p></o:p></p>
<p class="MsoPlainText">1.0.0.0/24 via 10.10.101.1 dev bond0.11 proto bird metric 32<o:p></o:p></p>
<p class="MsoPlainText"><span style="background:yellow;mso-highlight:yellow">1.0.1.0/24 via 10.10.101.1 dev bond0.11 proto bird metric 32</span><o:p></o:p></p>
<p class="MsoPlainText">1.0.2.0/24 via 10.10.101.1 dev bond0.11 proto bird metric 32<o:p></o:p></p>
<p class="MsoPlainText">1.0.3.0/24 via 10.10.101.1 dev bond0.11 proto bird metric 32<o:p></o:p></p>
<p class="MsoPlainText">1.0.4.0/24 via 10.10.101.1 dev bond0.11 proto bird metric 32<o:p></o:p></p>
<p class="MsoPlainText">1.0.5.0/24 via 10.10.101.1 dev bond0.11 proto bird metric 32<o:p></o:p></p>
<p class="MsoPlainText">1.0.6.0/24 via 10.10.101.1 dev bond0.11 proto bird metric 32<o:p></o:p></p>
<p class="MsoPlainText">1.0.7.0/24 via 10.10.101.1 dev bond0.11 proto bird metric 32<o:p></o:p></p>
<p class="MsoPlainText">1.0.8.0/24 via 10.10.101.1 dev bond0.11 proto bird metric 32<o:p></o:p></p>
<p class="MsoPlainText">1.0.9.0/24 via 10.10.101.1 dev bond0.11 proto bird metric 32<o:p></o:p></p>
<p class="MsoPlainText">10.10.101.0/24 dev bond0.11 proto kernel scope link src 10.10.101.2<o:p></o:p></p>
<p class="MsoPlainText">10.10.101.0/24 dev bond0.11 proto bird scope link metric 32<o:p></o:p></p>
<p class="MsoPlainText">135.21.13.160/28 dev ens3 proto kernel scope link src 135.21.13.165<o:p></o:p></p>
<p class="MsoPlainText">135.21.13.160/28 dev ens3 proto bird scope link metric 32<o:p></o:p></p>
<p class="MsoPlainText">root@ubuntu4-4-VM1:/<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">bird> show protocols all<o:p></o:p></p>
<p class="MsoPlainText">Name Proto Table State Since Info<o:p></o:p></p>
<p class="MsoPlainText"><span style="background:yellow;mso-highlight:yellow">kernel1 Kernel master4</span> up 11:46:40.203<o:p></o:p></p>
<p class="MsoPlainText"> Channel ipv4<o:p></o:p></p>
<p class="MsoPlainText"> State: UP<o:p></o:p></p>
<p class="MsoPlainText"> <span style="background:yellow;mso-highlight:yellow">
Table: master4</span><o:p></o:p></p>
<p class="MsoPlainText"> Preference: 10<o:p></o:p></p>
<p class="MsoPlainText"> Input filter: ACCEPT<o:p></o:p></p>
<p class="MsoPlainText"> Output filter: ACCEPT<o:p></o:p></p>
<p class="MsoPlainText"> Routes: 0 imported, 12 exported<o:p></o:p></p>
<p class="MsoPlainText"> Route change stats: received rejected filtered ignored accepted<o:p></o:p></p>
<p class="MsoPlainText"> Import updates: 0 0 0 0 0<o:p></o:p></p>
<p class="MsoPlainText"> Import withdraws: 0 0 --- 0 0<o:p></o:p></p>
<p class="MsoPlainText"> Export updates: 13 0 0 --- 13<o:p></o:p></p>
<p class="MsoPlainText"> Export withdraws: 1 --- --- --- 1<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">direct1 Direct --- up 11:46:40.203<o:p></o:p></p>
<p class="MsoPlainText"> Channel ipv4<o:p></o:p></p>
<p class="MsoPlainText"> State: UP<o:p></o:p></p>
<p class="MsoPlainText"> Table: master4<o:p></o:p></p>
<p class="MsoPlainText"> Preference: 240<o:p></o:p></p>
<p class="MsoPlainText"> Input filter: ACCEPT<o:p></o:p></p>
<p class="MsoPlainText"> Output filter: ACCEPT<o:p></o:p></p>
<p class="MsoPlainText"> Routes: 2 imported, 0 exported<o:p></o:p></p>
<p class="MsoPlainText"> Route change stats: received rejected filtered ignored accepted<o:p></o:p></p>
<p class="MsoPlainText"> Import updates: 3 0 0 0 3<o:p></o:p></p>
<p class="MsoPlainText"> Import withdraws: 1 0 --- 0 1<o:p></o:p></p>
<p class="MsoPlainText"> Export updates: 0 0 0 --- 0<o:p></o:p></p>
<p class="MsoPlainText"> Export withdraws: 0 --- --- --- 0<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">device1 Device --- up 11:46:40.203<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">bgp1 BGP --- up 11:48:56.087 Established<o:p></o:p></p>
<p class="MsoPlainText"> BGP state: Established<o:p></o:p></p>
<p class="MsoPlainText"> Neighbor address: 10.10.101.1<o:p></o:p></p>
<p class="MsoPlainText"> Neighbor AS: 65001<o:p></o:p></p>
<p class="MsoPlainText"> Neighbor ID: 192.0.0.1<o:p></o:p></p>
<p class="MsoPlainText"> Local capabilities<o:p></o:p></p>
<p class="MsoPlainText"> Multiprotocol<o:p></o:p></p>
<p class="MsoPlainText"> AF announced: ipv4-mpls<o:p></o:p></p>
<p class="MsoPlainText"> Route refresh<o:p></o:p></p>
<p class="MsoPlainText"> Graceful restart<o:p></o:p></p>
<p class="MsoPlainText"> 4-octet AS numbers<o:p></o:p></p>
<p class="MsoPlainText"> Enhanced refresh<o:p></o:p></p>
<p class="MsoPlainText"> Neighbor capabilities<o:p></o:p></p>
<p class="MsoPlainText"> Multiprotocol<o:p></o:p></p>
<p class="MsoPlainText"> AF announced: vpn4-mpls ipv4-mpls<o:p></o:p></p>
<p class="MsoPlainText"> Session: external<o:p></o:p></p>
<p class="MsoPlainText"> Source address: 10.10.101.2<o:p></o:p></p>
<p class="MsoPlainText"> Hold timer: 66.292/90<o:p></o:p></p>
<p class="MsoPlainText"> Keepalive timer: 21.935/30<o:p></o:p></p>
<p class="MsoPlainText"> Channel ipv4-mpls<o:p></o:p></p>
<p class="MsoPlainText"> State: UP<o:p></o:p></p>
<p class="MsoPlainText"> Table: master4<o:p></o:p></p>
<p class="MsoPlainText"> Preference: 100<o:p></o:p></p>
<p class="MsoPlainText"> Input filter: ACCEPT<o:p></o:p></p>
<p class="MsoPlainText"> Output filter: ACCEPT<o:p></o:p></p>
<p class="MsoPlainText"> Routes: 10 imported, 2 exported<o:p></o:p></p>
<p class="MsoPlainText"> Route change stats: received rejected filtered ignored accepted<o:p></o:p></p>
<p class="MsoPlainText"> Import updates: 10 0 0 0 10<o:p></o:p></p>
<p class="MsoPlainText"> Import withdraws: 0 0 --- 0 0<o:p></o:p></p>
<p class="MsoPlainText"> Export updates: 12 10 0 --- 2<o:p></o:p></p>
<p class="MsoPlainText"> Export withdraws: 0 --- --- --- 0<o:p></o:p></p>
<p class="MsoPlainText"> BGP Next hop: 10.10.101.2<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">bird><o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">root@ubuntu4-4-VM1:/usr/local/etc# more bird.conf<o:p></o:p></p>
<p class="MsoPlainText">router id 198.51.101.10;<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">ipv4 table master4;<o:p></o:p></p>
<p class="MsoPlainText">ipv6 table master6;<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">protocol kernel {<o:p></o:p></p>
<p class="MsoPlainText"> persist;<o:p></o:p></p>
<p class="MsoPlainText"> scan time 10;<o:p></o:p></p>
<p class="MsoPlainText"> ipv4 {<o:p></o:p></p>
<p class="MsoPlainText"> export all;<o:p></o:p></p>
<p class="MsoPlainText"> import all;<o:p></o:p></p>
<p class="MsoPlainText"> };<o:p></o:p></p>
<p class="MsoPlainText">}<o:p></o:p></p>
<p class="MsoPlainText">protocol direct {<o:p></o:p></p>
<p class="MsoPlainText"> ipv4 {<o:p></o:p></p>
<p class="MsoPlainText"> export all;<o:p></o:p></p>
<p class="MsoPlainText"> import all;<o:p></o:p></p>
<p class="MsoPlainText"> };<o:p></o:p></p>
<p class="MsoPlainText"> interface "-eth*", "*";<o:p></o:p></p>
<p class="MsoPlainText">}<o:p></o:p></p>
<p class="MsoPlainText">protocol device {<o:p></o:p></p>
<p class="MsoPlainText"> scan time 10; # Scan interfaces every 10 seconds<o:p></o:p></p>
<p class="MsoPlainText">}<o:p></o:p></p>
<p class="MsoPlainText">protocol bgp {<o:p></o:p></p>
<p class="MsoPlainText"> local 10.10.101.2 as 65110; # Use a private AS number<o:p></o:p></p>
<p class="MsoPlainText"> neighbor 10.10.101.1 as 65001; # Our neighbor ...<o:p></o:p></p>
<p class="MsoPlainText"> # IPv4 with MPLS labels (1/4)<o:p></o:p></p>
<p class="MsoPlainText"> ipv4 mpls {<o:p></o:p></p>
<p class="MsoPlainText"> # explicit IPv4 table<o:p></o:p></p>
<p class="MsoPlainText"> import all;<o:p></o:p></p>
<p class="MsoPlainText"> export all;<o:p></o:p></p>
<p class="MsoPlainText"> next hop self; # advertise this router as next hop<o:p></o:p></p>
<p class="MsoPlainText"> };<o:p></o:p></p>
<p class="MsoPlainText">}<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">root@ubuntu4-4-VM1:/usr/local/etc#<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Regards, <o:p></o:p></p>
<p class="MsoPlainText">Thiruvazhiyan L<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">-----Original Message-----<br>
From: Ondrej Zajicek [mailto:santiago@crfreenet.org] <br>
Sent: Thursday, June 14, 2018 9:08 AM<br>
To: Thiruvazhiyan Lakshmanan<br>
Cc: bird-users@network.cz<br>
Subject: Re: BIRD - Config Support for RFC 3107 - Carrying Label Information in BGP</p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">On Wed, Jun 13, 2018 at 09:33:56PM +0000, Thiruvazhiyan Lakshmanan wrote:<o:p></o:p></p>
<p class="MsoPlainText">> Hi Ondrej,<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> Thanks for your reply. I have upgraded the kernel on my VM and now I am getting the 3107 routes in the mtab4 table in the bird. But the routes are not programed to mpls Kernel table. Maybe I am missing some configuration in the bird.conf.
can you please help.<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> Below is the bird.conf that I am using,<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Hi<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">You have two pairs of routing tables (master4/6 and mtab4/6), BGP is<o:p></o:p></p>
<p class="MsoPlainText">connected to both (regular to master4/6 and 3107 to mtab4/6). But only<o:p></o:p></p>
<p class="MsoPlainText">the master4/6 is connected by kernel protocol to the real kernel routing<o:p></o:p></p>
<p class="MsoPlainText">table.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">You probably do not need regular BGP, only RFC 3107 (there are no routes<o:p></o:p></p>
<p class="MsoPlainText">in master4/6 other than from Direct protocol). So you should:<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Remove additional routing tables:<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"> ipv4 table mtab4;<o:p></o:p></p>
<p class="MsoPlainText"> ipv6 table mtab6;<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Remove 'ipv4' block in BGP, keep only 'ipv4 mpls' block (RFC 3107 routes)<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Remove 'table mtab4' from 'ipv4 mpls' block.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">-- <o:p></o:p></p>
<p class="MsoPlainText">Elen sila lumenn' omentielvo<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Ondrej 'Santiago' Zajicek (email: santiago@crfreenet.org)<o:p></o:p></p>
<p class="MsoPlainText">OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)<o:p></o:p></p>
<p class="MsoPlainText">"To err is human -- to blame it on a computer is even more so."<o:p></o:p></p>
</div>
<p class="MsoNormal"><span style="color:#1F4E79">============================================================================================================================<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F4E79">Disclaimer: This message
and the information contained herein is proprietary and confidential and
subject to the Tech Mahindra policy statement, you may review the policy at <a href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahindra.com/Disclaimer.html</a>
externally <a href="http://tim.techmahindra.com/tim/disclaimer.html">http://tim.techmahindra.com/tim/disclaimer.html</a>
internally within TechMahindra.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F4E79">============================================================================================================================<o:p></o:p></span></p></body>
</html>