Question & Answer
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 configuration is not supported with
Here is an example of restricting
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 for rpc.mountd, rpc.lockd, or rpc.statd.Here is 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 ports are used by mountd and lockd, run this command.# rpcinfo -p
The mountd and statd daemons will now be listening on those ports.
[{"Type":"MASTER","Line of Business":{"code":"LOB08","label":"Cognitive Systems"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG10","label":"AIX"},"ARM Category":[{"code":"a8m0z000000cvyTAAQ","label":"Communication Applications-\u003ENFS\/NFSV4\/PCNFS"}],"ARM Case Number":"","Platform":[{"code":"PF002","label":"AIX"}],"Version":"All Versions"}]
Was this topic helpful?
Document Information
Modified date:
13 March 2025
UID
isg3T1010663