[Sussex] Setting up a simple home network

John Crowhurst fyremoon at fyremoon.net
Sat Apr 30 11:23:57 UTC 2005


On Sat, April 30, 2005 9:39, Steve Dobson said:
> Hi Captian
> If you see an entry then try this (on machine-name-1):
> ifconfig eth0 192.168.0.1 netmask 255.255.0.0 broadcast 192.168.255.255
>
> and this (on machine-name-1):
> ifconfig eth0 192.168.0.2 netmask 255.255.0.0 broadcast 192.168.255.255

Edit /etc/rc.d/rc.inet1 on Machine 1 to read:

IPADDR="192.168.0.1"
NETMASK="255.255.0.0"
GATEWAY="192.168.0.2"

And on Machine 2:

IPADDR="192.168.0.2"
NETMASK="255.255.0.0"
GATEWAY="192.168.0.1"

Then you can type:

/etc/rc.d/rc.inet1

Which does all the ifconfig stuff for you on every startup.

If your computers are not connected to the internet, then they won't need
anything setup in resolv.conf, as this is for defining where the computer
should look for DNS.

You need to edit /etc/rc.d/rc.inet2 to get NFS working, as the services
are commented out by default, remove the # from the beginning of these
lines to start NFS:

#if [ -x /sbin/rpc.portmap ]; then
#  echo "Starting RPC portmapper:  /sbin/rpc.portmap"
#  /sbin/rpc.portmap
#fi

#if [ -x /etc/rc.d/rc.nfsd ]; then
#  /etc/rc.d/rc.nfsd start
#fi

Also uncomment the following if you are going to mount partitions via NFS:

#echo "Mounting remote (NFS) file systems:  /sbin/mount -a -t nfs"
#/sbin/mount -a -t nfs           # This may be our /usr runtime!
#/sbin/mount -v -t nfs

You will need to add the appropriate entries in /etc/fstab to mount NFS
partitions.

--
John




More information about the Sussex mailing list