how to "join" LAN with plip link?
- From: Zhang Weiwu <zhangweiwu@xxxxxxxxxx>
- Date: 25 Dec 2006 05:36:38 GMT
Hello. I have successfully connected two computers through plip0 (don't
know if current speed of 3kB/s is reasonable). The 'server' has a parallel
port and is connected to LAN, the 'client' have a parallel port and is
not connected to LAN, I guess this is typical. Now how can I make
this 'client' join the LAN?
For client to access LAN I need to set up nat on the 'server', this is
rather straigthforward. However for the client to 'join' the LAN it needs
to have a unique IP address on the lan and is accessible by other hosts on
the LAN through this IP address.
One method is used by Windows 2000: when a 'client' 'dial' to the 'server'
(no dialing actually happened, Windows 2000 calls it a dialup connection
anyway), this client is given an IP address that the 'server' requested
for the client from the DHCP server. Let's say server IP address is
192.168.1.12 and client IP address is 192.168.1.13. To the client, there
is only one parallelport dialup connection, local side is 192.168.1.13,
server side is 192.168.1.12, no ARP or other ethernet technology is
involved. To other hosts on the LAN, 192.168.1.13 is a real
host existing in the LAN, it has its mac address which is the same MAC
address of 192.168.1.12. Other hosts on the LAN think 'server' has two IP
addresses. So the server automatically forward any traffic to
192.168.1.13 to its client. The whole process is transparent, we don't
know how internally Windows 2000 did the job.
Can this method be used on Linux through alternative configuration? I mean
can we configure a Linux host to act almost the same way as described
above?
Maybe for Linux there is an alternative method: 0) we configure 'server'
to run NAT, 1) 'server' request two IP addresses, 192.168.1.12 for its own
use and 192.168.1.13 is set as the out-going interface of NAT; 2) we set
plip link of server to be 10.0.0.1, plip link of client to be 10.0.0.2; 3)
we set NAT default host (sometimes called DMZ) to be 10.0.0.2. The result
is similar as Windows 2000: if someone access 192.168.1.13 from LAN,
traffic is forwarded to 10.0.0.2 which is the 'client'.
I can also think of the 3rd method: set up VPN server on the 'server',
client dial in to server after plip link is created, then the 'server' can
grant a LAN ip address to client as VPN usually do. I guess this solution
is too complicated.
So what would you suggest / recommend? I know this issue is perhaps not
worth solving because we do have NIC everywhere, I am purely interested to
find out a solution.
.
- Follow-Ups:
- Re: how to "join" LAN with plip link?
- From: Moe Trin
- Re: how to "join" LAN with plip link?
- Prev by Date: Stats comp.os.linux.networking (last 7 days)
- Next by Date: Mount cifs with a vmware host-only connection?
- Previous by thread: What is a "shared" WiFi key?
- Next by thread: Re: how to "join" LAN with plip link?
- Index(es):
Relevant Pages
|