LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-10-2002, 03:44 AM   #1
Syncrm
Member
 
Registered: Aug 2001
Location: Lansing, Michigan
Distribution: slackware8+
Posts: 472

Rep: Reputation: 30
Question NFS problems


hello
i have a fairly simple network consisting of three machines; 1 desktop and 2 laptops, all running redhat 7.2. i'd like to keep all my data on the desktop and use NFS to allow the laptops to access any necessary data off the desktop. i've read the howtos on nfs, but am running into some problems.

first off, i understood that you can use the hostname of the clients in the /etc/exports file like so:

/pub client1(rw,no_root_squash)

but when i export them (~# exportfs -av) i get an error saying client1 doesn't have an inet-address. though this isn't my big problem, i can use IPs rather than hosts.

my big problem is when i attempt to mount from the client (mount 192.168.1.50:/pub /mnt/pub) i get an error about access refused. my /etc/hosts.deny file is blank, and my /etc/hosts.allow file (both files on the server) looks like this:

# 192.168.1.53 = client1
portmap: 192.168.1.53
lockd: 192.168.1.53
rquotad: 192.168.1.53
mountd: 192.168.1.53
statd: 192.168.1.53

i've tried everything and can't seem to find an answer. please help!!!

thank you. :-)
 
Old 01-10-2002, 04:09 AM   #2
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
I have tried to get this to work my self but without any luck.
I think it might have to do with inet or xinet and their config files.
I think that the specification for the nfs is missing, haven't made serious try to fix it though.
 
Old 01-12-2002, 02:39 AM   #3
johnlee
Member
 
Registered: Oct 2001
Location: China
Distribution: RedHat 7.0
Posts: 43

Rep: Reputation: 15
NFS Configuration

Dear Friend,

You have 3 machines 2 on laptop and 1 is desktop i am supposing some setting here

IP Address Machine Name Type
======== ========== ===
192.168.0.1 machine1 Desktop
192.168.0.2 machine2 Laptop
192.168.0.3 machine3 Laptop

Machine1 Setting
============
first of all edit /etc/hosts file on machine1 and give this entry


192.168.0.1 machine1
192.168.0.2 machine2
192.168.0.3 machine3


edit /etc/exports file and put entry here

/pub machine2(rw),machine3(rw)

and restart nfs deamon /etc/rc.d/init.d/nfs restart

Machine2 Setting
============
first of all edit /etc/hosts file on machine2 and give this entry

192.168.0.1 machine1
192.168.0.2 machine2
192.168.0.3 machine3

edit /etc/exports file and put entry here

/pub machine1(rw),machine3(rw)

and restart nfs deamon /etc/rc.d/init.d/nfs restart

Machine3 Setting
============
first of all edit /etc/hosts file on machine3 and give this entry

192.168.0.1 machine1
192.168.0.2 machine2
192.168.0.3 machine3

edit /etc/exports file and put entry here

/pub machine1(rw),machine2(rw)

and restart nfs deamon /etc/rc.d/init.d/nfs restart

Now u are on machine1 and want to mount machine2 's pub
machine1# mkdir machine2
machine1# mount machien2:/pub ./machine2
machine1# cd machine2
machine1# ls

Thanks and Regards,

John Lee

thristydesert@hotmail.com
 
Old 01-12-2002, 05:52 AM   #4
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
The problem is that this dosen't always work.
It least not in Red Hat.
I have done these settings but can't still get it working.
Tried yesterday and was able to mount a directory as nfs but only locally.
When trying from the lan I got refused, despite the fact that I have given access to my subnet 192.168.0.1/255.255.255.0
 
Old 01-15-2002, 04:11 PM   #5
Syncrm
Member
 
Registered: Aug 2001
Location: Lansing, Michigan
Distribution: slackware8+
Posts: 472

Original Poster
Rep: Reputation: 30
hello everyone. thanx for the help offered, but i was able to fix the problem on my own. turns out that my default ipchains settings were getting in the way. for anyone interested, the way around it (at least temporarily) is running the following command from the server AND client machines:

ipchains -F

this will flush all your ipchains rules. keep in mind you'll wanna do this every time you reboot, as ipchains are reinitiated at startup.
 
Old 03-02-2002, 05:15 AM   #6
lynch
Member
 
Registered: Nov 2000
Location: A Mid-Atlantic state
Distribution: SuSE 8.1,Knoppix 3.2,Mandrake 9.1
Posts: 388

Rep: Reputation: 30
Can you just put that "ipchains -F" in the rc.local or boot.local script?
lynch
 
Old 03-02-2002, 05:38 PM   #7
bbenz3
Member
 
Registered: Feb 2002
Location: Orlando
Distribution: Whatever I feel like at the time I install.
Posts: 284

Rep: Reputation: 30
Ipchains is used by the default firewall built into Redhat. So by doing the "ipchains -F" you arein affect getting rid of the firewall til you reboot. Yes you can add that line to a script or a better way if you aren't using the built in firewall is to do the following under Redhat

rpm -e lokkit
rpm -e ipchains

this will completely remove ipchains. You can also run setup and disable ipchains on bootup. If you are running Redhat 7.x then you are more than likely trying to use iptables instead of ipchains and therefore need to disable/remove ipchains.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS Problems wnaLinux Slackware 4 01-04-2005 04:00 PM
NFS Problems cdeverapalli Linux - Networking 4 10-23-2004 11:52 PM
NFS problems graham Slackware 2 02-12-2004 05:59 PM
NFS problems darthczyz Linux - Networking 3 12-19-2003 04:02 PM
NFS on RH 8 Problems Gargomel7 Linux - Networking 0 09-13-2003 08:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration