Mouting NFS over TCP

From: Kevin P. Inscoe (KE3VIN) (kevin@inscoe.org)
Date: Thu May 30 2002 - 17:15:30 EDT


Ok that much I know:

# mount -o proto=tcp,port=2049 wsdb02:/cdrom /mnt
nfs mount: wsdb02:/cdrom: server not responding : RPC: Timed out
nfs mount: retrying: /mnt

Both machines Solaris 8 well patched.

Now here's the rub. The two machines have a Cisco CSS between them doing
NAT using only one IP. Because of this the box is incapable of passing
UDP. No problem sez I just use TCP instead. Yeah well here is the
problem:

On the server end I am seeing this:

root@wsdb02:/# snoop host css_nat
Using device /dev/hme (promiscuous mode)
     css_nat -> wsdb02 PORTMAP C GETPORT prog=100005 (MOUNT)
vers=3 proto=UDP
      wsdb02 -> css_nat PORTMAP R GETPORT port=35185
     css_nat -> wsdb02 MOUNT3 C Null
      wsdb02 -> css_nat MOUNT3 R Null
     css_nat -> wsdb02 MOUNT3 C Mount /cdrom
      wsdb02 -> css_nat MOUNT3 R Mount OK FH=0082 Auth=unix
     css_nat -> wsdb02 MOUNT3 C Mount /cdrom (retransmit)
      wsdb02 -> css_nat MOUNT3 R Mount OK FH=0082 Auth=unix

Now stop right there. WHY is it still using GETPORT via UDP on the first
call even though I specified a port and proto?

Well according to this:

http://docs.sun.com/ab2/coll.47.11/SYSADV3/@Ab2PageView/35549?Ab2Lang=C&Ab2Enc=iso-8859-1

"NFS Over TCP
The default transport protocol for the NFS protocol was changed to the
Transport Control Protocol (TCP) in the Solaris 2.5 release, which helps
performance on slow networks and wide area networks. TCP provides
congestion control and error recovery. NFS over TCP works with version 2
and version 3. Prior to 2.5, the default NFS protocol was User Datagram
Protocol (UDP)."

Sooo why is it still using UDP on the initial connect and how do I make
it not do that?

Remember I can't NAT any UDP packets at all.

TIA!

~kevin

-- 
Kevin P. Inscoe       KE3VIN      Geek and fixer of things
Deltona, FL 32738     Itinerary at http://inscoe.org/where
kevin [at] inscoe [dot] org  CSXT-ML     28.9492N 81.1955W
http://inscoe.org/kevin     A MP 755.4   FAX: 507-262-1277
"Business! Mankind was my business."        - Jacob Marley
"DEC diagnostics would run on a dead whale." - Mel Ferentz
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers


This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:24:24 EDT