I noticed on its router status page current time was always blank.I had enabled its built-in NTP client in page Setup->Basic setup->Time settings after entering the correct time zone and the IP address of the NTP server and thought this would update the system time correctly. But it didn't. I then logged into the router by SSH/telnet with the same admin user of the web interface and did the following checks and/or fixes.
cat /etc/cron.d/check_schedules
30 19 * * * root /sbin/rebootps | grep cron
1007 root 976 S cron
- Typed the date command. To my surprise, it shows a date in year 1970. I then manually set the date and time by
date 121122142009
(date MMDDhhmmYYYY). Although it shows the resulting time as UTC, it's actually the right time for my time zone and appeared as current time on the router status page - Ping the ntp server IP. I got no response. I found I had forgot to set the default gateway, so I set the right gateway IP at page Setup->Basic setup->Network setup and ping the ntp server again. Now there comes reponse.
1 comment:
Post a Comment