|
|
 |
|
|
| 1. catalyst交换机上如何配置ntp |
  |
|
 |
|
HP : 0 / 52
MP : 6 / 807
EXP : 9%
|
|
初涉江湖
 
成员等级: 3
发表总数: 19
金币总数: 37
所属组别: 普通成员
注册日期: 2003/09/29

|
想请教哪位dx,如何在cisco的catalyst交换机上配置ntp,使交换机保持正确的时间 |
 |
|
|
| 2. Re:catalyst交换机上如何配置ntp |
  |
|
 |
|
HP : 250 / 1254
MP : 1625 / 22003
EXP : 16%
|
|
迟则生变
           
成员等级: 51
发表总数: 4877
金币总数: 308
所属组别: 管理员
注册日期: 2003/01/9

|
时间同步协议(NTP) 时间同步协议将一组设备的系统时钟同步到一个统一的时钟源,从而为系统事件日志的记录和审核提供了有价值的参考信息。 IOS设备设置: ntp authentication-key 1 md5 999 ntp authenticate ntp trusted-key 1 ntp clock-period 17179784 //本命令是自动生成的!不要输入 ntp master 1 //仅服务器(10.10.10.1)需此命令 ntp server 10.10.10.1 key 1 //其它NTP 客户端需此命令
CatOS设备设置: Set ntp authenticate enable Set ntp client enable Set ntp authentication trust-key 1 md5 999 Set ntp server 10.10.10.1 key 1

 没有谁能像一座孤岛/在大海里独踞/每个人都像一块小小的泥土/连接成整个陆地/如果一块泥土被海水冲去/欧洲将缺其一隅/这如同一座山岬/也如同你的朋友和你自己/无论谁死了/都是自己的一部分在死去/因为我包含在人类这个概念里/因此我从不问丧钟为谁而鸣/它为我,也为你 No man is an Island, entire of itself; every man is a piece of the Continent, a part of the main; if a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a man or of thy friends or of thine own were; any man's death diminishes me, because I am involved in Mankind; And therefore never send to know for whom the bell tolls; It tolls for thee.
|
 |
|
|
| 3. Re: Re:catalyst交换机上如何配置ntp |
  |
|
 |
|
HP : 0 / 52
MP : 6 / 807
EXP : 9%
|
|
初涉江湖
 
成员等级: 3
发表总数: 19
金币总数: 37
所属组别: 普通成员
注册日期: 2003/09/29

|
不好意思,请问 1 时钟源是否可以是路由器时钟 2 catalyst2950交换机上没有 Set ntp authenticate enable Set ntp client enable Set ntp authentication trust-key 1 md5 999 Set ntp server 10.10.10.1 key 1 这几条命令 |
 |
|
|
| 4. Re:catalyst交换机上如何配置ntp |
  |
|
 |
|
HP : 250 / 1254
MP : 1625 / 22003
EXP : 16%
|
|
迟则生变
           
成员等级: 51
发表总数: 4877
金币总数: 308
所属组别: 管理员
注册日期: 2003/01/9

|
Q1-可以 Q2-2950按IOS的方法配:
ntp authentication-key 1 md5 999 ntp authenticate ntp trusted-key 1 ntp server 10.10.10.1 key 1

 没有谁能像一座孤岛/在大海里独踞/每个人都像一块小小的泥土/连接成整个陆地/如果一块泥土被海水冲去/欧洲将缺其一隅/这如同一座山岬/也如同你的朋友和你自己/无论谁死了/都是自己的一部分在死去/因为我包含在人类这个概念里/因此我从不问丧钟为谁而鸣/它为我,也为你 No man is an Island, entire of itself; every man is a piece of the Continent, a part of the main; if a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a man or of thy friends or of thine own were; any man's death diminishes me, because I am involved in Mankind; And therefore never send to know for whom the bell tolls; It tolls for thee.
|
 |
|
|
| 5. Re: Re:catalyst交换机上如何配置ntp |
  |
|
 |
|
HP : 0 / 52
MP : 6 / 807
EXP : 9%
|
|
初涉江湖
 
成员等级: 3
发表总数: 19
金币总数: 37
所属组别: 普通成员
注册日期: 2003/09/29

|
谢谢麦子。 10.10.10.1 是否是时钟源地址? 是否能给个例子 一台cisco7206作为时钟源,catalyst2950从7206取时钟 |
 |
|
|
| 6. Re:catalyst交换机上如何配置ntp |
  |
|
 |
|
HP : 250 / 1254
MP : 1625 / 22003
EXP : 16%
|
|
迟则生变
           
成员等级: 51
发表总数: 4877
金币总数: 308
所属组别: 管理员
注册日期: 2003/01/9

