SSH between computers on LAN
Karl F. Larsen
klarsen1 at gmail.com
Sat Jan 24 17:16:31 UTC 2009
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
Karl
--
Karl F. Larsen, AKA K5DI
Linux User
#450462 http://counter.li.org.
PGP 4208 4D6E 595F 22B9 FF1C ECB6 4A3C 2C54 FE23 53A7
More information about the ubuntu-users
mailing list