From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 12 Oct 2016 19:46:46 +0200 From: Linus =?utf-8?Q?L=C3=BCssing?= Message-ID: <20161012174646.GD10902@otheros> References: <20161011103629.GA8598@otheros> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Subject: Re: [B.A.T.M.A.N.] Help in setting up mesh test bed using qemu - BATMAN adv List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: The list for a Better Approach To Mobile Ad-hoc Networking First result in my favorite search engine for "linux network namespace": http://blog.scottlowe.org/2013/09/04/introducing-linux-network-namespaces/ Extensively describes how to set up and use network namespaces with veth. Have fun :-). Regards, Linus On Wed, Oct 12, 2016 at 10:42:30PM +0530, Kaushik N P wrote: > Hello, > > @Linus, I am a bit new to this and haven't much exposure to compiling > kernels and all. I will try out and see what I can do with it, but a > little more explanation would help a lot. > > "Then you connect the namespace via veth-pairs." Didn't get the > namespace and making veth-pairs part. > > Anyways, I'll be certain to see what I can do with the code itself. > > Thanks and regards, > Kaushik > > Thanks and Regards, > > Kaushik NP > LI | Tw | FB > SAP Ambassador, > General Secretary, Computer Society > Team IEEE UVCE, > 3rd Year Undergraduate Student, > University Visvesvaraya College of Engineering, > Bangalore, IN > > > On Wed, Oct 12, 2016 at 10:19 PM, Kaushik N P wrote: > > Hello, > > > > @Linus, I am a bit new to this and haven't much exposure to compiling > > kernels and all. I will try out and see what I can do with it, but a little > > more explanation would help a lot. > > > > "Then you connect the namespace via veth-pairs." Didn't get the namespace > > and making veth-pairs part. > > > > Anyways, I'll be certain to see what I can do with the code itself. > > > > Thanks and regards, > > Kaushik > > > > > > On Oct 11, 2016 4:06 PM, "Linus Lüssing" wrote: > > > > Haven't tried that myself yet, but maybe the new network namespace > > support in the git master branch might be an easy alternative to > > start with? > > > > You could first try to compile and load the batman-adv > > kernel module. Then you'd create a namespace for each virtual node > > you want to have. Then you connect the namespace via veth-pairs. > > And finally, within each network namespace you would hook some veth > > ends into a batX interface. > > > > > > First you could try wiring two, then three nodes manually. If > > that works and looks good you could then write a script to setup > > the testbed with an arbitrary amount of virtual nodes. > > > > Regards, Linus > > > >