HP-UX – Configure network services

HP-UX、Linux、Tru64 UNIX、NonStop、OpenVMS、Windows Server等,数据中心、虚拟化方案等

版主: xyevolve

版面规则
1. 本版是定位于惠普软件系统及解决方案的技术讨论区。
2. 本版鼓励发帖共同讨论技术问题,不鼓励站内信件私下交流,独知知不如众知知。
3. 本版允许转贴或引用他人的作品,但必须声明原作者信息。
4. 本版禁止发表出售、求购、或其他非技术讨论等帖子。
5. 本版禁止灌水,包括但不限于任何与所讨论主题无关的回复,无意义字符,直接复制其他回复等。
6. 本站附件禁止用于商业目的,请在下载后24小时内删除,本站不对其造成的结果负任何责任。
回复
admin
网站编辑
帖子: 767
注册时间: 2010年 12月 22日 04:06 星期三

HP-UX – Configure network services

帖子 admin » 2013年 8月 3日 23:14 星期六

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.

回复