|
这就是NTP SERVER的配置,使用本身的时钟做clock source. ntp authentication-key 1 md5 999 ntp authenticate ntp trusted-key 1 ntp clock-period 17179784 //本命令是自动生成的!不要输入 ntp master 1 //仅服务器(10.10.10.1)需此命令

 没有谁能像一座孤岛/在大海里独踞/每个人都像一块小小的泥土/连接成整个陆地/如果一块泥土被海水冲去/欧洲将缺其一隅/这如同一座山岬/也如同你的朋友和你自己/无论谁死了/都是自己的一部分在死去/因为我包含在人类这个概念里/因此我从不问丧钟为谁而鸣/它为我,也为你 No man is an Island, entire of itself; every man is a piece of the Continent, a part of the main; if a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a man or of thy friends or of thine own were; any man's death diminishes me, because I am involved in Mankind; And therefore never send to know for whom the bell tolls; It tolls for thee.
|
 |
|
|
| 7. Re:catalyst交换机上如何配置ntp |
  |
|
 |
|
HP : 0 / 243
MP : 45 / 3882
EXP : 75%
|
|
喵。。。。
        
成员等级: 10
发表总数: 137
金币总数: 263
所属组别: 普通成员
注册日期: 2003/07/31

|
有没有PC上的,支持从串口取GPS时钟的NTP服务器软件? 最好是free的 |
 |
|
|
| 8. Re: Re:catalyst交换机上如何配置ntp |
  |
|
 |
|
HP : 0 / 52
MP : 6 / 807
EXP : 9%
|
|
初涉江湖
 
成员等级: 3
发表总数: 19
金币总数: 37
所属组别: 普通成员
注册日期: 2003/09/29

|
请问麦子 [QUOTE]ntp clock-period 17179784 //本命令是自动生成的!不要输入
router# router#conf t Enter configuration commands, one per line. End with CNTL/Z. router(config)#ntp authentication-key 1 md5 999 router(config)#ntp authenticate router(config)#ntp trusted-key 1 router(config)#ntp clock-period ? <0-4294967295> Clock period in 2^-32 seconds
router(config)#ntp clock-period
我的7206上怎么不是自动生成的? |
 |
|
|
| 9. Re:catalyst交换机上如何配置ntp |
  |
|
 |
|
HP : 250 / 1254
MP : 1625 / 22003
EXP : 16%
|
|
迟则生变
           
成员等级: 51
发表总数: 4877
金币总数: 308
所属组别: 管理员
注册日期: 2003/01/9

|
ntp master 1 打完这个命令就有了。

 没有谁能像一座孤岛/在大海里独踞/每个人都像一块小小的泥土/连接成整个陆地/如果一块泥土被海水冲去/欧洲将缺其一隅/这如同一座山岬/也如同你的朋友和你自己/无论谁死了/都是自己的一部分在死去/因为我包含在人类这个概念里/因此我从不问丧钟为谁而鸣/它为我,也为你 No man is an Island, entire of itself; every man is a piece of the Continent, a part of the main; if a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a man or of thy friends or of thine own were; any man's death diminishes me, because I am involved in Mankind; And therefore never send to know for whom the bell tolls; It tolls for thee.
|
 |
|
|
| 10. Re:catalyst交换机上如何配置ntp |
  |
|
 |
|
HP : 0 / 52
MP : 6 / 807
EXP : 9%
|
|
初涉江湖
 
成员等级: 3
发表总数: 19
金币总数: 37
所属组别: 普通成员
注册日期: 2003/09/29

|
router#sh ver Cisco Internetwork Operating System Software IOS 7200 Software (C7200-JS-M), Version 12.2(8)T4, RELEASE SOFTWARE (fc1) TAC Support: http://www.cisco.com/tac Copyright © 1986-2002 by cisco Systems, Inc. Compiled Sat 04-May-02 00:25 by ccai Image text-base: 0x60008940, data-base: 0x619B2000
ROM: System Bootstrap, Version 12.0(20000211:194150) [dperez-cosmos_e_ecc 106], DEVELOPMENT SOFTWARE BOOTLDR: 7200 Software (C7200-BOOT-M), Version 12.0(13)S, EARLY DEPLOYMENT RELEA SE SOFTWARE (fc1)
router1.linyi.sdboss.com uptime is 1 day, 18 hours, 55 minutes System returned to ROM by power-on System restarted at 19:30:31 UTC Sun Sep 28 2003 System image file is "sup-slot0:/c7200-js-mz.122-8.T4.bin"
cisco 7206VXR (NSE-1) processor (revision A) with 114688K/16384K bytes of memory . Processor board ID 25851521 R7000 CPU at 262Mhz, Implementation 39, Rev 2.1, 256KB L2, 2000KB L3 Cache 6 slot VXR midplane, Version 2.5
Last reset from power-on Channelized E1, Version 1.0. Bridging software. X.25 software, Version 3.0.0. SuperLAT software (copyright 1990 by Meridian Technology Corp). TN3270 Emulation software. Primary Rate ISDN software, Version 1.1. PXF processor tmc is running. 2 FastEthernet/IEEE 802.3 interface(s) 8 Serial network interface(s) 12 Channelized E1/PRI port(s) 125K bytes of non-volatile configuration memory.
47040K bytes of ATA PCMCIA card at slot 0 (Sector size 512 bytes). 4096K bytes of Flash internal SIMM (Sector size 256K). Configuration register is 0x102
router# router#conf t Enter configuration commands, one per line. End with CNTL/Z. router(config)#ntp authentication-key 1 md5 999 router(config)#ntp authenticate router(config)#ntp trusted-key 1 router(config)#ntp master 1 router(config)#^Z router#sh run Building configuration...
Current configuration : 6032 bytes . . . ! ntp authentication-key 1 md5 005D4A5F 7 ntp authenticate ntp trusted-key 1 ntp master 1 ! end
router#
我的为什么没有自动生成 |
 |
