Operating System - HP-UX
1834009 Members
1852 Online
110063 Solutions
New Discussion

Re: What is number of nfs port open?

 
SOLVED
Go to solution
nataris
Advisor

What is number of nfs port open?

What is number of nfs port open at server side?
As I know that at client side should open 111, 2049 and range 48k - 64k. That's all right?

Please, help to explain more for me.

Thanks so much
8 REPLIES 8
Jeeshan
Honored Contributor

Re: What is number of nfs port open?

at server side u also need to open 111 port used by portmap and rpcbind.
a warrior never quits
nataris
Advisor

Re: What is number of nfs port open?

How about client side? Should it be opened 111, 2049 and range 48k-64k?

Please, help to explain clarify.

Thanks

Dave Olker
Neighborhood Moderator
Solution

Re: What is number of nfs port open?

On the server you need the following ports open:

111 (rpcbind)
2049 (nfsd)

You then need the ports used by rpc.mountd, rpc.lockd and rpc.statd. By default these can be any port in the anonymous range, which defaults to 48K-64K. However, the anonymous port range is controlled by ndd tunables and can therefore be adjusted.

More importantly, on 11.11, 11.23 and 11.31 you can now specify the port numbers for rpc.mountd, lockd and statd to use so they will start on the same port numbers each time.

My recommendation is to always use 4045 for rpc.lockd, as that appears to be an industry standard. I then suggest 4046 for rpc.statd and 4047 for rpc.mountd. That way you'd only have to open 4045-4047 for NFS to use rather than thousands of ports in the anonymous range.

If you're running 11.11 or 11.23 you'll need to install the latest NFS patches and then set the following:

LOCKD_PORT
STATD_PORT
MOUNTD_PORT

variables in the /etc/rc.config.d/nfsconf file to get these settings to take effect.

If you're running 11.31 then you can set the STATD_PORT and MOUNTD_PORT variables in the /etc/default/nfs file. rpc.lockd defaults to port 4045 on 11.31 so there's no need to change it.

Hope this helps,

Dave


I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
nataris
Advisor

Re: What is number of nfs port open?


As you said

"You then need the ports used by rpc.mountd, rpc.lockd and rpc.statd. By default these can be any port in the anonymous range, which defaults to 48K-64K. However, the anonymous port range is controlled by ndd tunables and can therefore be adjusted.

More importantly, on 11.11, 11.23 and 11.31 you can now specify the port numbers for rpc.mountd, lockd and statd to use so they will start on the same port numbers each time.

My recommendation is to always use 4045 for rpc.lockd, as that appears to be an industry standard. I then suggest 4046 for rpc.statd and 4047 for rpc.mountd. That way you'd only have to open 4045-4047 for NFS to use rather than thousands of ports in the anonymous range.

If you're running 11.11 or 11.23 you'll need to install the latest NFS patches and then set the following:

LOCKD_PORT
STATD_PORT
MOUNTD_PORT

variables in the /etc/rc.config.d/nfsconf file to get these settings to take effect.

If you're running 11.31 then you can set the STATD_PORT and MOUNTD_PORT variables in the /etc/default/nfs file. rpc.lockd defaults to port 4045 on 11.31 so there's no need to change it"


That's all is configured at only client side?

Please, help to make me clear
Kevin Wright
Honored Contributor

Re: What is number of nfs port open?

No, the nfs daemons discussed above run/listen on the server, responding to requests from your clients, which will use any unpriv port and is irrelevant.
nataris
Advisor

Re: What is number of nfs port open?

How 's about client side? What 's port number should be opened? Thanks
Jeeshan
Honored Contributor

Re: What is number of nfs port open?

in client side you need to open 111 port.
a warrior never quits
Jeeshan
Honored Contributor

Re: What is number of nfs port open?

Hi

With the daemons portmap, lockd, statd running you should be able to mount the remote directory.

Verify that the services portmap and nfslock are running using the command

#rpcinfo -p
a warrior never quits