如何配置N系列交换机的SNTP(简单网络时间协议)

Summary: 请按照以下步骤设置到 SNTP 服务器的连接,以在交换机上准确记录时间日志。

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

要在交换机上启用SNTP,请执行以下步骤:

  1. 输入以下命令。此示例将使用IP地址192.168.0.254作为时间服务器:

    console#enable

    console#configure

    console(config)#sntp server 192.168.0.254

    1. 如果SNTP服务器是单播服务器:

      console(config)#sntp unicast client enable

    2. 如果SNTP是广播服务器:

      console(config)#sntp broadcast client enable

    注:注:交换机必须能够访问SNTP以更新其时间。您可以运行命令console#ping(sntp的ip地址),查看交换机是否连接到SNTP服务器
  2. 运行以下命令验证交换机是否同步

    console(config)#show sntp status

    注:注:在交换机上更新的时间将约为一到两分钟,同步不是即时的
  3. 通过运行以下命令设置时区和夏令时。此示例使用中部时间-6和美国夏令时。

    console(config)#clock timezone -6  (UTC中的时差[-12至13])

    console(config)#clock summer-time recurring USA

  4. 以下命令用于验证当前时间:

    console#show clock

Affected Products

PowerSwitch N3000 Series
Article Properties
Article Number: 000121392
Article Type: How To
Last Modified: 07 Oct 2024
Version:  4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.