> I've got a small block of IP addresses assigned to me by my
> ISP. Historically, I've used PPP to connect all my machines together
> (PPP over direct serial links!) and that way each of them have their
> own IP address. I use my Linux box as the gateway and firewall out to
> the net.
>
> For example, I have:
>
> [Win95 Machine] [Linux]
> IP: 204.153.195.5 <--- PPP direct link ---> 204.153.195.1 <--- PPP ---> ISP
>
> I've recently put in a local ethernet setup between all my machines,
> so now, in addition to the above setup, I have:
>
> [Win95 Machine] [Linux]
> IP: 192.168.0.2 <--- Ethernet -------------> 192.168.0.1
>
> What I want to know is how to eliminate the direct link between the
> Win95 machine and my Linux box and still let the Win95 machine have
> its own assigned IP address.
>
> Something like this:
>
> [Win95 Machine] [Linux]
> IP: 204.153.195.5 <----- Ethernet ---------> 192.168.0.1
> ^
> |
> v
> 204.153.195.1 <--- PPP ---> ISP
>
> In the last scenario, ideally my Linux box would transparently move
> traffic destined to/from the Win95's static IP to the ethernet IP
> assigned to it for my local network.
It should be as straightforward as:
route add -net 204.153.195.0 netmask x.x.x.x dev eth0
route add -net 192.168.0.0 netmask 255.255.255.0 dev eth0
Ideally you would have the same routes on all of the hosts on the LAN,
otherwise packets sent between a host on 204.153.195.* and a host on
192.168.0.* would be sent via the router, doubling the amount of
bandwidth used.
-- Glynn Clements <glynn@sensei.co.uk> - To unsubscribe from this list: send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.rutgers.edu