On 2005-09-15, Kai-Martin <(E-Mail Removed)> wrote:
> Anthony Campbell wrote:
>
>>
>> I did try ssh previously but I couldn't get it to work. Specifically, it
>> would not recognize either machine from the other.
>>
>> One computer is on 192.168.0.20 and the other on 192.168.0.22.
>> I've tried putting entries for these in /etc/hosts.allow and /etc/hosts
>> but still I can't ping between them.
>
> Maybe an inappropiate subnetmask? (should be 255.255.255.0)
>
> Can you give the result of the ifconfig command? (on both machines)
> The routing table might also help (get it with "route").
>
> ---<(kaimartin)>---
I do have that netmask.
ifconfig:
ac:/usr/share/doc/HOWTO/en-txt:$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:0B:2B:02:32:FB
inet addr:192.168.0.20 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:74297 errors:0 dropped:0 overruns:0 frame:0
TX packets:72098 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:14942931 (14.2 MiB) TX bytes:5628161 (5.3 MiB)
Interrupt:11 Base address:0xe000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1083 errors:0 dropped:0 overruns:0 frame:0
TX packets:1083 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:80919 (79.0 KiB) TX bytes:80919 (79.0 KiB)
route:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
I've tried turning off the firewall (shorewall) but this does not make
any difference.
--
Using Linux GNU/Debian - Windows-free zone
http://www.acampbell.org.uk (blog, book reviews,
Assassins, homeopathy, and skeptical articles).
Email: ac<at>acampbell.org.uk