eth0 and eth1, how to get all packets to use the right source-adress?

Tomas Lund (tlund@nxs.se)
Sun, 21 Jun 1998 00:46:43 +0200 (MET DST)


A friend of mine has a problem with routing on a Linux box. The network
looks something like this:

real real
adress _____________ 192.168 _______ adress
______| isdn-router |_______| Linux |_______| Rest of
|_____________| |_______| | network

The interface on the "far side" of the isdn-router has an ip-adress from
the ISP, and the rest of the network is using a class C-network that is
routed to the ISDN-router. The Linux-box and the ethernet interface on the
ISDN-router use 192.168 adresses. Everything works great except one thing,

You cannot access the internet from the Linux-box since all packets sent
out gets a source-adress from the 192.168-net. This i perfectly normal I
assume, since the default route is out trough that interface :)

The question is, how do you get it to ALWAYS use the ip-adress on the
other interface?

Best Regards, Tomas.

--
"I'm not a vegetarian because I love animals, but because I hate plants"

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu