John Cusick wrote:
> I have a small home network using Linux (almost) exclusively.
> I also have a laptop without an ethernet card but I have been
> able to tie it to one of the boxes using PLIP. The question
> is: Can I telnet into all the boxes once I've been recognized
> by one.
Yes. But it requires some configuration.
> So far I haven't been able to telnet into any box
> except the one I'm directly connected to. I've read the NET3
> HOWTO again and also skimmed the Crab Book a couple of times
> in the last few days (great review by the way - I needed it),
> and so far no luck.
> Is it possible to telnet into a third box using PLIP
> through ethernet??
> ____ ____ ____
> | |----------------| |---------------| |
> |__| PLIP Cable |___| Ethernet |___|
> laptop shortline mainline
> 192.168.192.4 eth0 192.168.192.3 192.168.192.1
> plip1 plip1 192.168.192.10
>
> from laptop:
> #telnet 192.168.192.1
> #unable to connect to remote host: Connection timed out
Requirements:
1. You have to configure .4 to use .10 as its default gateway, i.e.
route add default gw 192.168.192.10
or
route add default dev plip1 # shouldn't it be plip0?
2. You have to configure .3/.10 as a router. Type:
cat /proc/sys/net/ipv4/ip_forward
to see if it is already a router (`1' means yes, `0' means no). If it
isn't you'll need to make your init scripts execute
echo 1 > /proc/sys/net/ipv4/ip_forward
at boot time. If you don't have a /proc/sys/net/ipv4/ip_forward file,
then you're running an older kernel; recompile the kernel with
CONFIG_IP_FORWARD enabled.
3. All of the other hosts on the network need to know how to send
packets to .4.
The hard way is to use the equivalent of
route add -host 192.168.192.4 gw 192.168.192.3
on all of the other hosts on the LAN.
The easier way (which only works when using an IP address from the
same network) is to use proxy-ARP on .3/.10, i.e.
arp -i eth0 -Ds 192.168.192.4 eth0 pub
For older versions of the arp command, you will need to use
arp -s 192.168.192.4 <eth0's h/w address> pub
--
Glynn Clements <[EMAIL PROTECTED]>
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]