IOS 设备 NTP 配置示例
- 2010年05月25日
- 由flyxj
在日志和调试时加上时间戳
Router(config)#service timestamps log datetime localtime
Router(config)#service timestamps debug datetime localtime
设置时间
Router#clock set 15:30:00 January 1 2009
outer#calendar set 15:30:00 January 1 2009
Clock 和 Calendar 的区别:
Most Cisco routers have two clocks:a battery-powered hardware clock (referenced in CLI commands as the “calendar”) and a software clock (referenced in CLI commands as the “clock”). These two clocks are managed separately.
The primary source for time data on your system is the software clock. This clock runs from the moment the system starts up and keeps track of the current date and time. The software clock can be set from a number of sources and in turn can be used to distribute the current time through various mechanisms to other systems. When a router with a hardware clock is initialized or rebooted, the software clock is initially set based on the time in the hardware clock.