Hey, we started the Linuxdoc.org blog. You want to write a guest post about your favorite Linux related topic? Just send us a mail.The Linux community would appreciate it.

Hi there!

I would like to set up a Linux box with multiple interfaces, on which I can more or less conveniently decide, which interface is used by a network application/daemon.

Target is, to have a client program running, using e.g. eth0 (ip 192.168.1.2) and a corresponding server listening at eth1 (ip 192.168.1.1), where traffic definetly leaves the box at eth0 and finally reaches eth1 via the network.

Ideally would be a solution where I simply launch a console window under X, set a environment variable to an network device name, and from there on all programs launched from that console are using that network interface and its (obviously necessary) uunshared IP stack.

Even better would be if this network interface separataion would take place on physical level, that if there are several VLAN (interfaces) configured for such a device, those share the IP stack.

Bottom line: I would like to have a linux box which kinda simulates separate network nodes, with being able to run all common network apps on those "devices" without changing the program code and with as less software overhead as possible (no virtual machines etc.)

Is there anything out there to set up such a scenario?

Thanx in advance

Harry

asked 06 Jun '12, 04:30

NetRat's gravatar image

NetRat
1111
accept rate: 0%


IP Tables, and alot of routing.

link

answered 26 Aug '12, 04:27

rspinuz's gravatar image

rspinuz
8618
accept rate: 5%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×4
×2
×1
×1
×1

Asked: 06 Jun '12, 04:30

Seen: 2,050 times

Last updated: 26 Aug '12, 04:27

we use OSQA