Configuring NTP on the Solaris 9 OS
Mohammed Tanvir, October 2007
This tech tip provides a procedure for configuring the Network Time Protocol (NTP) on the Solaris 9 OS.
A. Configuring the NTP Server
1. Become superuser.
2. Create the ntp.conf
file:
# cp /etc/inet/ntp.server ntp.conf
3. Update the ntp.conf
file if you need to add more privileges for the NTP server:
# vi /etc/inet/ntp.conf
restrict x.x.x.x mask 255.255.255.0 notrust nomodify notrap
restrict x.x.x.x noquery nomodify notrap
server x.x.x.x key 2
enable auth
driftfile /var/ntp/drift //Add drift file if necessary//
keys /etc/inet/ntp.keys
trustedkey 1 2
:wq!
4. Change the ownership of the ntp.conf
file:
# chown root:root /etc/inet/ntp.conf
# chmod 600 /etc/inet/ntp.conf
5. Create the drift file, which is a file that contains the amount of clock error computed by the NTP daemon:
# touch /var/ntp/drift
# chown root:root /var/ntp/drift
# chmod 600 /var/ntp/drift
6. Set up the key file, which contains a list of keys and associated key IDs the server knows about:
# vi /etc/inet/ntp.keys
1 M keypass1 //Use the Tab key for space//
2 M keypass2 //Use the Tab key for space//
:wq!
# chown root:root /etc/inet/ntp.keys
# chmod 600 /etc/inet/ntp.keys
7. Start the NTP daemon:
# /etc/init.d/xntpd start
B. Configuring the NTP Client
1. Become superuser.
2. Create an ntp.conf
file:
# vi /etc/inet/ntp.conf //Or you can copy the ntp.client file//
restrict x.x.x.x noquery nomodify notrap
server x.x.x.x key 1
enable auth
driftfile /var/ntp/drift
keys /etc/inet/ntp.keys
trustedkey 1
3. Change the ownership of the file:
# chown root:root /etc/inet/ntp.conf
# chmod 600 /etc/inet/ntp.conf
4. Create the drift file:
# touch /var/ntp/drift
# chown root:root /var/ntp/drift
# chmod 600 /var/ntp/drift
5. Set up the key file:
# vi /etc/inet/ntp.keys
1 M keypass1 //Use the Tab key for space//
:wq!
# chown root:root /etc/inet/ntp.keys
# chmod 600 /etc/inet/ntp.keys
6. Start the NTP daemon:
# /etc/init.d/xntpd start[출처] Configuring NTP on the Solaris 9 OS|작성자 재석
'9. 도서관 > __다. UNIX' 카테고리의 다른 글
[Solaris_Basic] recommand_patch install (0) | 2008.07.01 |
---|---|
[Solaris_Basic] cd-rom unmount (0) | 2008.06.30 |
[Solaris] sed (0) | 2008.06.26 |
[Solaris] OpenSSL (0) | 2008.06.26 |
[Solaris_Basic] gcc와 make 강좌 (0) | 2008.06.26 |
댓글