BIRD - Config Support for RFC 3107 - Carrying Label Information in BGP

Thiruvazhiyan Lakshmanan TL0041926 at TechMahindra.com
Wed Jun 13 23:33:56 CEST 2018


Hi Ondrej,

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.

Below is the bird.conf that I am using,



router id 198.51.101.10;



ipv4 table master4;

ipv6 table master6;



ipv4 table mtab4;

ipv6 table mtab6;



protocol kernel {

        persist;

        scan time 10;

        ipv4 {

                export all;

                import all;

        };

}

protocol direct {

        ipv4 {

                export all;

                import all;

        };

        interface "-eth*", "*";

}

protocol device {

        scan time 10;           # Scan interfaces every 10 seconds

}

protocol bgp {

        local 10.10.101.2 as 65110;        # Use a private AS number

        neighbor 10.10.101.1 as 65001;    # Our neighbor ...

        ipv4 {

                table master4;

                export all;

                import all;

                next hop self; # advertise this router as next hop

        };

        # IPv4 with MPLS labels (1/4)

        ipv4 mpls {

                # explicit IPv4 table

                table mtab4;

                import all;

                export all;

        };

}



Below is the routes in the bird,



bird> show route

Table master4:

10.10.101.0/24       unicast [direct1 14:01:19.209] * (240)

        dev bond0.11

135.21.13.160/28     unicast [direct1 14:01:19.209] * (240)

        dev ens3

bird> show route table mtab4         ============> BGP 3107 - MPLS label routes on the bird

Table mtab4:

1.0.1.0/24           unicast [bgp1 17:17:10.458] * (100) [AS65001i]

        via 10.10.101.1 on bond0.11 mpls 1031

1.0.0.0/24           unicast [bgp1 17:17:10.458] * (100) [AS65001i]

        via 10.10.101.1 on bond0.11 mpls 1030

1.0.3.0/24           unicast [bgp1 17:17:10.458] * (100) [AS65001i]

        via 10.10.101.1 on bond0.11 mpls 1033

1.0.2.0/24           unicast [bgp1 17:17:10.458] * (100) [AS65001i]

        via 10.10.101.1 on bond0.11 mpls 1032

1.0.5.0/24           unicast [bgp1 17:17:10.458] * (100) [AS65001i]

        via 10.10.101.1 on bond0.11 mpls 1035

1.0.4.0/24           unicast [bgp1 17:17:10.458] * (100) [AS65001i]

        via 10.10.101.1 on bond0.11 mpls 1034

1.0.7.0/24           unicast [bgp1 17:17:10.458] * (100) [AS65001i]

        via 10.10.101.1 on bond0.11 mpls 1037

1.0.6.0/24           unicast [bgp1 17:17:10.458] * (100) [AS65001i]

        via 10.10.101.1 on bond0.11 mpls 1036

1.0.9.0/24           unicast [bgp1 17:17:10.458] * (100) [AS65001i]

        via 10.10.101.1 on bond0.11 mpls 1039

1.0.8.0/24           unicast [bgp1 17:17:10.458] * (100) [AS65001i]

        via 10.10.101.1 on bond0.11 mpls 1038

bird>



below is the routes in the kernel tables,



root at ubuntu4-4-VM1:/usr/local/etc# ip -f mpls route show   ========> no label routes in this output

300 dev lo

root at ubuntu4-4-VM1:/usr/local/etc# ip -f inet route show

default via 135.21.13.161 dev ens3 onlink

10.10.101.0/24 dev bond0.11  proto kernel  scope link  src 10.10.101.2

10.10.101.0/24 dev bond0.11  proto bird  scope link  metric 32

135.21.13.160/28 dev ens3  proto kernel  scope link  src 135.21.13.165

135.21.13.160/28 dev ens3  proto bird  scope link  metric 32

root at ubuntu4-4-VM1:/usr/local/etc#



below is the VM details,

root at ubuntu4-4-VM1:/usr/local/etc# lsb_release -a

No LSB modules are available.

Distributor ID: Ubuntu

Description:    Ubuntu 16.04.4 LTS

Release:        16.04

Codename:       xenial

root at ubuntu4-4-VM1:/usr/local/etc# uname -r

4.4.0-119-generic

root at ubuntu4-4-VM1:/usr/local/etc#



Regards,

Thiruvazhiyan L



-----Original Message-----
From: Ondrej Zajicek [mailto:santiago at crfreenet.org]
Sent: Friday, June 8, 2018 3:26 PM
To: Thiruvazhiyan Lakshmanan
Cc: bird-users at network.cz
Subject: Re: BIRD - Config Support for RFC 3107 - Carrying Label Information in BGP



On Fri, Jun 08, 2018 at 04:03:41PM +0000, Thiruvazhiyan Lakshmanan wrote:

> Hi Ondrej,

> Thanks for your reply. What is the recommended linux kernel verison for mpls if BIRD acts as a PE.

>

> We have VM with Red Hat Enterprise Linux Server 7.3 (Maipo)

> Kernel 3.10.0-693.2.2.el7.x86_64 on an x86_64

>

> And Bird 2.0.1 version, but it is not working. Can you please confirm whether the environment we have is supporting mpls. If not, what is the recommended kernel version.



Hi



I think that 2.0.1 is OK, i don't there is any related bugfix in 2.0.2.



But your kernel is probably too old, MPLS forwarding is rather recent feature.



You should check that you can doo MPLS routes with basic iproute2 commands

(so you have recent kernel and iproute2 tools):



https://stackoverflow.com/questions/31926342/iproute2-commands-for-mpls-configuration



--

Elen sila lumenn' omentielvo



Ondrej 'Santiago' Zajicek (email: santiago at crfreenet.org)

OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)

"To err is human -- to blame it on a computer is even more so."
============================================================================================================================

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 http://www.techmahindra.com/Disclaimer.html <http://www.techmahindra.com/Disclaimer.html> externally http://tim.techmahindra.com/tim/disclaimer.html <http://tim.techmahindra.com/tim/disclaimer.html> internally within TechMahindra.

============================================================================================================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20180613/f6d52b63/attachment.html>


More information about the Bird-users mailing list