[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Dual Interface Routing Question


I have two interfaces, eth0 and eth1

Both are configured in dhcp mode and both connect to the internet.

I also have enabled a tap0 interface which I use to allow my Virtual Machines to
talk through.

I'm trying to figure out a solution where by I can nat eth0 and configure the
routing table to allow all traffic from tap0 to pass through eth0 and the rest
of the traffic to pass through eth1.

I'm currently looking at:
and it looks like the way to follow. But this example is assuming static IP
addresses, I guess.

One option I see is to take out the IP addresses for eth0 and eth1 when they get
it from the dhcp server and then follow the above doc to setup the routing.

Just wanted to confirm:
a) I'm using debian which uses ifupdown. Will setting the routing tables be used
or the ifupdown scripts use their own routing tables.
b) Has anyone tried similar solution or has any simpler way of doing this.

Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."
"Stealing logic from one person is plagiarism, stealing from many is research."
"The great are those who achieve the impossible, the petty are those who
cannot - rrs"

Reply to: