Debian – nfs daemon doesn’t listen 2049 port

debiannfs4rpc

I have some problem with nfs. Looks like its doesn't listen 2049 port on client.
Both client and server has Debian linux.

serv$ rpcinfo -p
    program vers proto   port
    100000    2   tcp    111  portmapper
    100000    2   udp    111  portmapper
    100024    1   udp  59336  status
    100024    1   tcp  51481  status
    100003    2   udp   2049  nfs
    100003    3   udp   2049  nfs
    100003    4   udp   2049  nfs
    100021    1   udp  58328  nlockmgr
    100021    3   udp  58328  nlockmgr
    100021    4   udp  58328  nlockmgr
    100003    2   tcp   2049  nfs
    100003    3   tcp   2049  nfs
    100003    4   tcp   2049  nfs
    100021    1   tcp  58936  nlockmgr
    100021    3   tcp  58936  nlockmgr
    100021    4   tcp  58936  nlockmgr
    100005    1   udp  52660  mountd
    100005    1   tcp  44121  mountd
    100005    2   udp  52660  mountd
    100005    2   tcp  44121  mountd
    100005    3   udp  52660  mountd
    100005    3   tcp  44121  mountd

But there is no 2049 port on client:

client$ rpcinfo -p
    program vers proto   port
    100000    2   tcp    111  portmapper
    100000    2   udp    111  portmapper
    100024    1   udp  36256  status
    100024    1   tcp  55654  status

I checked nfs-common and it said "everything is ok":

client$  sudo /etc/init.d/nfs-common status
    all daemons running

Could you help me, please?

Best Answer

This is perfectly normal. It is not supposed to listen on port 2049 on the client. As long as the NFS server is listening on port 2049, the client will pick a high port number to connect to the server on port 2049. Simply try to export a directory on the server, and try to mount it on the client. There is no need for the client to listen on port 2049.