How do I determine from a Linux client whether an NFS mount is over UDP or TCP?

Discussion in 'Linux Networking' started by enjoylife_95135, Jun 23, 2005.

  1. On Solaris its nfsstat -m, but I can't find a similar way to do so in
    Linux, other than using ethereal. Which I don't want my users to do..

    Any help is appreciated.

    Thanks!
     
    enjoylife_95135, Jun 23, 2005
    #1
    1. Advertisements

  2. In comp.os.linux.networking :
    You can see this from the output of 'mount', if 'tcp' isn't
    displayed you are using 'udp' which is the default.
     
    Michael Heiming, Jun 23, 2005
    #2
    1. Advertisements

  3. enjoylife_95135

    James Knott Guest

    I don't see "tcp" on a mount between two SuSE 9.3 systems. I thought TCP
    was supposed to be default now. Also, ethereal shows TCP is being used for
    NFS.

    Can you provide an example?
     
    James Knott, Jun 23, 2005
    #3
  4. From taking a closer look, a few distro seem to have just changed
    the default protocol for nfs. So you can't be sure anymore thx to
    those punks. But looking at 'cat /proc/mounts' seems to always
    display the protocol used no matter which one is used unlike
    'mount' which doesn't always show the default (sadly).
     
    Michael Heiming, Jun 23, 2005
    #4

  5. Mount works for me...


    spinner ~ # mount

    nfsd on /proc/fs/nfs type nfsd (rw)

    rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)

    mutley:/ on /mnt/mroot type nfs
    (rw,noatime,rsize=65536,wsize=65536,retry=2,hard,intr,addr=192.168.0.1,tcp)

    sid:/ on /mnt/sid type nfs
    (rw,noatime,rsize=65536,wsize=65536,retry=2,hard,intr,addr=192.168.0.11,tcp)

    spinner ~ #

    --

    ******************************************************************************
    Registered Linux User Number 185956
    FSF Associate Member number 2340 since 05/20/2004
    Join me in chat at #linux-users on irc.freenode.net
    Buy an Xbox for $149.00, run linux on it and Microsoft loses $150.00!
    11:11am up 15 days, 19:44, 1 user, load average: 0.12, 0.07, 0.02
     
    Jerry McBride, Jun 26, 2005
    #5
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.