Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
My /etc/exports is :
/export/rootfs/target *(rw,no_root_squash,async)
So do I add this in my /etc/fstab :
/export/rootfs/target / nfs soft,tcp 0 0
Am I correct?? I need to change my nfs from udp to tcp. Is this the correct method? Do I have to restart any services after changing my fstab?
This looks correct. Just to make sure: If you made these changes while NFS was running and connections where set up, you need to re-mount the NFS partitions you changed.
Quote:
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100003 2 tcp 2049 nfs <- How do I get my nfs to be set as tcp??
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
I don't understand the question: The bottom three are already tcp, the top 3 are udp. Or did you manually edit this output?
Use netstat (netstat -a -n | grep 2049)to check connections:
Output Server side:
Code:
If NFS is not running:
<no output is shown>
If NFS is running, but no connections are made from the outside:
tcp 0 0 0.0.0.0:2049 0.0.0.0:* LISTEN
udp 0 0 0.0.0.0:2049 0.0.0.0:*
If NFS is running and there is one tcp connections from the outside:
tcp 0 0 0.0.0.0:2049 0.0.0.0:* LISTEN
tcp 0 0 1.2.100.12:2049 1.2.100.10:798 ESTABLISHED
udp 0 0 0.0.0.0:2049 0.0.0.0:*
Output client side:
Code:
No connections:
<no output shown>
1 tcp connection to NFS server:
tcp 0 0 1.2.100.10:798 1.2.100.12:2049 ESTABLISHED
To (un)mount all NFS connections (client side) you can do this:
Mount: mount -t nfs -a
Unmount: umount -t nfs -a
If you cannot get it to work, please post the following information:
For the making of my Linux PC kernel, do I have to activate the following:
- File systems -> Network File Systems -> NFS file system support [y] ?
-> Provide NFSv3 client support [y] ?
-> NFS Server support [y] ?
-> Provide NFSv3 server support [y] ?
Can someone advise me on the make xconfig of /usr/src/linux-2.4.20-8 in order to my nfs set to tcp?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.