分页: 1 / 1

HP-UX – Configure network services

发表于 : 2013年 8月 3日 23:14 星期六
admin
1. Add additional hosts to the /etc/hosts file as required.

2. Verify the static routes in /etc/rc.config.d/netconf.

NOTE: If necessary add other required routes. There is detailed information in the /etc/rc.config.d/netconf file for how to specify the routes.

3. Add the primary and secondary DNS servers to /etc/resolv.conf.

domain corp.abc.com
search xxx.abc.com (where xxx.abc.com is the DNS domain name)
nameserver x.x.x.x # Primary DNS Server xxx
nameserver x.x.x.x. # Secondary DNS Server xxx

4. Configure the /etc/nsswitch file.
Unless NIS is being used, the hosts: line should look like:
hosts: files [NOTFOUND=continue UNAVAIL=continue] dns [NOTFOUND=return UNAVAIL=continue TRYAGAIN=continue] files [NOTFOUND=return UNAVAIL=continue TRYAGAIN=return]
5. Set the local time zone per your requirements as follows:

代码: 全选

# /sbin/set_parms timezone
NOTE: The time zone change will not go into effect until the next system reboot.

6. Edit the file /etc/ntp.conf to define Network Time Protocol (NTP) servers for time synchronization.
An example configuration follows:
server ntp1.abc.com prefer
server ntp2.abc.com
server ntp3.abc.com
driftfile /etc/ntp.drift
NOTE: See the "Configuring NTP" section in the "HP-UX Internet Services Administrator’s Guide" for more in depth information regarding NTP configuration.

7. Edit the /etc/rc.config.d/netdaemons file to enable the NTP client service.
Change the following line:
export XNTPD=0
to:
export XNTPD=1
8. Start the NTP client service.

代码: 全选

# /sbin/init.d/xntpd start
9. Configure outgoing mail as follows:
Edit the /etc/rc.config.d/mailservs file to ensure the sendmail server does not start on bootup.
Change the following line:
SENDMAIL_SERVER=1
to:
SENDMAIL_SERVER=0
Stop the sendmail service (daemon).

代码: 全选

# /sbin/init.d/sendmail stop
Add, edit, or confirm such that the following lines are in the sendmail.cf file:

Dj$w.elabs.abc.com
DSforwarder.abc.com

NOTE:The Dj parameter is only necessary if sendmail cannot determine your fully qualified domain name. Also, the values supplied above are examples.