Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-18-2001, 02:29 PM
|
#1
|
Member
Registered: Feb 2001
Posts: 51
Rep:
|
Nfs
I made my 1st atttempt at nfs last night to setup shares between my 2 linux boxes. In the howto i was readin it seemed fairly simple but i couldnt get it to work. Ill mess with it somemore tonight. but if anyone can see something obvious im doing wrong please say so.
on the server (god, 192.168.0.1)
i added this to /etc/exports
/usr/local 192.168.0.1 (ro) 192.168.0.2 (ro)
/home 192.168.0.1 (rw) 192.168.0.2 (rw)
hosts.deny looks like this
ALL:ALL
hosts.allow is....
swat stream tcp nowait.400 root /usr/sbin/tcpd /usr/sbin/swat
portmap: 192.168.0.1 , 192.168.0.2
lockd: 192.168.0.1 , 192.168.0.2
rquotad: 192.168.0.1 , 192.168.0.2
mountd: 192.168.0.1 , 192.168.0.2
statd: 192.168.0.1 , 192.168.0.2
then on the client box (callandor 192.168.0.2)
i tried to run...
mount god.picklesworth.com: /home /mnt/home
and it came back with this error
unable to recieve cconnection refused
**i just reliazed something. Does NFS look into /etc/hosts or /etc/lmhosts or any of those files. if not, did this not work because i tried to mount god.picklesworth.com instead of mount 192.168.0.1?
|
|
|
09-22-2001, 01:29 AM
|
#2
|
Member
Registered: Mar 2001
Location: India
Posts: 332
Rep:
|
hi..
Enabel tcpdump on both the machines and check the logs
1. Request is coming to ur mail machine ???
2.If it is coming why it is refusing the connection ??
3. First try to mount the partitiions Locally and check what error u are getting?
post the logs we can find the problem
siddiqu.T
|
|
|
09-22-2001, 04:24 AM
|
#3
|
Senior Member
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243
Rep:
|
Re: Nfs
Quote:
Originally posted by thetruevoice
i added this to /etc/exports
/usr/local 192.168.0.1 (ro) 192.168.0.2 (ro)
/home 192.168.0.1 (rw) 192.168.0.2 (rw)
|
Be careful with your spaces!! You are actually giving 192.168.0.1 & 192.168.0.2 read/write access to /usr/local, and everyone else read only access, your /usr/local line should read
Code:
/usr/local 192.168.0.1(ro) 192.168.0.2(ro)
Quote:
Originally posted by thetruevoice
hosts.allow is....
swat stream tcp nowait.400 root /usr/sbin/tcpd /usr/sbin/swat
portmap: 192.168.0.1 , 192.168.0.2
lockd: 192.168.0.1 , 192.168.0.2
rquotad: 192.168.0.1 , 192.168.0.2
mountd: 192.168.0.1 , 192.168.0.2
statd: 192.168.0.1 , 192.168.0.2
|
Shouldn't there be some mention of your nfs daemon here?
As for /etc/hosts - I would make sure its setup anyway, if its not then you will need to make sure that you always use IP addresses everywhere, otherwise things will fail and there will be no mapping between the names you are using and IP addresses.
HTH
Jamie...
|
|
|
All times are GMT -5. The time now is 04:57 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|