Re: [mpls-linux-general] problem with iptables. Error invalid argument type.
Status: Beta
Brought to you by:
jleu
From: James R. L. <jl...@mi...> - 2008-08-14 13:44:52
|
Your fighting a losing battle by trying to use old versions of mpls-linux. The easiest path is to use Fedora 8 with mpls-linux 1.961. If you choose to use something other then the RPMs I release then you are pretty much on your own. I barely have enough time to keep the RPMs up to date for fedora 8, I definitely do not have time to support every combination of linux distribution and mpls-linux version. I'm sorry. On Thu, Aug 14, 2008 at 11:36:52AM +0200, =?ISO-8859-1?Q?Jes=FAs_Nubiola_ wrote: > Yes. I just have done it. > > Thanks ;) > > On Thu, Aug 14, 2008 at 8:19 AM, Adrian Popa <adr...@gm...>wrote: > > > As far as I can see, the files for mpls-linux 1.950 and 1.955 are no longer > > available on sourceforge. Please ask James to send you the rpm for iptables > > 1.955 and convert it to deb. > > > > > > On Wed, Aug 13, 2008 at 1:54 PM, Jesús Nubiola <oc...@gm...> wrote: > > > >> Hi Adrian, first of all thank you for your response! > >> > >> I was able to do what you say ( convert with alien and install in my > >> debian system in guest machine) the problem is that the version that you say > >> in the document is for MPLS 1950 and for 2.6.15.1 kernel machine, but I > >> wasn't able to virtualize in VNUML that type of Kernel. I only was able to > >> virtualise and make run 2.6.18.1 and I think that the patched version of > >> MPLS Linux was 1955. I do'nt have problems with the previous scenarios but > >> concretely iptables packet launch an error when I use (invalid argument). I > >> know (because of google) that it launch that error when: " This happens > >> when the structure size between kernel and userspace changes. You will need > >> to recompile the iptables userspace program using the include files of your > >> new kernel. This only happens if you (or the vendor of your kernel) has > >> applied some patches either only to the old or only to the new kernel". > >> > >> I don't know how to do this because I'm working with virtual machines in > >> UML; I have a recompiled UML kernel (2.6.18.1) and a Filesystem (debian > >> lenny) and all that I do is install the packets that you provide in your > >> document doint a 'chroot' and installing in filesystem. I think that if I be > >> able to download the version of iptables.rpm that run with kernel > >> 2.6.18.1 (in time that that kernel was the current kernel) I could > >> solution this. > >> > >> Thank you both for your time ;) > >> > >> > >> On Wed, Aug 13, 2008 at 7:30 AM, Adrian Popa <adr...@gm...>wrote: > >> > >>> Hello Jesus, > >>> > >>> I wasn't able to compile iptables for my kernel a few years ago (I got > >>> all sorts of gcc errors), so the only solution for me was to convert the > >>> patched iptables rpm to deb (with alien). You should be able to find this > >>> rpm on sourceforge, and you should install it by force in your debian > >>> system. > >>> > >>> Regards, > >>> Adrian > >>> > >>> > >>> On Wed, Aug 13, 2008 at 12:52 AM, Jesús Nubiola <oc...@gm...>wrote: > >>> > >>>> I am aware that netkit have MPLS support but I have to make with VNUML > >>>> because I have made before another works with that platform and now that > >>>> after a lot of work I can have an MPLS kernel running on it I want to make > >>>> it work. I think that the only thing that it remains is download a version > >>>> of iptables (patched with mpls support) that runs with 2.6.18.1 or > >>>> trying to compile it with KERNEL_VERSION option, but by now I cannot achieve > >>>> it :( > >>>> > >>>> By the way, I cannot get access to your perforce server with visual > >>>> clinet, it launches an error saying that the server is too old: > >>>> > >>>> only 2004.2 or later servers supported by Perforce Visual CLient. > >>>> > >>>> I remember that moths ago I can get access to it. Anyone have the same > >>>> problem? > >>>> > >>>> Thanks for all James and sorry for my english > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> On Tue, Aug 12, 2008 at 11:09 PM, James R. Leu <jl...@mi...>wrote: > >>>> > >>>>> You might want to try netkit: > >>>>> > >>>>> http://www.netkit.org/ > >>>>> > >>>>> On Tue, Aug 12, 2008 at 10:41:16PM +0200, > >>>>> =?ISO-8859-1?Q?Jes=FAs_Nubiola_ wrote: > >>>>> > Hi all, > >>>>> > > >>>>> > > >>>>> > I'm trying to make the scenario (QoS scenario) described in > >>>>> MPLS-Linux Labs > >>>>> > by Adrian Popa with VNUML ( > >>>>> > http://www.dit.upm.es/vnumlwiki/index.php/Main_Page). I have a lot > >>>>> of > >>>>> > problems to achieve a kernel that I can compile (a lot of problems > >>>>> with uml > >>>>> > architecture). After aplying a lot of patches I finally be able to > >>>>> have a > >>>>> > testbed with mpls support and a filesystem with debian. The only > >>>>> kernel that > >>>>> > I can achieve to compile with uml and without errors is 2.6.18.1(with mpls > >>>>> > patched too) but the problem is that if I install iptables like it > >>>>> syas in > >>>>> > > >>>>> http://www.elcom.pub.ro/~adrian.popa/mpls-linux/mpls-linux-docs/1-3-installation.html<http://www.elcom.pub.ro/%7Eadrian.popa/mpls-linux/mpls-linux-docs/1-3-installation.html> > >>>>> , > >>>>> > then when I launch iptables for example in: > >>>>> > > >>>>> > var1=`mpls nhlfe add key 0 instructions ds2exp 0xf 0x1e 0x3 0x0 0x0 > >>>>> exp2tc > >>>>> > 0x3 0x1 0x0 0x3 push gen 2000 nexthop eth3 ipv4 10.0.5.3 | grep key > >>>>> |cut -c > >>>>> > 17-26` > >>>>> > > >>>>> > #create a FEC: packets with DSCP=0x1E and DSCP=0x00 go to nhlfe $var1 > >>>>> > iptables -A FORWARD -m dscp --dscp 0x1e -j mpls --nhlfe $var1 > >>>>> > > >>>>> > it launches an error saying iptables: invalid argument type. I've > >>>>> been > >>>>> > seeking in Google and I see that probably is because the rpm file > >>>>> that I've > >>>>> > downloaded is for kernel 2.6.15.1 (like Adrian do in his manual) but > >>>>> > actually I can't compile any kernel previosu than 2.6.18.1 (vnuml > >>>>> problems) > >>>>> > and I dont know how to compile iptables for that version of Kernel. I > >>>>> try a > >>>>> > lot of options, trying to install iptables in the filesystem with > >>>>> 'chroot', > >>>>> > try to install when in the guest machine (run the virtual machines > >>>>> and > >>>>> > trying to install iptables.deb in every machine)... but all have the > >>>>> same > >>>>> > result. I try to know how to compile with that kernel support ( > >>>>> 2.6.18.1) or > >>>>> > if there is a version of MPLS for that kernel with a .rpm or .deb > >>>>> packet of > >>>>> > iptables. > >>>>> > > >>>>> > The previous scenarios that don't use iptables run good in my mpls > >>>>> testbed > >>>>> > and changing my virtualitzacion system is not an option becaus I have > >>>>> to do > >>>>> > it with VNUML. > >>>>> > > >>>>> > Thank you in advance for all advices, > >>>>> > > >>>>> > regards > >>>>> > >>>>> > > >>>>> ------------------------------------------------------------------------- > >>>>> > This SF.Net email is sponsored by the Moblin Your Move Developer's > >>>>> challenge > >>>>> > Build the coolest Linux based applications with Moblin SDK & win > >>>>> great prizes > >>>>> > Grand prize is a trip for two to an Open Source event anywhere in the > >>>>> world > >>>>> > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > >>>>> > _______________________________________________ > >>>>> > mpls-linux-general mailing list > >>>>> > mpl...@li... > >>>>> > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general > >>>>> > >>>>> > >>>>> -- > >>>>> James R. Leu > >>>>> jl...@mi... > >>>>> > >>>> > >>>> > >>>> > >>>> ------------------------------------------------------------------------- > >>>> This SF.Net email is sponsored by the Moblin Your Move Developer's > >>>> challenge > >>>> Build the coolest Linux based applications with Moblin SDK & win great > >>>> prizes > >>>> Grand prize is a trip for two to an Open Source event anywhere in the > >>>> world > >>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ > >>>> _______________________________________________ > >>>> mpls-linux-general mailing list > >>>> mpl...@li... > >>>> https://lists.sourceforge.net/lists/listinfo/mpls-linux-general > >>>> > >>>> > >>> > >> > > -- James R. Leu jl...@mi... |