LinuxQuestions.org
Review your favorite Linux distribution.
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 09-10-2006, 01:10 PM   #1
ssfrstlstnm
Member
 
Registered: Dec 2004
Location: IN, USA
Distribution: debian etch
Posts: 402

Rep: Reputation: 30
Help setting up NFS


The server is static ip at 192.168.1.100 and the client is
wireless dhcp at 192.168.1.105. I am not sure if port forwarding
is correct on the linksys WRT54G router (see config below). I
am only using the router firewall. There are no firewall on
either client or server.

Code:
mount -t nfs 192.168.1.100:/home/stephen/ /mnt/develop/home/stephen/
it just hangs. Cant't find any info in /var/log/messages.

Here is my configuration on the server:

/etc/exports
Code:
/home/stephen/snd 192.168.1.105(rw)
/home/stephen/Steve 192.168.1.105(rw)
/home/stephen/prog 192.168.1.105(rw)
/etc/hosts.allow
Code:
portmap: 192.168.1.105
lockd: 192.168.1.105
rquotad: 192.168.1.105
mountd: 192.168.1.105
statd: 192.168.1.105
/etc/hosts.deny
Code:
portmap: ALL
lockd:ALL
mountd:ALL
rquotad:ALL
statd:ALL
Made a few modifications to:

/etc/default/nfs-kernel-server
Code:
RPCMOUNTDOPTS="-p 32767"
/etc/default/nfs-common
Code:
STATDOPTS="--port 32766 --outgoing-port 32765"
Code:
develop:/etc# rpcinfo -p
   program vers proto   port
    100000    2   tcp    111  portmapper
    100000    2   udp    111  portmapper
    391002    2   tcp    973  sgi_fam
    100003    2   udp   2049  nfs
    100003    3   udp   2049  nfs
    100003    4   udp   2049  nfs
    100003    2   tcp   2049  nfs
    100003    3   tcp   2049  nfs
    100003    4   tcp   2049  nfs
    100005    1   udp  32767  mountd
    100005    1   tcp  32767  mountd
    100005    2   udp  32767  mountd
    100005    2   tcp  32767  mountd
    100005    3   udp  32767  mountd
    100005    3   tcp  32767  mountd
    100024    1   udp  32766  status
    100024    1   tcp  32766  status
My WRT54G router setup for port forwarding. I'm not sure about what to put for the application names so I just called them nfs. Could this be the problem?
Code:
nfs 111 --> 192.168.1.100
nfs 2049 --> 192.168.1.100
nfs 32765-32679 --> 192.168.1.100
 
Old 09-10-2006, 01:58 PM   #2
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191

Rep: Reputation: 49
I dont see you sharing /home/stephen here.
/home/stephen/snd 192.168.1.105(rw)
/home/stephen/Steve 192.168.1.105(rw)
/home/stephen/prog 192.168.1.105(rw)

you would want to add
/home/stephen 192.168.1.105(rw)
and then use the mount command.
mount -t nfs 192.168.1.100:/home/stephen/ /mnt/develop/home/stephen/

one more thing is, I dont see a point of you forwarding your ports unless you would want somene outside from your lan to access it.

Last edited by w3bd3vil; 09-10-2006 at 02:02 PM.
 
Old 09-10-2006, 02:27 PM   #3
ssfrstlstnm
Member
 
Registered: Dec 2004
Location: IN, USA
Distribution: debian etch
Posts: 402

Original Poster
Rep: Reputation: 30
OK, I removed the port forarding stuff from the router table, and I try to mount /home/stephen/snd:
Code:
thinkpad:/etc# mount -t nfs 192.168.1.100:/home/stephen/snd/ /mnt/develop/home/stephen/snd/
mount to NFS server '192.168.1.100' failed: server is down.
At least it doesn't just hang, but still not working.
 
Old 09-10-2006, 03:43 PM   #4
ssfrstlstnm
Member
 
Registered: Dec 2004
Location: IN, USA
Distribution: debian etch
Posts: 402

Original Poster
Rep: Reputation: 30
Got it after only six hours of trying!!! Portmap was bound to the loopback address. Just had to comment out the following line in /etc/default/portmap
Code:
#OPTIONS="-i 127.0.0.1"
 
  


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
Setting Up NFS server with VMWare chanwcom Linux - Newbie 2 05-02-2006 08:02 AM
nfs umask setting mvo Linux - Newbie 1 09-16-2005 09:52 PM
Trouble setting up NFS... Fenster Linux - Networking 5 11-13-2004 07:25 PM
Setting up NFS Codegen Linux - Networking 2 10-31-2004 10:30 PM
Problem in permissions while setting NFS JIV Linux - Networking 3 05-05-2003 05:06 AM

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

All times are GMT -5. The time now is 02:05 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