> hi
>
> i want to setup a NTP server but i did not fine the
> /etc/init.d/xntpd
Maybe you didn't install ntp when you loaded Solaris. (You don't mention what version of Solaris you're working with.)
>
> plus how to make a ntp.conf file in the /etc/inet
If you install ntp, you will find an example ntp.conf file in that directory.
well the ntp is online now
at machine1 i did copy the ntp.server to ntp.conf but i don't know what to edit
here is the ntp.conf:
server 127.127.1.0
#fudge 127.127.1.0 stratum 13
#ip of the other machine
server192.168.0.61
broadcast 224.0.1.1 ttl 4
enable auth monitor
driftfile /var/ntp/ntp.drift
statsdir /var/ntp/ntpstats/
filegen peerstats file peerstats type day enable
filegen loopstats file loopstats type day enable
filegen clockstats file clockstats type day enable
#keys /etc/inet/ntp.keys
trustedkey 0
requestkey 0
controlkey 0
and at the machine2 i did copy the ntp.client to ntp.conf
i didn't find any manual about ntp on solaris 10 because i think it differ from solaris 9 to solaris 10
Thanks
If the machine is not a public-facing system (e.g. at home behind firewall), you can easily simplify your ntp configuration.
Here's what I use at home:
: titan; cat /etc/inet/ntp.conf
server 192.5.41.209
server 192.5.41.40
server 192.5.41.41
server 207.153.221.89
server 64.95.101.100
server 64.95.101.101
peer 192.168.1.5
peer 192.168.1.7
peer 192.168.1.153
peer 192.168.1.47
peer 192.168.1.82
driftfile /var/ntp/ntp.drift
broadcast 224.0.1.1
====
You can make one "universal" ntp.conf and copy it around. ntpd is smart enough to ignore "peer" entries that resolve to itself.