Skip to main content
NetApp Knowledge Base

Which Network File System (NFS) TCP and NFS UDP ports are used on the storage system?

Views:
36,593
Visibility:
Public
Votes:
37
Category:
ontap-9
Specialty:
nas
Last Updated:

 

Applies to

  • ONTAP 9
  • Data ONTAP 7-Mode
  • NFS v3

Answer

  • The default ports used by the storage controller are as follows,

ONTAP 9:
111   TCP/UDP portmapper
2049  TCP/UDP nfsd
635   TCP/UDP mountd
4045  TCP/UDP nlockmgr
4046  TCP/UDP status
4049  TCP/UDP rquotad


Data ONTAP 7-Mode:
111   TCP/UDP portmapper
2049  TCP/UDP nfsd
4046  TCP/UDP mountd
4045  TCP/UDP nlockmgr
4047  TCP/UDP status
4049  TCP/UDP rquotad

 
  • It is possible to modify those default ports, therefore to check the currently configured ports on your storage controller please use the following commands,


Data ONTAP 7-Mode:

7dot> options rpc
rpc.mountd.tcp.port          4046
rpc.mountd.udp.port          4046
rpc.nlm.tcp.port             4045
rpc.nlm.udp.port             4045
rpc.nsm.tcp.port             4047
rpc.nsm.udp.port             4047
rpc.pcnfsd.tcp.port          4048
rpc.pcnfsd.udp.port          4048
rpc.rquotad.udp.port         4049

ONTAP 9:
cDot::*> nfs show -vserver NFSsvm -fields rquotad-port ,nlm-port ,nsm-port ,mountd-port
vserver mountd-port nlm-port nsm-port rquotad-port
------- ----------- -------- -------- ------------

NFSsvm    635         4045     4046     4049

cDot::*>

  • Alternatively show the ports listening on the node with the following

cdot::> network connection listening show -node <node name>
Vserver Name     Interface Name:Local Port              Protocol/Service
---------------- -------------------------------------  -----------------------
Node: node 1
Cluster          node1_clus1:7700                       TCP/ctlopcp
vs01             VS01_lif01:40001                       TCP/cifs-msrpc
VS01             VS01_lif01:135                         TCP/cifs-msrpc
VS01             VS01_lif01:4049                        UDP/unknown

 

  • These ports list can also be seen from from most unix clients with the command: rpcinfo -p <storage-controller-IP>
     
ONTAP 9:
   program vers proto   port  service
    100000    2   udp    111  portmapper
    100000    2   tcp    111  portmapper
    100000    3   udp    111  portmapper
    100000    3   tcp    111  portmapper
    100000    4   udp    111  portmapper
    100000    4   tcp    111  portmapper
    100003    3   udp   2049  nfs
    100003    3   tcp   2049  nfs
    100003    4   tcp   2049  nfs
    100005    1   udp    635  mountd
    100005    2   udp    635  mountd
    100005    3   udp    635  mountd
    100005    1   tcp    635  mountd
    100005    2   tcp    635  mountd
    100005    3   tcp    635  mountd
    100021    4   udp   4045  nlockmgr
    100021    4   tcp   4045  nlockmgr
    100024    1   udp   4046  status
    100024    1   tcp   4046  status


Data ONTAP 7-Mode:
   program vers proto   port  service
    100011    1   udp   4049  rquotad
    100024    1   tcp   4047  status
    100024    1   udp   4047  status
    100021    4   tcp   4045  nlockmgr
    100021    3   tcp   4045  nlockmgr
    100021    1   tcp   4045  nlockmgr
    100021    4   udp   4045  nlockmgr
    100021    3   udp   4045  nlockmgr
    100021    1   udp   4045  nlockmgr
    100005    3   tcp   4046  mountd
    100003    3   tcp   2049  nfs
    100005    2   tcp   4046  mountd
    100005    1   tcp   4046  mountd
    100003    2   tcp   2049  nfs
    100005    3   udp   4046  mountd
    100003    3   udp   2049  nfs
    100005    2   udp   4046  mountd
    100005    1   udp   4046  mountd
    100003    2   udp   2049  nfs
    100000    2   tcp    111  portmapper
    100000    2   udp    111  portmapper

Additional Information

additionalInformation_text

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.