S2610的web界面有个“设备——日期和时间——网络时间”,这里如何设置才能生效?从而自动获取正确的时间。
或者命令行模式可否设置实现?
(0)
V7 配置NTP
NTP服务器配置:
1---# 设置SwitchA时区和本地时钟
[SwitchA]clock timezone beijing add 8:00:00 //配置本地时区名称为beijing,比UTC标准时间增加8小时(北京在东八区,需要加8小时)
[SwitchA]clock protocol none //配置获取UTC时间的方式为通过命令行配置
<SwitchA>clock datetime 12:00:00 2018/11/26 //配置设备的系统时间为2018年11月26日12时0分0秒
# 查看SwitchA本地时钟是否已修改成功。
<SwitchA>dis clock
2----# 设置SwitchA为NTP服务器。
[SwitchA]ntp-service enable //开启NTP服务
[SwitchA]ntp-service refclock-master 2 //设置本地设备时钟作为参考时钟,层数为2
NTP客户端配置:
SwitchB]clock timezone beijing add 8:00:00 //配置本地时区名称为beijing,比UTC标准时间增加8小时(北京在东八区,需要加8小时)
[SwitchB]clock protocol ntp //通过NTP协议从网络中获取时间
[SwitchB]ntp-service enable //开启NTP服务
[SwitchB]ntp-service unicast-server 1.1.1.1 //配置设备的NTP服务器为1.1.1.1
------------------------------------------------------------------
V5 /V3 配置NTP 客户端
H3C] ntp-service unicast-server 1.1.1.1 //其中1.1.1.1.1为NTP SERVER服务器地址
-------------------------------------------------------------------
设置与NTP服务器之间获取时间间隔,单位:秒
ntp-service poll-interval
-------------------------------------------------------------------
查看NTP服务器配置
H3C] display ntp-service status
Clock status: synchronized
Clock stratum: 3
Reference clock ID: 1.1.1.1
Nominal frequency: 64.0000 Hz
Actual frequency: 64.0000 Hz
Clock precision: 2^7
Clock offset: 0.0000 ms
Root delay: 31.00 ms
Root dispersion: 1.05 ms
Peer dispersion: 7.81 ms
Reference time: 14:53:27.371 UTC Jan 19 2018 (C6D94F67.5EF9DB22)
# 查看客户端的NTP会话信息,可以看到客户端与服务端建立了连接。
[H3C] display ntp-service sessions
source reference stra reach poll now offset delay disper
**************************************************************************
[12345] 1.1.1.1 127.127.1.0 2 63 64 3 -75.5 31.0 16.5
note: 1 source(master),2 source(peer),3 selected,4 candidate,5 configured
Total associations : 1
(1)
版本: [H3C]dis version H3C Comware Platform Software Comware Software, Version 5.20.99, Release 1109 Copyright (c) 2004-2017 New H3C Technologies Co., Ltd. All rights reserved. H3C S2610 uptime is 0 week, 0 day, 0 hour, 10 minutes H3C S2610 128M bytes DRAM 32M bytes Flash Memory Config Register points to Flash Hardware Version is Ver.A Bootrom Version is 122 [SubSlot 0] 8FE+2GE Combo Hardware Version is Ver.A 但运行ntp-service enable时候如下报错,咋解决?谢谢 [H3C]ntp-service enable ^ % Unrecognized command found at '^' position.
版本: [H3C]dis version H3C Comware Platform Software Comware Software, Version 5.20.99, Release 1109 Copyright (c) 2004-2017 New H3C Technologies Co., Ltd. All rights reserved. H3C S2610 uptime is 0 week, 0 day, 0 hour, 10 minutes H3C S2610 128M bytes DRAM 32M bytes Flash Memory Config Register points to Flash Hardware Version is Ver.A Bootrom Version is 122 [SubSlot 0] 8FE+2GE Combo Hardware Version is Ver.A 但运行ntp-service enable时候如下报错,咋解决?谢谢 [H3C]ntp-service enable ^ % Unrecognized command found at '^' position.
版本:
[H3C]dis version
H3C Comware Platform Software
Comware Software, Version 5.20.99, Release 1109
Copyright (c) 2004-2017 New H3C Technologies Co., Ltd. All rights reserved.
H3C S2610 uptime is 0 week, 0 day, 0 hour, 10 minutes
H3C S2610
128M bytes DRAM
32M bytes Flash Memory
Config Register points to Flash
Hardware Version is Ver.A
Bootrom Version is 122
[SubSlot 0] 8FE+2GE Combo Hardware Version is Ver.A
但运行ntp-service enable时候如下报错,咋解决?谢谢
[H3C]ntp-service enable
^
% Unrecognized command found at '^' position.
(0)
H3C] ntp-service unicast-server 1.1.1.1 //其中1.1.1.1.1为NTP SERVER服务器地址
H3C] ntp-service unicast-server 1.1.1.1 //其中1.1.1.1.1为NTP SERVER服务器地址
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明