Server side 10.10.10.10
# cat /etc/exports
/d01/backup 10.10.10.20(ro)
# cat /etc/hosts.deny
#
# hosts.deny This file describes the names of the hosts which are
# *not* allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#
# The portmap line is redundant, but it is left to remind you that
# the new secure portmap uses hosts.deny and hosts.allow. In particular
# you should know that NFS uses portmap!
portmap:ALL
lockd:ALL
mountd:ALL
rquotad:ALL
statd:ALL
# cat /etc/hosts.allow
#
# hosts.allow This file describes the names of the hosts which are
# allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#
portmap: 10.10.10.20
lockd: 10.10.10.20
rquotad: 10.10.10.20
mountd: 10.10.10.20
statd: 10.10.10.20
# cd /sbin/
# portmap
# cd /usr/sbin/
# rpc.mountd
# rpc.nfsd
# rpc.statd
# rpc.lockd
# rpc.rquotad
# rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100005 1 udp 657 mountd
100005 1 tcp 660 mountd
100005 2 udp 657 mountd
100005 2 tcp 660 mountd
100005 3 udp 657 mountd
100005 3 tcp 660 mountd
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100021 1 udp 35144 nlockmgr
100021 3 udp 35144 nlockmgr
100021 4 udp 35144 nlockmgr
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100021 1 tcp 34377 nlockmgr
100021 3 tcp 34377 nlockmgr
100021 4 tcp 34377 nlockmgr
100024 1 udp 801 status
100024 1 tcp 804 status
100011 1 udp 804 rquotad
100011 2 udp 804 rquotad
100011 1 tcp 807 rquotad
100011 2 tcp 807 rquotad
# exportfs -ra
Client side 10.10.10.20
# cd /sbin/
# portmap
# service portmap status
# rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100021 1 udp 61494 nlockmgr
100021 3 udp 61494 nlockmgr
100021 4 udp 61494 nlockmgr
100021 1 tcp 53241 nlockmgr
100021 3 tcp 53241 nlockmgr
100021 4 tcp 53241 nlockmgr
# mount 10.10.10.10:/d01/backup /d01/backup