Cisco:如何为 MDS 交换机设置时钟时间、日期、时区、夏令时更改和 NTP

Summary: 如何为 MDS 交换机设置时钟时间、日期、时区、夏令时更改和 NTP。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

设置时区:

config
clock timezone zone-name offset-hours offset-minutes


设置东部时区的示例:(东部时区为 UTC -5,无分钟偏移量)
 

config
clock timezone EST -5 0


设置夏令时:设置时钟前后一小时更改的日期,必须每年随着日期的变化手动更改。

config
clock timezone timezone_name hour_offset_from_UTC minute_offset_from_UTC


东部夏令时示例:(设置时区、开始周、日、月、时间/结束周、日、月时间/偏移量(以分钟为单位)

此命令将夏令时设置为从三月的第一周星期日凌晨 2 点开始,到 11 月第一周的星期日凌晨 2 点结束。它将开始日期的时间向前 60 分钟,在结束日期向后 60 分钟。

config                  
clock summer-time  EDT 1 Sunday March 02:00 1 Sunday November 02:00 60

 

设置时钟时间:设置时间、天、月、年

clock set {HH:MM:SS DD Month-in-words YYYY}

示例

clock set 12:00:00 3 December 2017

 

如果启用了 ntp 功能,则无法设置时钟。禁用 NTP(不启用 NTP 或不启用功能 NTP)。然后设置时钟。然后再次启用 NTP。


配置 NTP:检查时钟时间是否设置在 10 分钟内,否则 ntp 可能无法正确同步。


配置NTP 启用

示例
Ntp server 192.168.1.1       <---设置 NTP 服务器(必需,也可以设置多个对等节点)
Ntp peer 10.1.1.1                 <---设置使用 ntp 的对等交换机或其他 ntp 服务器(不需要)


要手动尝试 ntp 同步到时钟,请运行以下命令:
Ntp sync-retry

Additional Information

请观看此视频:

Affected Products

Connectrix
Article Properties
Article Number: 000019512
Article Type: How To
Last Modified: 22 May 2025
Version:  4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.