James wrote:
>I've been having a very puzzling problem setting up a home LAN.
>I'm only trying to get two machines to talk to each other via >ethernet, so
>my routing table is very short and sweet.
>/sbin/route -n
>DESTINATION GW MASK FLAGS METRIC .... >DEV
>192.168.0.2 192.168.0.1 255.255.255.255 UGH 1 >
>...
>eth0
>192.168.0.0 192.168.0.1 255.255.255.0 UG 1
>... eth0
>127.0.0.1 0.0.0.0 255.0.0.0 U > 0
>... lo
>My Linux box (was RH6.2, now RH7.0) is 192.168.0.1, the Win98 box I >want
>to
>ping is 192.168.0.2. When I ping the Win98 box I get this error:
James,
I think your problem is all in your routing
Here is my config for 2 machines,
byers: linux 192.168.2.1 internal lan
2xx.1xx.x.x external
corni: linux-w98 dual boot 192.168.2.7 internal lan
[byers@byers byers]$ /sbin/route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.1 0.0.0.0 255.255.255.255 UH 0 0 0 eth1
2xx.1xx.x.x 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
127.0.0.1 0.0.0.0 255.255.255.255 UH 0 0 0 lo
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
2xx.1xx.x.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 2xx.1xx.x.254 0.0.0.0 UG 0 0 0 eth0
===Note, I _don't_ have the corni 192.168.2.7 in destination column ===
and here is the other linux box 192.168.2.7 only on the internal lan
[jack@corni jack]$ /sbin/route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.7 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.2.1 0.0.0.0 UG 0 0 0 eth0
[jack@corni jack]$
=== again note, I do not show 192.168.2.1 in the destination column===
For your case, just connecting 2 machines:
>My Linux box (was RH6.2, now RH7.0) is 192.168.0.1, the Win98 box I want to
>ping is 192.168.0.2.
modifying my table from above byers for your linux box you should have
something close to:
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.1 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
127.0.0.1 0.0.0.0 255.255.255.255 UH 0 0 0 lo
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
ie only 0.0.0.0 in gw col, as Mikkel pointed out
and _don't_ put the ip of your w98 box, 192.168.0.2 in the destination
col
on your w98 box you need to put in the following equivalent modification of
my corni system above
ie if this is a dual linux-w98 then you need it configured in both linux
and w98
for linux the table should be close to:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.2 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
this last line needed only if your linux box is going to also be connected
to internet and thus
act as gw for the w98 box
again, the destination column on this w98-box with ip 192.168.0.2
does not have any mention of the linuxbox ip 192.168.0.1
of course, you have to do the equivalent w98 config to put this info into
w98
regards,
Jack
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at
http://profiles.msn.com.
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list