H3C交换机NTP配置_第1页
H3C交换机NTP配置_第2页
H3C交换机NTP配置_第3页
H3C交换机NTP配置_第4页
H3C交换机NTP配置_第5页
已阅读5页,还剩2页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、1.配置NTP服务器组网需求Route门设置本地时钟作为NTP主时钟,层数为2,Router2以Route门作为时间服务器,将其设为server模式,自己为client模式。组网图图1-1NTP典型配置的组网图配置步骤配置路由器Route门:#设置本地时钟作为NTP主时钟,层数为2。Router1ntp-servicerefclock-master2配置路由器Router2:#设置Route门为时间服务器。Router2ntp-serviceunicast-server1.0.1.11以上配置将Router2向Route门进行时间同步,同步前观察Router2的状态为:Router2displ

2、ayntp-servicestatusclockstatus:unsynchronized,stratum:16,referenceclockID:nonenominalfreq:99.8562Hz,actualfreq:99.8562Hz,precision:2*7offset:0.0000ms,reftime:00:00:00.000UTCJan11900(00000000.00000000)rootdelay:0.00ms,rootdisper:0.00ms,peerdisper:0.00ms同步后观测Router2的状态为:Router2displayntp-servicestatus

3、clockstatus:synchronized,stratum:3,referenceclockID:1.0.1.11nominalfreq:250.0000Hz,actualfreq:249.9992Hz,precision:2*19offset:198.7425ms,reftime:17:03:32.022UTCThuSep62001(BF422AE4.05AEA86C)rootdelay:27.47ms,rootdisper:208.39ms,peerdisper:9.63ms此时Router2已经与Router1同步,层数比Router1大1,为3。观察Router2的session

4、s情况,Router2与Route门建立了连接。Router2displayntp-servicesessionssourcerefidstnowpollreachdelayoffsetdis*12345127.127.7.1LOCAL(0)316437726.1199.539.7note:1source(master),2source(peer),3selected,4candidate,5configured2.配置NTP对等体举例组网需求Router3设置本地时钟作为NTP主时钟,层数为2,Router4以Router3作为时间服务器,将其设为server模式,自己为client模式。同

5、时,Router5将Router4设为对等体。组网图如图1-1所示。配置步骤配置路由器Router3:#设置本地时钟作为NTP主时钟,层数为2。Router3ntp-servicerefclock-master2配置路由器Router4:#设置Router3为时间服务器,同步后层数为3。Router4ntp-serviceunicast-server3.0.1.31配置路由器Router5:(Router4已经向Router3同步后)#设置本地时钟作为ntp主时钟,层数为1。Router5ntp-servicerefclock-master1#本地同步后,设置Router4位对等体。Route

6、r5ntp-serviceunicast-peer3.0.1.32以上配置将Router4和Router5配置为对等体,Router5处于主动对等体模式,Router4处于被动对等体模式,由于Router5的层数为1,而Router4的层数为3,所以Router4向Router5同步。同步后观测Router4的状态为:Router4displayntp-servicestatusclockstatus:synchronized,stratum:2,referenceclockID:3.0.1.33nominalfreq:250.0000Hz,actualfreq:249.9992Hz,prec

7、ision:2*19offset:198.7425ms,reftime:17:03:32.022UTCThuSep62001(BF422AE4.05AEA86C)rootdelay:27.47ms,rootdisper:208.39ms,peerdisper:9.63ms此时Router4已经与Router5同步,层数比Router5大1,为2。观察Router4的sessions情况,Router4与Router5建立了连接。Quidwa4displayntp-servicesessionssourcerefidstnowpollreachdelayoffsetdis*12345127.12

8、7.7.1LOCAL(0)316437726.1199.539.7note:1source(master),2source(peer),3selected,4candidate,5configured3.配置NTP广播模式组网需求Router3设置本地时钟作为NTP主时钟,层数为2,并从接口Ethernet0向外发送广播消息包,设置Router4和Route门分别从各自的接口Ethernet0监听广播消息。组网图如图1-1所示。配置步骤配置路由器Router3:#设置本地时钟作为NTP主时钟,层数为2。Router3ntp-servicerefclock-master2进入接口Ethernet

9、0视图。Router3interfaceEthernet0设置为广播服务器。Router3-Ethernet0ntp-servicebroadcast-server配置路由器Router4:进入接口Ethernet0视图。Router4interfaceEthernet0Router4-Ethernet0ntp-servicebroadcast-client配置路由器Router1:#进入接口Ethernet0视图。Router1interfaceEthernet0Router1-Ethernet0ntp-servicebroadcast-client以上配置将Router4和Router1配

