hi,<br><br>I had tried the emulation of a simple network using XORP router. Brief overview is <br>as follows:<br><br>Initially, started working with OpenVZ only. Created containers with ostemplate fedoracore-<br>4-i386-minimal and configured them appropriately i.e. assigned hostname,<br>
ipaddress, enabled services such as ssh, web service, etc. It was able to ping any of the<br>configured system in container from anywhere. Then copied the binary of xorp in two<br>container VH101 and VH102. ( You can also compile xorp in a container but it will require gcc to be installed in container.) Configured static route in xorp in VH101 such that it<br>
should take packets from hardware and forward it to VH101. Similarly configured static<br>route in xorp in VH102 such that it should forward the received packets to hardware<br>node. In this simple setup, OpenVZ was creating an interface venet0 and all the<br>
containers were connected with this interface.<br><br>Problems faced :<br>· After configuration of xorp, it was not able to commit the configuration.<br>· There was only one interface of communication among containers and hardware<br>
node.<br>· There was no MAC address of the venet0 interface.<br><br>To solve this problem, used the concept of bridge along with OpenVZ.<br>Created a bridge and assigned the eth0 of the hardware node to the bridge. Assigned ip<br>
address to this interface. Created the container with an eth0 interface and added it to the<br>bridge and also done the necessary configuration of the container. Installed xorp in it.<br>Configured static route and commited. It is now working fine.<br>
<br>Software Requirements:<br><br>Hardware Node Configuration: Red Hat Enterprise Linux 4 with ovzkernel<br>version 2.6.9-023stab048.4 i686 i686 i386 GNU/Linux<br>OpenVZ Software <br>OS Template Used for Containers : fedora-core-4-i386-minimal OS template<br>
Bridge Utility Package: bridge-utils-1.0.4-4.i386.rpm<br><br><br>Regards<br>Uttam<br><br>>Does anyone have recommendations for emulating a small, simple network of<br>
>XORP routers on a single Linux platform? I want to test my XORP code.<br><br><div class="gmail_quote">On Wed, Jul 1, 2009 at 12:30 AM, <span dir="ltr"><<a href="mailto:xorp-users-request@xorp.org">xorp-users-request@xorp.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Send Xorp-users mailing list submissions to<br>
<a href="mailto:xorp-users@xorp.org">xorp-users@xorp.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users" target="_blank">http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:xorp-users-request@xorp.org">xorp-users-request@xorp.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:xorp-users-owner@xorp.org">xorp-users-owner@xorp.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Xorp-users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Emulating simple network for testing XORP code (Rae Harbird)<br>
2. Re: Emulating simple network for testing XORP code (Bruce Simpson)<br>
3. Re: Basic questions for static routing (Bruce Simpson)<br>
4. Re: Emulating simple network for testing XORP code (Rae Harbird)<br>
5. Re: Emulating simple network for testing XORP code (Bruce Simpson)<br>
6. Re: Emulating simple network for testing XORP code (Ben Greear)<br>
7. Re: Emulating simple network for testing XORP code (Yue Li)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Tue, 30 Jun 2009 11:29:19 +0100<br>
From: Rae Harbird <<a href="mailto:rae.harbird@gmail.com">rae.harbird@gmail.com</a>><br>
Subject: [Xorp-users] Emulating simple network for testing XORP code<br>
To: <a href="mailto:xorp-users@xorp.org">xorp-users@xorp.org</a><br>
Message-ID:<br>
<<a href="mailto:b228526b0906300329l47e2555h8af07ce139ba6b1c@mail.gmail.com">b228526b0906300329l47e2555h8af07ce139ba6b1c@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Hi<br>
<br>
<br>
Does anyone have recommendations for emulating a small, simple network of<br>
XORP routers on a single Linux platform? I want to test my XORP code.<br>
<br>
<br>
Cheers,<br>
<br>
<br>
<br>
<br>
Rae<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-users/attachments/20090630/c317111a/attachment-0001.html" target="_blank">http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-users/attachments/20090630/c317111a/attachment-0001.html</a><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Tue, 30 Jun 2009 12:02:03 +0100<br>
From: Bruce Simpson <<a href="mailto:bms@incunabulum.net">bms@incunabulum.net</a>><br>
Subject: Re: [Xorp-users] Emulating simple network for testing XORP<br>
code<br>
To: <a href="mailto:r.harbird@cs.ucl.ac.uk">r.harbird@cs.ucl.ac.uk</a><br>
Cc: <a href="mailto:xorp-users@xorp.org">xorp-users@xorp.org</a><br>
Message-ID: <<a href="mailto:4A49F0AB.6010001@incunabulum.net">4A49F0AB.6010001@incunabulum.net</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Rae Harbird wrote:<br>
><br>
> Hi<br>
><br>
><br>
> Does anyone have recommendations for emulating a small, simple network<br>
> of XORP routers on a single Linux platform? I want to test my XORP code.<br>
<br>
There is something out there that might wrap XORP in some kind of<br>
virtualization environment, although I can't remember what the name of<br>
this thing is -- it was mentioned on this list in the last 12 months, a<br>
trawl through the list archives may help. Sorry, it's just a vague<br>
memory at the moment.<br>
<br>
thanks,<br>
BMS<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Tue, 30 Jun 2009 12:11:13 +0100<br>
From: Bruce Simpson <<a href="mailto:bms@incunabulum.net">bms@incunabulum.net</a>><br>
Subject: Re: [Xorp-users] Basic questions for static routing<br>
To: Robert Appleton <<a href="mailto:appletrp@gmail.com">appletrp@gmail.com</a>><br>
Cc: <a href="mailto:xorp-users@xorp.org">xorp-users@xorp.org</a><br>
Message-ID: <<a href="mailto:4A49F2D1.7010801@incunabulum.net">4A49F2D1.7010801@incunabulum.net</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Hello,<br>
<br>
Robert Appleton wrote:<br>
> Hi All,<br>
><br>
> I just got xorp running today, but now am trying to figure out how to<br>
> configure a simple static route between 2 computers (3 including the<br>
> one xorp is on) on different subnets. I have them set on different<br>
> subnets through a switch (for testing purposes at the moment. I just<br>
> want them to be able to ping each other. How do I need to configure<br>
> the computer with xorp on it? (I'm running fedora). Do I need to alter<br>
> anything in my boot file pasted below? Thanks for the help. Let me<br>
> know if more information is needed.<br>
><br>
<br>
You might want to fold the vif {} and static {} blocks together as<br>
they should actually get parsed as same block, however this may just be<br>
stylistic. Not knowing your network topology, I couldn't say further,<br>
apart from the above issue your config looks fine.<br>
<br>
Do remember that in order for ICMP echo packets to be transmitted<br>
and received, all of the machines involved must have valid routes<br>
pointing to each other's network prefix, or otherwise be reachable i.e.<br>
in both directions.<br>
<br>
You need at least one way of reaching the XORP box i.e. a management<br>
interface, normally this must be configured at boot in your distribution<br>
using its normal procedures.<br>
Different subnets on same physical switch is fine for testing, but<br>
it's usually discouraged for operational reasons. You will of course<br>
need to have the appropriate configuration in place on the other<br>
machines for this.<br>
<br>
I'm not familiar with Fedora, so can't advise on how you might do<br>
that, hopefully others can help.<br>
<br>
hope this helps<br>
BMS<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Tue, 30 Jun 2009 12:33:03 +0100<br>
From: Rae Harbird <<a href="mailto:r.harbird@cs.ucl.ac.uk">r.harbird@cs.ucl.ac.uk</a>><br>
Subject: Re: [Xorp-users] Emulating simple network for testing XORP<br>
code<br>
To: Bruce Simpson <<a href="mailto:bms@incunabulum.net">bms@incunabulum.net</a>><br>
Cc: <a href="mailto:xorp-users@xorp.org">xorp-users@xorp.org</a>, Marko Zec <<a href="mailto:zec@freebsd.org">zec@freebsd.org</a>>, <a href="mailto:zec@fer.hr">zec@fer.hr</a><br>
Message-ID:<br>
<<a href="mailto:b228526b0906300433o490f53ecme43be12d9b7bd17d@mail.gmail.com">b228526b0906300433o490f53ecme43be12d9b7bd17d@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Hi<br>
<br>
This was probably IMUNES. Since I last touched IMUNES, I believe it is being<br>
ported rewritten for the FreeBSD Network Stack Virtualization Project:<br>
<br>
<a href="http://wiki.FreeBSD.org/Image" target="_blank">http://wiki.FreeBSD.org/Image</a> <<a href="http://wiki.freebsd.org/Image" target="_blank">http://wiki.freebsd.org/Image</a>><br>
<br>
>From the wiki: "The network stack virtualization project aims at extending<br>
the FreeBSD kernel to maintain multiple independent instances of networking<br>
state"<br>
<br>
I don't think it's ready for use in this incarnation yet and I'm not sure<br>
that the previous instantiation (imunes) is supported.<br>
<br>
I have cc'd Marco Zec, the principle developer, as this information may not<br>
be up-to-date.<br>
<br>
Any other options?<br>
<br>
<br>
<br>
Rae<br>
===<br>
<br>
2009/6/30 Bruce Simpson <<a href="mailto:bms@incunabulum.net">bms@incunabulum.net</a>><br>
<br>
> Rae Harbird wrote:<br>
><br>
>><br>
>> Hi<br>
>><br>
>><br>
>> Does anyone have recommendations for emulating a small, simple network of<br>
>> XORP routers on a single Linux platform? I want to test my XORP code.<br>
>><br>
><br>
> There is something out there that might wrap XORP in some kind of<br>
> virtualization environment, although I can't remember what the name of this<br>
> thing is -- it was mentioned on this list in the last 12 months, a trawl<br>
> through the list archives may help. Sorry, it's just a vague memory at the<br>
> moment.<br>
><br>
> thanks,<br>
> BMS<br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-users/attachments/20090630/4e256ca0/attachment-0001.html" target="_blank">http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-users/attachments/20090630/4e256ca0/attachment-0001.html</a><br>
<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Tue, 30 Jun 2009 12:52:20 +0100<br>
From: Bruce Simpson <<a href="mailto:bms@incunabulum.net">bms@incunabulum.net</a>><br>
Subject: Re: [Xorp-users] Emulating simple network for testing XORP<br>
code<br>
To: Rae Harbird <<a href="mailto:r.harbird@cs.ucl.ac.uk">r.harbird@cs.ucl.ac.uk</a>><br>
Cc: xorp users <<a href="mailto:xorp-users@xorp.org">xorp-users@xorp.org</a>><br>
Message-ID: <<a href="mailto:4A49FC74.8000507@incunabulum.net">4A49FC74.8000507@incunabulum.net</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Rae Harbird wrote:<br>
> Hi<br>
><br>
> This was probably IMUNES. Since I last touched IMUNES, I believe it is<br>
> being ported rewritten for the FreeBSD Network Stack Virtualization<br>
> Project:<br>
<br>
I was actually thinking of a Linux based solution with a somewhat<br>
obscure name :-) It had a XORP config generator, I think parts of it<br>
were written in Python or possibly Ruby.<br>
<br>
I believe IMUNES should supported by the upcoming FreeBSD 8.0 release,<br>
of course Marko would know more.<br>
<br>
Not sure if XORP integration is on the radar there, if at all. Major<br>
code surgery is likely anyway, so if it did, it would probably be locked<br>
to an earlier release.<br>
<br>
cheers,<br>
BMS<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 6<br>
Date: Tue, 30 Jun 2009 08:46:58 -0700<br>
From: Ben Greear <<a href="mailto:greearb@candelatech.com">greearb@candelatech.com</a>><br>
Subject: Re: [Xorp-users] Emulating simple network for testing XORP<br>
code<br>
To: <a href="mailto:r.harbird@cs.ucl.ac.uk">r.harbird@cs.ucl.ac.uk</a><br>
Cc: <a href="mailto:xorp-users@xorp.org">xorp-users@xorp.org</a><br>
Message-ID: <<a href="mailto:4A4A3372.1050404@candelatech.com">4A4A3372.1050404@candelatech.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Rae Harbird wrote:<br>
><br>
> Hi<br>
><br>
><br>
> Does anyone have recommendations for emulating a small, simple network<br>
> of XORP routers on a single Linux platform? I want to test my XORP code.<br>
><br>
Our LANforge product uses a slightly modified xorp (and modified linux<br>
kernel) to achieve this. Our main controller<br>
code isn't open-source though, and to add support for new Xorp features<br>
requires code changes to our product<br>
(we do work for hire and general improvement of our products, and may be<br>
willing to do work for free,<br>
depending on the nature of the work).<br>
<br>
Our kernel patches (minus the impairment generator) are open-source and<br>
freely available, as is my git tree of<br>
xorp plus my changes.<br>
<br>
I can tell you though: It is not trivial to write a virtual router<br>
framework. It took us several months and we already<br>
had part of the work done, and the general framework in place. I'm<br>
still debugging xorp too, it just barely deals with<br>
dynamic network re-configuration, for example, but it's pretty solid<br>
with a static network emulation (ie, no links between<br>
routers coming and going.)<br>
<br>
We auto-generate perl scripts that do the linux stack configuration, and<br>
we auto-generate the xorp config files.<br>
If these things don't scare you, I'll be happy to a post simple example.<br>
<br>
Thanks,<br>
Ben<br>
<br>
--<br>
Ben Greear <<a href="mailto:greearb@candelatech.com">greearb@candelatech.com</a>><br>
Candela Technologies Inc <a href="http://www.candelatech.com" target="_blank">http://www.candelatech.com</a><br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 7<br>
Date: Tue, 30 Jun 2009 12:13:23 -0400<br>
From: Yue Li <<a href="mailto:yueli.m@gmail.com">yueli.m@gmail.com</a>><br>
Subject: Re: [Xorp-users] Emulating simple network for testing XORP<br>
code<br>
To: Rae Harbird <<a href="mailto:r.harbird@cs.ucl.ac.uk">r.harbird@cs.ucl.ac.uk</a>><br>
Cc: <a href="mailto:xorp-users@xorp.org">xorp-users@xorp.org</a>, Marko Zec <<a href="mailto:zec@freebsd.org">zec@freebsd.org</a>>, <a href="mailto:zec@fer.hr">zec@fer.hr</a><br>
Message-ID:<br>
<<a href="mailto:49567c360906300913w16cc311dkdcbb001d67e1136b@mail.gmail.com">49567c360906300913w16cc311dkdcbb001d67e1136b@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
We have done this using OpenVZ and a network emulator PRIME on Linux.<br>
Please check out the link below.<br>
<br>
<a href="http://www.primessf.net/pub/Public/WebHome/paper-xorpbgp.pdf" target="_blank">http://www.primessf.net/pub/Public/WebHome/paper-xorpbgp.pdf</a><br>
<br>
<br>
<br>
On Tue, Jun 30, 2009 at 7:33 AM, Rae Harbird <<a href="mailto:r.harbird@cs.ucl.ac.uk">r.harbird@cs.ucl.ac.uk</a>> wrote:<br>
<br>
> Hi<br>
><br>
> This was probably IMUNES. Since I last touched IMUNES, I believe it is<br>
> being ported rewritten for the FreeBSD Network Stack Virtualization Project:<br>
><br>
> <a href="http://wiki.FreeBSD.org/Image" target="_blank">http://wiki.FreeBSD.org/Image</a> <<a href="http://wiki.freebsd.org/Image" target="_blank">http://wiki.freebsd.org/Image</a>><br>
><br>
> From the wiki: "The network stack virtualization project aims at extending<br>
> the FreeBSD kernel to maintain multiple independent instances of networking<br>
> state"<br>
><br>
> I don't think it's ready for use in this incarnation yet and I'm not sure<br>
> that the previous instantiation (imunes) is supported.<br>
><br>
> I have cc'd Marco Zec, the principle developer, as this information may not<br>
> be up-to-date.<br>
><br>
> Any other options?<br>
><br>
><br>
><br>
> Rae<br>
> ===<br>
><br>
> 2009/6/30 Bruce Simpson <<a href="mailto:bms@incunabulum.net">bms@incunabulum.net</a>><br>
><br>
>> Rae Harbird wrote:<br>
>><br>
>>><br>
>>> Hi<br>
>>><br>
>>><br>
>>> Does anyone have recommendations for emulating a small, simple network of<br>
>>> XORP routers on a single Linux platform? I want to test my XORP code.<br>
>>><br>
>><br>
>> There is something out there that might wrap XORP in some kind of<br>
>> virtualization environment, although I can't remember what the name of this<br>
>> thing is -- it was mentioned on this list in the last 12 months, a trawl<br>
>> through the list archives may help. Sorry, it's just a vague memory at the<br>
>> moment.<br>
>><br>
>> thanks,<br>
>> BMS<br>
>><br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> Xorp-users mailing list<br>
> <a href="mailto:Xorp-users@xorp.org">Xorp-users@xorp.org</a><br>
> <a href="http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users" target="_blank">http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users</a><br>
><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-users/attachments/20090630/e234bf75/attachment-0001.html" target="_blank">http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-users/attachments/20090630/e234bf75/attachment-0001.html</a><br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Xorp-users mailing list<br>
<a href="mailto:Xorp-users@xorp.org">Xorp-users@xorp.org</a><br>
<a href="http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users" target="_blank">http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users</a><br>
<br>
<br>
End of Xorp-users Digest, Vol 39, Issue 19<br>
******************************************<br>
</blockquote></div><br>