I am completely new to Linux and I am trying to complete a networking
project for university.
If I am using DHCP on my network (to assign ip addresses , of course) and I
want different NFS servers in different departments to be accessible to only
certain hosts in their departments - for example, one nfs server in the
marketing department is accessible by only 24 hosts (of 72) in that
department; how do I specify those hosts?
From reading the Linux Network Administrators Guide I get the following file
contents (slightly rewritten for my use)
SERVER
---------
/etc/exports
/home m1(rw) m2(rw) m3(rw)
# the home directory is mountable to the hosts m1.market.bogus.ca,
m2.market.bogus.ca, and m3..market.bogus.ca
/usr/bin m*.marketing.bogus.ca
# the /usr/bin directory is mountable to any host in market.bogus.ca
starting with the letter "m" - like m1.market.bogus.ca
/usr/test 192.168.1.105 (ro)
#the /usr/test directory is mountable to the hosts with ip address
192.168.1.105
----------
/etrc/hosts.allow and /etc/hosts.deny woudl be set up to allow only my
network (192.168.1.0) and deny ALL.
-----------
CLIENT
--------
cat /etc/fstab
nfs1.market.bogus.ca:/home /mnt nfs rw,hard,intr 0 0
------
in a start-up script or at a prompt , I add...
mount nfs.market.bogus.ca: /home
--------
Use of a specific ip is straight forward, but that ip address is only useful
if it is a static address - my goal is dhcp assigned addresses for my
workstations/hosts.
I assume that I specify them by host name. How is that set on a host name?
How are domain names set and are they dns domains or nis domains? How is
the other domain name set? How is a hierarchy of domain names set
(bogus.ca, market.bogus.ca, engineering.bogus.ca, and so on) Does the NFS
server need a domain name set to be identical to the domain name of its
clients (like nis)?
Enlightenment is much appreciated. :o)