Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate

Advertising

Mine
Friday, December 28th, 2007 at 9:47:33am UTC 

  1. Add the folloing to both boxes in the file /etc/networking/interfaces
  2.  
  3. BOX 1
  4. auto eth0:1
  5. iface eth0 inet static
  6. address 10.0.0.1
  7. netmask 255.255.255.0
  8.  
  9. BOX 2
  10. auto eth0:1
  11. iface eth0 inet static
  12. address 10.0.0.2
  13. netmask 255.255.255.0
  14.  
  15. then restart networking with:
  16. sudo /etc/init.d/networking restat
  17.  
  18. then use the 10.0.0.IPs to use NFS
  19.  
  20. so on the NFS side you want to share from:
  21. FILE /etc/exports
  22. /pat/to/shared/dir   10.0.0.2(rw,no_root_squash,async,subtree_check)
  23. FILE /etc/hosts.allow
  24. portmap: 10.0.0.2
  25. lockd: 10.0.0.2
  26. rquotad: 10.0.0.2
  27. mountd: 10.0.0.2
  28. statd: 10.0.0.2
  29.  
  30. then restart the nfs-kernel-server using
  31. sudo /etc/init.d/nfs-kernel-server
  32.  
  33. then on your box you want to mount the shared drive to:
  34. FILE /etc/fstab
  35. 10.0.0.1://path/to/shared/dir /path/to/mount/to nfs
  36.  
  37. then mount it with:
  38. sudo mount -a

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will not expire by default. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right