SSH between computers on LAN

Preston Kutzner shizzlecash at gmail.com
Sat Jan 24 18:11:26 UTC 2009


On Jan 24, 2009, at 11:16 AM, Karl F. Larsen wrote:

> Nils Kassube wrote:
>> Karl F. Larsen wrote:
>>
>>>    I did look at route and it says a route defined by ifconfig ...  
>>> but
>>> later shows examples of route add things. I have not figured out  
>>> where
>>> to put the new route definition, or, what it looks like :-)
>>>
>>
>> It could be something like this for your desktop (untested):
>>
>> sudo route add -net 192.168.1.0 netmask 255.255.255.0 gw  
>> 192.168.0.2 eth0
>> sudo route add -net 192.168.2.0 netmask 255.255.255.0 gw  
>> 192.168.0.2 eth0
>>
>> where 192.168.0.2 would be the address of your Belkin router on the  
>> DSL
>> router side. However, I'm not sure if my understanding of your  
>> network is
>> correct - please check the route man page.
>>
>>
>> Nils
>>
>>
>    Hi Nils, well your guess is a big help to me! I did one set of  
> route
> add and had to use route del to destroy them. But now I again know how
> to do this. What my routes look like with just one added route by is:
>
> karl at karl-hardy:~$ route
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref     
> Use
> Iface
> 192.168.2.0     192.168.0.3     255.255.255.0   UG    0       
> 0        0 eth0
> 192.168.0.0     *               255.255.255.0   U     0       
> 0        0 eth0
> link-local      *               255.255.0.0     U     1000    
> 0        0 eth0
> default         192.168.0.1     0.0.0.0         UG    0       
> 0        0 eth0
>
> This does not work. And I worry about routes 1, which I wrote, route 2
> conflicting since they have the same Genmask.
>
>    Now when I try to ping the laptop 192.168.2.5 I get:
>
>
> karl at karl-hardy:~$ ping 192.168.2.5
> PING 192.168.2.5 (192.168.2.5) 56(84) bytes of data.
> From 192.168.0.4 icmp_seq=1 Destination Host Unreachable
> From 192.168.0.4 icmp_seq=2 Destination Host Unreachable
> From 192.168.0.4 icmp_seq=3 Destination Host Unreachable
> From 192
>
> This makes me think it is trying to use the new route but it is not  
> working.
>
>    I really can't see anything wrong. Do you? By the way the Gateway
> really is 192.168.0.3

So 192.168.0.3 is the "WAN" facing side of your Belkin router, right?   
The other problem might be that your router isn't accepting  
connections from its WAN facing side to hosts on the LAN side.  This  
is usually the default configuration of the routers.  You might want  
to try configuring the Belkin to actually just forward DHCP requests,  
so everything is on the same subnet.  It *should* be possible to do,  
but not guaranteed.  Now, I don't use Belkin products, so I don't know  
how you would go about doing that on your particular router.  But,  
your troubles communicating with other hosts on your network is due to  
the fact that you have 3 subnets. (192.168.0.*, 192.168.1.* and  
192.168.2.*)  Turning off the DHCP server on your second (Belkin)  
router, and setting it to forward DHCP requests to your Internet  
router *should* solve the problem and put all your hosts on the same,  
single subnet.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20090124/492dbc96/attachment.sig>


More information about the ubuntu-users mailing list