This has to be something really obvious ...

This has to be something really obvious ...

Post by Andrei Ivan » Sat, 27 Nov 1999 04:00:00




> 192.168.27.26     machine1
> 192.168.27.1       machine2
> 127.0.0.1             localhost

> On machine 2 I have :

> 192.168.27.1      machine2
> 192.168.27.26    machine1
> 127.0.0.1            localhost

Your network number is 192.168.27, isn't it?

Quote:> In /etc/networks, I have : (on both machines)
> localnet   192.167.27.0

Just the same here... NO! "167" instead of "168"!!!!!

Quote:> Destination    Gateway  Genmask         Flags    Metric Ref Use Iface
> 192.167.7.1    *        255.255.255.255 UH       0      0   0   eth0
> localnet       *        255.255.255.0   U        0      0   0   eth0
> 127.0.0.0      *        255.0.0.0       U        0      0   0   lo

Due to 'netstat' output your IP address belongs to different network -
192.167.7 instead of 192.168.27. And you have no route for 192.167.7/24!
BTW, you can have empty /etc/networks file, as you're working with
standard C-class netmask.

--
andrei

 
 
 

This has to be something really obvious ...

Post by David Co » Sun, 28 Nov 1999 04:00:00


Not only am I missing something obvious, I'm making lots of typos
in my post for help.  I was typing in those numbers below, not
cut-and-pasting them (because I have a USB modem, and USB
support is next on my list for Linux, so I was posting from Win98 ...)

I meant to type "192.168.27.0" for the entry in /etc/networks,
and "192.168.27.1" for the value shown by "route".

I've checked and double-checked the entries, and all the entries seem
to match - I have 192.168.27 as the network prefix portion everywhere,
and 192.168.27.26 and 192.168.27.1 are the IP addresses I have used
everywhere ... but my network doesn't work.

(I should know better than to post late at night ...)

David.




>> 192.168.27.26     machine1
>> 192.168.27.1       machine2
>> 127.0.0.1             localhost

>> On machine 2 I have :

>> 192.168.27.1      machine2
>> 192.168.27.26    machine1
>> 127.0.0.1            localhost

>Your network number is 192.168.27, isn't it?

>> In /etc/networks, I have : (on both machines)
>> localnet   192.167.27.0

>Just the same here... NO! "167" instead of "168"!!!!!

>> Destination    Gateway  Genmask         Flags    Metric Ref Use Iface
>> 192.167.7.1    *        255.255.255.255 UH       0      0   0   eth0
>> localnet       *        255.255.255.0   U        0      0   0   eth0
>> 127.0.0.0      *        255.0.0.0       U        0      0   0   lo

>Due to 'netstat' output your IP address belongs to different network -
>192.167.7 instead of 192.168.27. And you have no route for 192.167.7/24!
>BTW, you can have empty /etc/networks file, as you're working with
>standard C-class netmask.

>--
>andrei


 
 
 

This has to be something really obvious ...

Post by Ken Johnso » Sun, 28 Nov 1999 04:00:00



> (I should know better than to post late at night ...)

(snip)

> >> In /etc/networks, I have : (on both machines)
> >> localnet   192.168.27.0

> >> Destination    Gateway  Genmask         Flags    Metric Ref Use Iface
> >> 192.168.27.1   *        255.255.255.255 UH       0      0   0   eth0
> >> localnet       *        255.255.255.0   U        0      0   0   eth0
> >> 127.0.0.0      *        255.0.0.0       U        0      0   0   lo

Regardless of the typos, I don't know what the deal is with the
/etc/networks file, as the one on my box is blank.   If your net route
says:
Quote:> 192.168.27.0   *        255.255.255.0   U        0      0   0   eth0
instead of:
> localnet       *        255.255.255.0   U        0      0   0   eth0

then it ought to work.

My advice is to lose the contents of /etc/networks and recycle
(ifdown/ifup) the interface;  ifup should create the correct route.

K.