On Sat, 27 Feb 1999, Ninja wrote:

> >
> >#!/bin/sh
> ># Add a PLIP connection to the other laptop
> >ifconfig -v plip1 205.180.230.157 pointopoint 205.180.230.192 up
> >route add 205.180.230.192 plip1
> >
> >Obviously you will have to change those IP addresses.  I was using
> >addresses that are private to my company's network.  You may have to
> >use addresses in the range 192.168.1.xxx, which are reserved for
> >private networks.
> >
> 
> 
> I have some more question. If my laptop has no ip address, that is,
> localhost.localdomain and my desktop running windows has ip
> address. I think using above script I can tranfer between my
> laptop running linux and desktop running windows like FX cable.
>
> Can you explain in more detail ?
>

First... you assign ip address at your network interfaces, not at your
box. Right! So if you work with plip under linux you can give any ip
number and at your modem link other ip address (perhaps dinamically
assigned by your ISP) and your ethernet card other ip.

Now, i don't know how, give one number at your network interface connected
at your parallel port under windows, look at the ip's number that
has been reserved not used for anybody in internet, eg. 192.168.0.1, and
configure under linux, your parallel port with something like 192.168.0.2
and assign at linux box like its gateway at your windows box
(192.168.0.1).

now when you give the command:

ifconfig plip1 192.168.0.2 pointopoint 192.168.0.1 up
route add 192.168.0.1 plip1

i can't remember how assign at 192.168.0.1 like gateway, gw.

But if you can do it, you can use your linux box, connected at your
windows box, like one machine that can access at internet. If everything
is right under window. Why? Because you told at your linux box, that
packets different of 192.168.0.1 will be enrouted at 192.168.0.1.

In order to understand better read the mini-HOWTO IP-masquerade.


Reply via email to