| 场景 | 内网时间源安全加固 |
|---|---|
| 适用 | 全部设备 |
| 命令族 | ntp-service authentication-keyid / ntp authentication-key / ntp-service authentication-keyid |
华为 VRP
华为 VRP
[Huawei] ntp-service authentication enable
[Huawei] ntp-service authentication-keyid 1 authentication-mode md5 cipher Ntp@12345
[Huawei] ntp-service reliable authentication-keyid 1
[Huawei] ntp-service unicast-server 10.10.0.5 authentication-keyid 1思科 IOS
思科 IOS
SW-CORE-01(config)# ntp authentication-key 1 md5 Ntp@12345
SW-CORE-01(config)# ntp authenticate
SW-CORE-01(config)# ntp trusted-key 1
SW-CORE-01(config)# ntp server 10.10.0.5 key 1H3C Comware
H3C Comware
[H3C] ntp-service authentication enable
[H3C] ntp-service authentication-keyid 1 authentication-mode md5 cipher Ntp@12345
[H3C] ntp-service reliable authentication-keyid 1
[H3C] ntp-service unicast-server 10.10.0.5 authentication-keyid 1华为/H3C 语法几乎一致(authentication-keyid + reliable + 引用 keyid);思科是 ntp authentication-key + ntp authenticate + ntp trusted-key 三步,服务器命令再挂 key 号。