[Voyage-linux] MPLS on Voyage Linux
Wayne Lee
(spam-protected)
Tue Feb 4 19:33:31 HKT 2014
Hello
I never installed MPLS on mine, a quick read of the MPLS readme suggests
it's not using the "via" arg
RUNNING:
To be able to run MPLS, you will need modified iproute2 programme
which can be downloaded from:
https://github.com/i-maravic/iproute2
Creation of MPLS tunnel ingress points is done with:
# ip link add tunnel_name type mpls push 300 192.168.2.2
or with
# ip route add 1.2.3.4 mpls push 300 192.168.2.2
To get more comprehensive explanation use:
$ ip link add tunnel_name type mpls help
or
$ ip route help
In order to be able to receive MPLS packets, interface must be MPLS
enabled. This is done with:
# ip link set eth0 mpls on
To be able to receve MPLS packets recursively mpls0 interface must be
brought up!
To build MPLS tunnel cross connect and egress points use:
# ip -M route add 200 mpls swap 300 dev eth0 192.168.3.3
Wayne
On 4 February 2014 11:07, Steve Muni <emunicio at gmail.com> wrote:
> Thank you
>
> I have patched and compiled my mpls voyage linux version and all seems to
> be fine. However I am stucked trying test a mpls tunnel. I have wrote my
> problem in mpls-linux mailing list(
> http://sourceforge.net/mailarchive/forum.php?thread_name=CAMVTf1hyy7WzkKH1YwnPE8vvCpJyN-QHB-qm%3D2f%2BVQvuSFNWWA%40mail.gmail.com&forum_name=mpls-linux-general)
> (but the list seems to be quite quiet).
>
> My problem now is when setting up a mpls tunnel in node I get an weird
> error:
>
> Following some tutorials,(ej.
> http://sourceforge.net/apps/mediawiki/mpls-linux/index.php?title=Examples)nin one node I type:
>
> ### mpls nhlfe add key 0 instructions push gen 1000 nexthop eth1 ipv4
> 10.10.10.23
>
> ### ip route add 10.10.1.0/24 via 10.10.10.23 mpls 0x3
> Error: argument "mpls" is wrong: Can't define mpls when using IP forwarding
>
> However I have disabled the IP fowarding:
>
> ### sysctl net.ipv4.ip_forward
> net.ipv4.ip_forward = 0
>
> Why is happening this? This is a normal behaviour and there is another way
> to stablish the tunnel? Or maybe the iproute package I am using is not the
> right one?
>
> I have checked the iproute.c code and the problem seems in use the "via"
> arg in the command. Should I use another instead?
>
> Did you find a similar problem using your mpls voyage linux ?
>
> My mpls compiled version is: Linux voyage 2.6.32
> And iproute2 package is get from:
>
> https://github.com/i-maravic/iproute2
>
> Any idea or suggestion?
>
> Thank you
>
>
> Kind regards,
> Esteban
>
>
>
>
> 2014-01-30 Wayne Lee <linkconnect at googlemail.com>:
>
>> Welcome !
>>
>> You will need to patch it yourself.
>>
>>
>> On 30 January 2014 10:19, Steve Muni <emunicio at gmail.com> wrote:
>>
>>> Thank you very much!
>>>
>>> I was asking because when compiling the voyage kernel from source, I did
>>> not find in "make menuconfig" any MPLS module to activate. Should I patch
>>> it with the generic mpls-linux patch before begin with the kernel
>>> configuration, or is there any option that I have not seen yet?
>>>
>>> Kind regards
>>>
>>> Esteban
>>>
>>>
>>> 2014-01-30 Wayne Lee <linkconnect at googlemail.com>:
>>>
>>> Hello
>>>>
>>>>
>>>> Yes it is possible to use the base Kernel config and add the other
>>>> parts as required, standard kernel compile processes apply.
>>>>
>>>> I've used Voyage based systems as routers for years and it works very
>>>> well indeed.
>>>>
>>>>
>>>>
>>>>
>>>> On 24 January 2014 14:38, Steve Muni <emunicio at gmail.com> wrote:
>>>>
>>>>> Hi list
>>>>>
>>>>> I would like to know if it is possible use MPLS in Voyage Linux.
>>>>> Is there any project that has already included MPLS in the voyage
>>>>> system?
>>>>>
>>>>> Should be possible compile a new voyage kernel version with the MPLS
>>>>> linux implementation??
>>>>>
>>>>> Anybody has any advice or information to achieve that?
>>>>>
>>>>> Kind regards
>>>>>
>>>>> --
>>>>> Esteban
>>>>>
>>>>> _______________________________________________
>>>>> Voyage-linux mailing list
>>>>> Voyage-linux at list.voyage.hk
>>>>> http://list.voyage.hk/mailman/listinfo/voyage-linux
>>>>>
>>>>>
>>>>
>>>
>>>
>>> --
>>> Esteban
>>>
>>
>>
>
>
> --
> Esteban
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.voyage.hk/pipermail/voyage-linux/attachments/20140204/18736a55/attachment.html>
More information about the Voyage-linux
mailing list