NFS Services Administrator's Guide

Configuring and Administering NFS Services
Configuring and Administering an NFS Server
Chapter 266
rpcinfo -p
An output similar to the following output is displayed:
program vers proto port service
100024 1 udp 49157 status
100024 1 tcp 49152 status
100021 2 tcp 4045 nlockmgr
100021 3 udp 4045 nlockmgr
100005 3 udp 49417 mountd
100005 3 tcp 49259 mountd
100003 2 udp 2049 nfs
100003 3 tcp 2049 nfs
Each time the rpc.statd and rpc.mountd daemons are stopped and
restarted they may be assigned a different port from the anonymous port
range. The firewall must be reconfigured each time the NFS service is
restarted.
For example, if the NFS service or the rpc.statd and rpc.mountd
daemons are restarted, run the rpcinfo -p command to view the new
port numbers.
An output similar to the following output is displayed:
program vers proto port service
100024 1 tcp 49154 status
100024 1 udp 49161 status
100021 3 tcp 49156 nlockmgr
100021 3 udp 49163 nlockmgr
100005 3 udp 49181 mountd
100005 3 tcp 49181 mountd
100003 3 udp 2049 nfs
100003 3 tcp 2049 nfs
Configure the firewall based on the new port numbers.