Etc/Sysconfig/Nfs - Red Hat ENTERPRISE LINUX 5 - DEPLOYMENT Deployment Manual

Hide thumbs Also See for ENTERPRISE LINUX 5 - DEPLOYMENT:
Table of Contents

Advertisement

Chapter 28. The sysconfig Directory
• HOSTNAME=<value>, where <value> should be the Fully Qualified Domain Name (FQDN), such
as hostname.expample.com, but can be whatever hostname is necessary.
• GATEWAY=<value>, where <value> is the IP address of the network's gateway.
• GATEWAYDEV=<value>, where <value> is the gateway device, such as eth0. Configure this
option if you have multiple interfaces on the same subnet, and require one of those interfaces to be
the preferred route to the default gateway.
• NISDOMAIN=<value>, where <value> is the NIS domain name.
• NOZEROCONF=<value>, where setting <value> to true disables the zeroconf route.
By default, the zeroconf route (169.254.0.0) is enabled when the system boots. For more
information about zeroconf, refer to http://www.zeroconf.org/.
Warning
Do not use custom initscripts to configure network settings. When performing a post-boot
network service restart, custom initscripts configuring network settings that are run outside
of the network init script lead to unpredictable results.

28.1.22. /etc/sysconfig/nfs

NFS requires portmap, which dynamically assigns ports for RPC services. This causes problems for
configuring firewall rules. To overcome this problem, use the /etc/sysconfig/nfs file to control
which ports the required RPC services run on.
The /etc/sysconfig/nfs may not exist by default on all systems. If it does not exist, create it and
add the following variables (alternatively, if the file exists, un-comment and change the default entries
as required):
MOUNTD_PORT=x
control which TCP and UDP port mountd (rpc.mountd) uses. Replace x with an unused port
number.
STATD_PORT=x
control which TCP and UDP port status (rpc.statd) uses. Replace x with an unused port number.
LOCKD_TCPPORT=x
control which TCP port nlockmgr (rpc.lockd) uses. Replace x with an unused port number.
LOCKD_UDPPORT=x
control which UDP port nlockmgr (rpc.lockd) uses. Replace x with an unused port number.
If NFS fails to start, check /var/log/messages. Normally, NFS will fail to start if you specify a port
number that is already in use. After editing /etc/sysconfig/nfs restart the NFS service by running
the service nfs restart command. Run the rpcinfo -p command to confirm the changes.
To configure a firewall to allow NFS:
1. Allow TCP and UDP port 2049 for NFS.
2. Allow TCP and UDP port 111 (portmap/sunrpc).
440

Advertisement

Table of Contents
loading

Table of Contents