LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-27-2009, 06:53 PM   #1
scovetta
LQ Newbie
 
Registered: Aug 2009
Posts: 1

Rep: Reputation: 0
WAN Emulator - Single NIC


I have a handful of Linux/Windows VMs that I'd like to use to simulate a WAN (with bandwidth caps and latency introduced artificially).

To keep things simple, let's say I have three boxes:
VM A: SuSE, "web client" (192.168.1.100)
VM B: SuSE, "web server" (192.168.1.101)
VM C: SuSE, "router" (192.168.1.102)

I want to route all traffic that goes between A and B through C, and then set up the latency/bandwidth using 'tc' running on C. I would therefore set:

VM A: (192.168.1.100)
ip route add 192.168.1.101/32 via 192.168.1.102 dev eth0 metric -1

VM B: (192.168.1.101)
ip route add 192.168.1.100/32 via 192.168.1.102 dev eth0 metric -1

VM C: (192.168.1.102)
// enable ip forwarding

I'm using a metric of -1 because the default route has a metric of 0.

A traceroute shows the first hop going through VM C as expected. A tcpdump on VM C shows something going through it, but not the data I'm expecting. (I'm accessing a website, but not seeing anything that looks like the expected content.) If I do a continuous ping, I see a few packets at the beginning, and then nothing else.

Is there something I'm missing here, or should it work? I only have one NIC on each VM.

Thanks!!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple NIC acting as single IP kromberg Linux - Networking 6 01-08-2008 02:31 AM
how to conf which nic to use for wan/lan glorsplitz Linux - Networking 4 12-21-2006 07:57 AM
Newbie - 1 lan and 1 wan nic on same box stevesy Linux - Networking 8 07-29-2006 03:18 AM
FreeS/Wan Vs. OpenS/Wan Vs. StrongS/Wan bkankur Linux - Security 1 03-01-2005 09:27 AM
Setup shorewall with Lan & Wan zone on same NIC, is it possible? kechara Linux - Networking 0 06-20-2004 05:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration