Technote (FAQ)
Question
How do I force mountd/lockd to use a specific port on AIX.
Answer
The ports for rpc.mountd and rpc.lockd may be specified
using /etc/services. This is not supported with rpc.statd and there
are no plans to further enhance rpc.statd. Environments with strong
network firewall requirements should consider migration to NFS
version 4, which maintains the full protocol over the primary NFS
server port 2049. NFSv4 does not require inter-machine communication to
rpc.mountd, rpc.lockd, or rpc.statd.
Here's an example of restricting mountd to port 9999 and lockd to
port 9998:
#vi /etc/services
mountd 9999/tcp
mountd 9999/udp
lockd 9998/tcp
lockd 9998/udp
stopsrc -g nfs
stopsrc -s portmap
startsrc -s portmap
startsrc -g nfs
To check which port mountd and lockd are running under.
rpcinfo -p
mountd and statd now should be listening under those ports.