Find the answer to your Linux question:
Results 1 to 3 of 3
Hello, I have a small network at home. Two Linux PC's are connected through a router (little box with leds) that dynamically allocates IP's to the computers on the network ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User Daan's Avatar
    Join Date
    Aug 2005
    Location
    The Netherlands
    Posts
    323

    Question NFS and dynamic IP's


    Hello,

    I have a small network at home. Two Linux PC's are connected through a router (little box with leds) that dynamically allocates IP's to the computers on the network and is connected to my cable modem. I would like to share files between the computers using NFS. I have read at aboutdebian.org that I would need to have a host file on each PC that tells which IP belongs to which host name. But the IP's are dynamic and may be different for the same host ate different times!

    How do I safely use NFS at my home network?

    Thanks,

    Daan

  2. #2
    Banned
    Join Date
    Jul 2004
    Posts
    947
    Is there no option on your router to make the ip's static within the network?
    Normally there is...

  3. #3
    Linux Newbie
    Join Date
    Nov 2003
    Location
    Maryland
    Posts
    105
    On the server machine you could set it so all IPs on your LAN can connect in the /etc/exports file. Here is mine:


    Code:
    [root@fedoraserver nfs]# cat /etc/exports
    /nfs/share                     192.168.0.0/255.255.255.0(rw,sync,no_root_squash)
    /nfs/slp93                     192.168.0.0/255.255.255.0(ro,sync,no_root_squash)
    /nfs/fedora4                    192.168.0.0/255.255.255.0(ro)
    /nfs/fedora5                    192.168.0.0/255.255.255.0(ro)
    My local IPs are 192.168.0.xxx, so I set my server to allow everyone on 192.168.0.0 and my local subnet to connect. 192.168.0.0 acts like a variable.

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •