You must enable NFS/TCP on HP-UX 11.0 for both client and server. TCP is the default transport mode on HP-UX 11.11 and
therefore you do not have to enable NFS/TCP on HP-UX 11.11.
Use the following steps to enable NFS/TCP on HP-UX 11.0:
1. Run the configuration command /usr/sbin/setoncenv NFS_TCP 1
2. Stop the NFS client with /sbin/init.d/nfs.client stop
3. Stop the NFS server with /sbin/init.d/nfs.server stop
4. Start the NFS server with /sbin/init.d/nfs.server start
5. Start the NFS client with /sbin/init.d/nfs.client start
From the NFS client, use the mount -o proto=tcp command to establish a TCP only connection. The mount fails if TCP is not
available on the NFS server.
From the NFS client, use the mount -o proto=udp to command to establish a UDP only connection. The mount fails if UDP is not available on the NFS server.
To verify you are monitoring NFS/TCP services, run nfsstat -m. A return of proto=tcp means you are monitoring NFS/TCP
services. A return of proto=udp means you are monitoring NFS/UDP services.
Use the following steps to disable NFS/TCP functionality on HP-UX 11.0:
1. Enter /usr/sbin/setoncenv NFS_TCP 0 at the command line to sets the NFS_TCP variable in the /etc/rc.config.d/nfsconf to 0.
2. Stop the NFS client with /sbin/init.d/nfs.client stop
3. Stop the NFS server with /sbin/init.d/nfs.server stop
4. Start the NFS server with /sbin/init.d/nfs.server start
5. Start the NFS client with /sbin/init.d/nfs.client start
After completing the preceding procedure, NFS will establish only UDP connections on HP-UX 11.0.
来源:
阅读(3347) | 评论(0) | 转发(0) |