10、置为从接口Ethernet0监听广播消息,而Router3从接口Ethernet0发送广播消息包,由于Router1与Router3不在相同的网段,所以接收不到Router3发出的广播包,而Router4接收到Router3发出的广播包后与其同步。同步后观测Router4的状态为:Router4displayntp-servicestatusclockstatus:synchronized,stratum:3,referenceclockID:3.0.1.31nominalfreq:250.0000Hz,actualfreq:249.9992Hz,precision:2*19offset:19

11、8.7425ms,reftime:17:03:32.022UTCThuSep62001(BF422AE4.05AEA86C)rootdelay:27.47ms,rootdisper:208.39ms,peerdisper:9.63ms此时Router4已经与Router3同步,层数比Router3大1,为3。观察Router4的sessions情况,Router4与Router3建立了连接。Router4displayntp-servicesessionssourcerefidstnowpollreachdelayoffsetdis*12345127.127.7.1LOCAL(0)316437

12、726.1199.539.7note:1source(master),2source(peer),3selected,4candidate,5configured4.配置NTP组播模式组网需求Router3设置本地时钟作为NTP主时钟,层数为2,并从接口Ethernet0向外发送组播消息包,设置Router4和Route门分别从各自的接口Ethernet0监听组播消息。组网图如图1-1所示。配置步骤配置路由器Router3:#设置本地时钟作为NTP主时钟,层数为2。Router3ntp-servicerefclock-master2#进入接口Ethernet0的视图。Router3interf

13、aceEthernet0#设置为组播服务器。Router3-Ethernet0ntp-servicemulticast-server配置路由器Router4:进入接口Ethernet0的视图。Router4interfaceEthernet0设置为组播客户模式。Router4-Ethernet0ntp-servicemulticast-client配置路由器Router1:进入接口Ethernet0的视图。Router1interfaceEthernet0设置为组播客户模式。Router1-Ethernet0ntp-servicemulticast-client以上配置将Router4和Rou

14、te门配置为从接口Ethernet0监听组播消息,而Router3从接口Ethernet0发送组播消息包,由于Route门与Router3不在相同的网段,所以接口不到Router3发出的组播包,而Router4接收到Router3发出的组播包后与其同步。同步后观测Router4的状态为:Router4displayntp-servicestatusclockstatus:synchronized,stratum:3,referenceclockID:3.0.1.31nominalfreq:250.0000Hz,actualfreq:249.9992Hz,precision:2*19offset

15、:198.7425ms,reftime:17:03:32.022UTCThuSep62001(BF422AE4.05AEA86C)rootdelay:27.47ms,rootdisper:208.39ms,peerdisper:9.63ms此时Router4已经与Router3同步,层数比Router3大1,为3。观察Router4的sessions情,Router4与Router3建立了连接。Router4displayntp-servicesessionssourcerefidstnowpollreachdelayoffsetdis*12345127.127.7.1LOCAL(0)3164

16、37726.1199.539.7note:1source(master),2source(peer),3selected,4candidate,5configured5.配置带身份验证的NTP服务器模式组网需求Router1设置本地时钟作为NTP主时钟,层数为2,Router2以Router1作为时间服务器,将其设为server模式,自己为client模式,同时加入身份验证。组网图如图1-1所示。配置步骤配置路由器Route门:#设置本地时钟作为NTP主时钟,层数为2。Router1ntp-servicerefclcok-master2配置路由器Router2:设置Router1为时间服务器。

17、Router2ntp-serviceunicast-server1.0.1.11启动身份验证。Router2ntp-serviceauthenticationenable设置密钥。Router2ntp-serviceauthentication-keyid42authentication-modemd5aNiceKey指定密钥为可信密钥。Router2ntp-servicereliableauthentication-keyid42以上配置将Router2向Route门进行时间同步,由于Route门没有启动身份验证,所以Router2还是无法向Route门同步。现在在Route门增加以下配置:启动身份验证。Router1ntp-serviceauthenticationenable设置密钥。Router1ntp-serviceauthentication-keyid42authentication-modemd5aNiceKey指定密钥为可信密钥。Router1ntp-servicereliableauthentication-keyid42此时Router2可以向Route门同步,同步后观测Router2的状态为:Router2displayntp-servicestatuscl

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论