|
|
| 11. Re:catalyst交换机上如何配置ntp |
  |
|
 |
|
HP : 250 / 1254
MP : 1625 / 22003
EXP : 16%
|
|
迟则生变
           
成员等级: 51
发表总数: 4877
金币总数: 308
所属组别: 管理员
注册日期: 2003/01/9

|
过一会再show run 看看?

 没有谁能像一座孤岛/在大海里独踞/每个人都像一块小小的泥土/连接成整个陆地/如果一块泥土被海水冲去/欧洲将缺其一隅/这如同一座山岬/也如同你的朋友和你自己/无论谁死了/都是自己的一部分在死去/因为我包含在人类这个概念里/因此我从不问丧钟为谁而鸣/它为我,也为你 No man is an Island, entire of itself; every man is a piece of the Continent, a part of the main; if a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a man or of thy friends or of thine own were; any man's death diminishes me, because I am involved in Mankind; And therefore never send to know for whom the bell tolls; It tolls for thee.
|
 |
|
|
| 12. Re:catalyst交换机上如何配置ntp |
  |
|
 |
|
HP : 0 / 55
MP : 6 / 445
EXP : 20%
|
|
初涉江湖
 
成员等级: 3
发表总数: 20
金币总数: 43
所属组别: 普通成员
注册日期: 2006/04/4

|
請問一下 ntp master 1 這個命令是不是不能在三層交換機上使用 只能在router上使用啊??? |
 |
|
|
| 13. Re:catalyst交换机上如何配置ntp |
  |
|
 |
|
HP : 0 / 55
MP : 6 / 445
EXP : 20%
|
|
初涉江湖
 
成员等级: 3
发表总数: 20
金币总数: 43
所属组别: 普通成员
注册日期: 2006/04/4

|
麦子版主 請回答 頂上去 |
 |
|
|
| 14. Re:catalyst交换机上如何配置ntp |
  |
|
 |
|
HP : 250 / 1254
MP : 1625 / 22003
EXP : 16%
|
|
迟则生变
           
成员等级: 51
发表总数: 4877
金币总数: 308
所属组别: 管理员
注册日期: 2003/01/9

|
对,某些交换机不支持ntp server 功能。

 没有谁能像一座孤岛/在大海里独踞/每个人都像一块小小的泥土/连接成整个陆地/如果一块泥土被海水冲去/欧洲将缺其一隅/这如同一座山岬/也如同你的朋友和你自己/无论谁死了/都是自己的一部分在死去/因为我包含在人类这个概念里/因此我从不问丧钟为谁而鸣/它为我,也为你 No man is an Island, entire of itself; every man is a piece of the Continent, a part of the main; if a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a man or of thy friends or of thine own were; any man's death diminishes me, because I am involved in Mankind; And therefore never send to know for whom the bell tolls; It tolls for thee.
|
 |
|
|
| 15. Re:catalyst交换机上如何配置ntp |
  |
|
 |
|
HP : 71 / 713
MP : 379 / 11016
EXP : 55%
|
|
名动江湖
           
成员等级: 29
发表总数: 1139
金币总数: 597
所属组别: 高级成员
注册日期: 2003/09/30

|
学习,谢谢麦子! |
 |
|
|
| 16. Re: Re:catalyst交换机上如何配置ntp |
  |
|
 |
|
HP : 0 / 55
MP : 6 / 445
EXP : 20%
|
|
初涉江湖
 
成员等级: 3
发表总数: 20
金币总数: 43
所属组别: 普通成员
注册日期: 2006/04/4

|
麦子,我做了這個ntp時間同步實驗,不過沒有成功,還望你指正 附件是架構圖 4506配置: ntp authentication-key 1 md5 999 ntp authenticate ntp trusted-key 1 ntp master 1 //ntp clock-period 17179784 //這個命令是沒有自动生成 ????
2950配置: ntp authentication-key 1 md5 999 ntp authenticate ntp trusted-key 1 ntp clock-period 17180178 //為什麼在客戶機上生成 ??? ntp server 192.168.0.1 key 1
請指正!!!
附带图片
|
 |
|
|
| 17. Re:catalyst交换机上如何配置ntp |
  |
|
 |
|
HP : 0 / 55
MP : 6 / 445
EXP : 20%
|
|
初涉江湖
 
成员等级: 3
发表总数: 20
金币总数: 43
所属组别: 普通成员
注册日期: 2006/04/4

|
以上面設置 兩台的時間並沒有同步 |