close

NTP: Network Time Protocol

config file: /etc/ntp.conf

config tool: #system-config-date


#vi /etc/ntp.conf

---略---
# Permit all access over the loopback interface. This could
# be tightened as well, but to do so would effect some of
# the administrative functions.
restrict 127.0.0.1

#指定 interface
restrict 192.168.0.254

# Hosts on local network are less restricted.
#restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap

#允許intranet使用ntp server
restrict 192.168.0.0 mask 255.255.255.0 nomodify notrap

# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).

#外部ntp server
server clock.stdtime.gov.tw
---略---

#service ntpd start

#chkconfig ntpd on


arrow
arrow
    全站熱搜
    創作者介紹
    創作者 aquatower 的頭像
    aquatower

    2006隨手札記

    aquatower 發表在 痞客邦 留言(0) 人氣()