NFS help

brad.mugleston at comcast.net brad.mugleston at comcast.net
Sun Aug 28 02:39:00 UTC 2005


On Sat, 27 Aug 2005, inode0 wrote:

> On 8/27/05, brad.mugleston at comcast.net <brad.mugleston at comcast.net> wrote:
> > I don't follow what your saying - I'm trying to set up an NFS
> > system using DHPC - it sounds like your suggesting I use DHCP
> > (which I am) but how do I set up my /etc/fstab to mount the files
> > on different machines using hostnames with IP's that can change
> > under DHCP?
>
> Brad,
>
> I think you are misunderstanding me. I understood that you wanted to
> use DHCP for the machine you are using as an NFS server and I
> suggested having the DHCP server assign your NFS server a fixed
> address based on its MAC.
>
> In dhcp.conf you would have something like the following to do that ...
>
> host nfs-1 {
>   hardware ethernet XX:XX:XX:XX:XX:XX;
>   fixed-address YYY.YYY.YYY.YYY;
> }
>
> where XX:XX:XX:XX:XX:XX is the MAC address of your NFS server and
> YYY.YYY.YYY.YYY is the IP you want to always assign to it.
>
> You can then have your DNS server get updates from your DHCP server or
> you can just set up your DNS server to resolve the name and IP
> correctly.
>
> Either way, if you aren't running your own DNS and DHCP servers, then
> perhaps this isn't what you really want to do.
>
> I think you are going to just have problems if the IP of your NFS
> server keeps changing. I don't know how to configure /etc/fstab to
> accommodate that. It expects an IP or a name that resolves to the
> correct IP. But you can configure DHCP to not change the IP of your
> NFS server. That is what I was suggesting.
>
> John
>
OK, Now I understand what you were saying and yes I can do that
but - as I said before this is more of a learning exercise and I
was just wondering how it would be done using full DHCP assigned
IP addresses

Brad




More information about the Redhat-install-list mailing list