[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: My two boxes will not talk to each other



On Tue, Jan 16, 2007 at 06:09:18PM -0500, Ken Heard wrote:
> I have a P4 desktop, on which is Sarge installed, host name SOL; and a 
> P2 laptop (Toshiba Tecra 8000), host name LAP, on which yesterday I 
> successfully installed Etch RC1.  Both can communicate with the outside 
> world through a gateway and both can communicate with the printer 
> through the print server.  I cannot however get them to communicate with 
> each other.
> 
> I am trying to use the host names to identify each box to the other.  I 
> set SOL up as the server, but when I start nfs-kernel-server, it 
> returns: "exportfs: LAP has no inet address."  LAP is the client, but 
> when I try to mount on it the directory I want to export from SOL, the 
> mount command returns "mount: can't get address for SOL."
> 
> I assume that neither computer can resolve the host name of the other. 
> Running cat /etc/hosts on SOL returns the following:
> 
> 127.0.0.1       localhost.localdomain   localhost       SOL
> 
 
> Running the same command on LAP returns the following:
> 
> 127.0.1.1	localhost
> 127.0.0.1	LAP.localhost	LAP
> 
 
> Have I given enough information to indicate what is wrong?  Can anybody 
> advise me what to do to put these two boxes on friendly terms with each 
> other?
 

With this /etc/hosts, there's no way for one box to know about the
other.  They have to be on the same network.  How are they connected and
what is each ip address according to the gateway?  Eg: if the gateway is
192.168.1.1, SOL is 192.168.1.2, and LAP is 192.168.1.3 then this should
be reflected in the /etc/hosts file.  Note that having:

127.0.0.1       localhost.localdomain   localhost       SOL

is not correct.  It should be:

127.0.0.1       localhost.localdomain   localhost
192.168.1.2	SOL

The first step to seeing if there is a route is to try using ping

	from SOL: ping LAP
	from LAP: ping SOL

Until this works, don't worry about NFS.

If you still have trouble, then send more specific info on how things
are connected.

Good luck.

Doug.





Reply to: