Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to simulate the following network with 2 laptops connected over internet. How can I do it? How can I set up the intefaces? [I'm using KVM if it matters]. Any help appreciated.

enter image description here

share|improve this question
What is the purpose of the simulation? Do you want to see e.g. how the communication between two NATted networks proceeds, are you interested in routing problems, or what else? – bitwelder Feb 28 '11 at 21:04
I want to collect some performance measurements of tunneling (OpenVPN and IPsec) with different encryption algorithms. I want to make it as realistic as possible. – bonzi Feb 28 '11 at 21:30
Do you have a router, or are you trying to do this without one? – belacqua Mar 1 '11 at 6:40
I just realized you attached a png image of an ascii art diagram. Are you trying to break the internet? – belacqua Mar 1 '11 at 6:50
I'm trying to do it without a router. Btw I actually wanted to make an ASCII art but it was not displayed properly so I took a screenshot of it :D. I did mention this in my original post but it was edited :). – bonzi Mar 1 '11 at 7:51

If you're not using a router, just connect one laptop's NIC to the other's NIC, you'll need to use a crossover Cat 5 cable. BTW, that's not "The Internet", it's just wires with Ethernet on them.

share|improve this answer
You can also create an ad-hoc wireless netowork, as the two mentioned devices are laptops. Create the network on one laptop and have the other laptop connect to it. – rigved Sep 26 '11 at 10:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.