|
此文章由 夜游神 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 夜游神 所有!转贴必须注明作者、出处和本声明,并保持内容完整
哥们这个支持的,SRX系列也是跑JNOS的
Configuring the Router to Operate in Server Mode
In server mode, the router acts as an NTP server for clients when the clients are configured appropriately. The only prerequisite for “ server mode” is that the router must be receiving time from another NTP peer or server. No other configuration is necessary on the router.
To configure the local router to operate as an NTP server, include the following statements at the [edit system ntp] hierarchy level:
[edit system ntp]
authentication-key key-number type type value password;
server address <key key-number> <version value> <prefer>;
trusted-key [ key-numbers ];
Specify the address of the system acting as the time server. You must specify an address, not a hostname.
To include an authentication key in all messages sent to the time server, include the key option. The key corresponds to the key number you specify in the authentication-key statement, as described in Configuring NTP Authentication Keys.
By default, the router sends NTP version 4 packets to the time server. To set the NTP version level to 1,or 2, or 3, include the version option.
If you configure more than one time server, you can mark one server preferred by including the prefer option.
For information about how to configure trusted keys, see Configuring NTP Authentication Keys. For information about how to configure the router to operate in client mode, see Configuring the Router to Operate in Client Mode.
Example: Configuring Server Mode
Configure the router to operate in server mode:
[edit system ntp]
authentication-key 1 type md5 value "$9$txERuBEreWx-wtuLNdboaUjH.T3AtOESe";
server 172.17.27.46 prefer;
trusted-key 1;
-------------------------------------------------------------------------------- |
|