Bilal Muddassir forced the electrons to say:
> I have an Ethernet LAN and there is a LINUX machine with 4 other
> Windows hosts connected to it.
> The Windows hosts are 192.168.1.10 .11 .12 .13 and the LINUX NIC is
> 192.168.1.14
> LINUX box dials out to ISP and gets 203.128.3.113 on its dialup
> interface.
> Can TCP/IP traffic on the local LAN be routed to the dialup interface
> if the LINUX box is setup as router?

Ha! The very thing unix/linux is famous for - networking!

Here is the routing table on my linux machine. 

Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
127.0.0.2       0.0.0.0         255.255.255.255 UH     1500 0          0 sl0
203.94.227.17   0.0.0.0         255.255.255.255 UH     1500 0          0 ppp0
192.168.100.0   0.0.0.0         255.255.255.0   U      1500 0          0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U      3584 0          0 lo
0.0.0.0         0.0.0.0         0.0.0.0         U      1500 0          0 ppp0
0.0.0.0         0.0.0.0         0.0.0.0         U      1500 0          0 sl0

My LAN is 192.168.100.*, and 203.94.227.17 is the machine to which I connect
via ppp (MTNL).

Just set up the default gateway of the windows machines as the linux one, and
use the ip-* scripts to set up the routing table entries when the ppp link
goes up, and to delete them when it goes down.

Binand
-- 
#include <stdio.h>                                   | Binand Raj S.
char *p = "#include <stdio.h>%cchar *p = %c%s%c;     | This is a self-
int main(){printf(p,10,34,p,34,10);return 0;}%c";    | printing program.
int main(){printf(p,10,34,p,34,10);return 0;}        | Try it!!

PGP signature

Reply via email to