猝然临之而不惊,无故加之而不怒。
分类:
2012-01-12 13:28:00
| system clock | system calendar |
| system clock是基于软件的 | system calendar是基于硬件的calendar不受开关机和重起的影响 通常他只被设一次 |
| clock set hh:mm:ss date month year 时 :分: 秒 日 月 年 |
| clock update-calendar | Set the Calendar from the Clock |
| ntp update-calendar | Set the Calendar from NTP 用NTP周期性更新system calendar |
| clock read-calendar | 这语句使clock重读system calendar 通常是系统重起的时候,system clock读system calendar 进行clock inital. |
| clock calendar-valid | make the system calendar be authoritative Enables the router to act as a valid time source to which network peers can synchronize |
| ntp master | clock calendar-valid通常和ntp master一起使用 |
| clock timezone zone hours-offset [...(minutes-offset)] |
| 时区描述符, 时偏移, 分偏移 |
| clock timezone GMT 8 | 北京时间 |
| ntp server 10.1.1.1 | ntp master |
| int eth 0 ntp broadcast (send) ! ntp server 10.9.0.1 prefer | int eth 0 ntp broadcast client (receive) |
| ntp master ntp source loopback 0 |
| ntp client | ntp master |
| ntp server 7.7.3.3 source lo0 key 1 ntp authenticate ntp authentication-key 1 md5 cisco ntp trust-key 1 | ntp master 2 ntp source lo0 ntp authenticate ntp authentication-key 1 md5 cisco ntp trust-key 1 |