Установка актуальной даты и времени является одной из первоочередных задач которую необходимо выполнить на сетевом оборудование, чтобы избежать дальнейшей путаницы при просмотре логов и т.п. Давайте разберем ручную устанавку timezone, даты и времени, а также настройку синхронизации времени с ntp-сервера на оборудование huawei.
1. Установка времени. Формат установки времени — HH:MM:SS
clock datetime 13:20:00
2. Установка даты. Формат установки даты — YYYY-MM-DD
clock datetime 13:20:00 2018-12-25
Просмотр текущей информации по установленом даты, времени и тайм зоны.
display clock 2017-06-02 14:22:06+03:00 Friday Time Zone(MSK) : UTC+03:00
Установка часового пояса на huawei
Установка Московского часового пояса +3 часа по Гринвичу (GMT).
clock timezone MSK add 03:00:00
Установка часового пояса -2 часа по Гринвичу (GMT).
clock timezone MSK minus 02:00:00
Cинхронизация времени с ntp сервером на huawei
Удобно выставлять время на железе не вручную, а синхронизировать его c ntp серверами. Для этого используем следующие команды.
ntp-service unicast-server IP-NTP-SERV-1 ntp-service unicast-server IP-NTP-SERV-2
Если у вас на сети используется MPLS и ntp сервер доступен через VRF, то в этом случае к настройкам добавляем параметр vpn-instanсe.
ntp-service unicast-server IP-NTP-SERV vpn-instance NAME-VRF
Просмотр общей информации ntp.
display ntp-service status clock status: synchronized clock stratum: 5 reference clock ID: XXX.XXX.XXX.XXX nominal frequency: 60.0002 Hz actual frequency: 60.0002 Hz clock precision: 2^17 clock offset: -2.3619 ms root delay: 337.70 ms root dispersion: 152.28 ms peer dispersion: 104.00 ms reference time: 11:14:45.392 UTC Jun 2 2017(DCDBC725.6472085B) synchronization state: clock synchronized
Просмотр информации о текущих сессиях установленных с ntp серверами.
display ntp-service sessions clock source: XXX.XXX.XXX.XXX clock stratum: 4 clock status: configured, selected, sane, valid reference clock ID: XXX.XXX.XXX.XXX reach: 377 current poll: 1024 now: 434 offset: 0.4184 ms delay: 57.38 ms disper: 16.15 ms clock source: XXX.XXX.XXX.XXX clock stratum: 4 clock status: configured, master, sane, valid reference clock ID: XXX.XXX.XXX.XXX reach: 377 current poll: 1024 now: 566 offset: -4.3471 ms delay: 63.11 ms disper: 16.75 ms
Шаблоны типовой настройки синхронизации времени с ntp сервером на huawei
Стандартный шаблон настройки для huawei.
clock timezone MSK add XX:XX:XX sys ntp-service unicast-server XXX.XXX.XXX.XXX ntp-service unicast-server XXX.XXX.XXX.XXX
Шаблон настройки для случая если ntp сервер доступен через VRF.
clock timezone MSK add XX:XX:XX sys ntp-service unicast-server XXX.XXX.XXX.XXX vpn-instance NAME-VRF ntp-service unicast-server XXX.XXX.XXX.XXX vpn-instance NAME-VRF
На этом все. Как видим ничего сложного в настройки даты и времени оборудование huawei нет. Комментируем, подписываемся ну и всем пока:)
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document.
Note: Even the most advanced machine translation cannot match the quality of professional translators.
Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring Basic NTP Functions
You can configure basic NTP functions to enable devices on the network to synchronize clocks.
Pre-configuration Tasks
Before the basic NTP functions are configured, complete the following task:
-
Configuring the network layer address and routing protocol of an interface to ensure that NTP packets can reach the destination.
Configuration Procedure
Basic NTP configuration contains the configuration of the NTP primary clock and operating mode.
- Configuring an NTP primary clock
- Configuring NTP Operating Modes
- Verifying the Basic NTP Function Configuration
Configuring an NTP primary clock
Context
A device on the network can synchronize
its clock in the following manners.
- Synchronizing with the local clock: The local clock is used as
the reference clock. - Synchronizing with another device on the network: This device
is used as an NTP clock server to provide a reference clock for the
local clock.
If both manners are configured, the device selects an
optimal clock source by comparing the clocks determined in the two
manners. The clock of a lower stratum is preferred.
The RTC precision of AR200, AR1220, AR2220, and AR3260
is low. You are not advised to configure these routers as NTP master
clocks.
An authoritative clock is used as a reference time source
for a synchronization subnet, and is located at the top of a hierarchical
structure on the synchronization subnet. The authoritative clock is
stratum0. The current authoritative clock is mostly a Radio Clock
or the Global Positioning System. The time of the authoritative clock
is synchronized through the broadcast UTC time code other than NTP.
In actual circumstances, the NTP server synchronized with the
authoritative clock is set as stratum1, and is used as a master reference
clock source. Other devices on the network synchronize their clocks
with the clock of the NTP server, which means the local clock of the
NTP server is configured as the NTP primary clock. The NTP distance
from a device on the network to the master reference clock source,
that is, the number of NTP servers on the NTP synchronization chain,
determines the stratum of the clock on the device.
As shown
in Figure 4-10, RouterA is the primary clock,
and the clock stratum is 1. The clock synchronization direction is
from RouterA to RouterB, and further to RouterC. Only after the RouterB is synchronized with RouterA, RouterC can synchronize its
clock with the clock of RouterB. After all the
devices on the synchronization subnet are synchronized, RouterB and RouterC are respectively stratum2
and stratum3.
Figure 4-10 NTP synchronization subnet
After the local clock is configured
as the reference clock, the local device can be used as the clock
source to synchronize other devices on the network. Confirm before
this configuration, so as avoid clock errors on the network.
Procedure
- Run system-view
The system view is displayed.
- Run ntp-service refclock-master [ ip-address ] [ stratum ]
The local clock is configured as the NTP primary clock.
By default, no NTP primary clock is specified.
Configuring NTP Operating Modes
Context
The following NTP operating modes are
supported by a device:
Operating Mode |
Usage Scenario |
Deployment Location and Synchronization Direction |
---|---|---|
Unicast client/server |
The unicast client/server mode is used on a higher stratum |
You need to configure only the client. The server needs Note that the |
Symmetric peer mode |
The symmetric peer mode is used on a lower stratum on the |
You need to configure only the symmetric active peer. The In symmetric peer mode, a symmetric peer of a higher |
Broadcast mode |
When the IP address of a server or a symmetric peer is not |
Relevant commands need to be run on the server and the client. Note that the client can be synchronized to the server but the |
Multicast mode |
The multicast mode applies to the high-speed network that |
Relevant commands need to be run on the server and the client. Note that the client can be synchronized to the server but the |
Manycast mode |
The manycast mode applies to the scenario where servers |
Relevant commands need to be run on the server and the client. Note that the client can be synchronized to the server but the |
If a source address from which NTP packets
are sent is specified on the server, the address must be the same
as the server IP address configured on the client. Otherwise, the
client cannot process the NTP packets sent by the server, resulting
in failed clock synchronization.
Procedure
- Unicast Client/Server Mode
In the unicast client/server mode, you need to configure only the
client. Only an NTP primary clock needs to be configured on the server.Only after the clock on the server is synchronized, the server
can function as a clock server to which other devices can be synchronized.
When the clock stratum of the server is greater than or equal to the
clock stratum of the client, the client is not synchronized to the
server.You can run the ntp-service unicast-server command repeatedly to configure multiple servers. The client
selects the optimal clock source by selecting a preferred clock.Configure the unicast client.
- Run system-view
The system view is displayed.
- Run ntp-service unicast-server server [ version number | authentication-keyid key-id | maxpoll max-number | minpoll min-number | source-interface interface-type interface-number | vpn-instance vpn-instance-name | preference ] *ntp-service unicast-server ipv6 ipv6-address [ authentication-keyid key-id | maxpoll max-number | minpoll min-number | source-interface interface-type interface-number | vpn-instance vpn-instance-name | preference ] *
-
An NTP server
with a specified IPv4 address is configured. -
An NTP server with a specified IPv6 address is configured.
The value of ip-address or ipv6-address is the IP address of the NTP server. It can be the IP address of
a host instead of being a broadcast address, a multicast address,
or the IP address of a reference clock.To specify the parameter authentication-keyid, see Configuring NTP Authentication.
-
- Run system-view
- Symmetric Peer Mode
You only need to specify the IP address of the symmetric passive
peer on the symmetric active peer, and both symmetric peers use this
IP address to exchange NTP packets.Either of the symmetric
active peer or the symmetric passive peer must be in the synchronized
state. Otherwise, they cannot be synchronized.You can run the ntp-service unicast-peer command repeatedly to configure multiple symmetric passive
peers. When a symmetric active peer has multiple symmetric passive
peers configured, the synchronization direction follows the principle
that a symmetric peer of a larger stratum is synchronized with a symmetric
peer of a smaller stratum.Configure the symmetric active peer.
- Run system-view
The system view is displayed.
- Run ntp-service unicast-peer server [ version number | authentication-keyid key-id | maxpoll max-number | minpoll min-number | source-interface interface-type interface-number | vpn-instance vpn-instance-name | preference ] *ntp-service unicast-peer ipv6 ipv6-address [ authentication-keyid key-id | maxpoll max-number | minpoll min-number | source-interface interface-type interface-number | vpn-instance vpn-instance-name | preference ] *
-
The NTP peer with
a specified IPv4 address is configured. -
The NTP peer with a specified IPv6 address is configured.
The value of server or ipv6-address must be a unicast address, and cannot be a
broadcast address, a multicast address or the IP address of the local
clock.To specify the parameter authentication-keyid, see Configuring NTP Authentication.
-
- Run system-view
- Broadcast Mode
The broadcast mode can be used only on a local area network (LAN).
Only after the clock of the broadcast server is synchronized,
the broadcast client can be synchronized with the broadcast server.Configure the NTP broadcast server.
- Run system-view
The system view is displayed.
- Run interface interface-type interface-number
The interface for sending NTP broadcast packets is specified,
and the interface view is displayed. - Run ntp-service broadcast-server [ version number | authentication-keyid key-id ] *
The local router is configured as the
NTP broadcast server.To specify the parameter authentication-keyid, see Configuring NTP Authentication.
Configure the NTP broadcast client.
- Run system-view
The system view is displayed.
- Run interface interface-type interface-number
The interface for receiving NTP broadcast packets is specified,
and the interface view is displayed. - Run ntp-service broadcast-client
The local router is configured as the NTP broadcast client.
- Run system-view
- Multicast Mode
Only after the clock of the multicast server is synchronized, the
multicast client can be synchronized with the multicast server.Currently a maximum of 1024 multicast clients can be configured,
but a maximum of 128 multicast clients can work simultaneously.Configure the NTP multicast server.
- Run system-view
The system view is displayed.
- Run interface interface-type interface-number
The interface for sending NTP multicast packets is specified,
and the interface view is displayed. - Run ntp-service multicast-server [ ip-address ] [ version number | authentication-keyid key-id | ttl ttl-number ] *ntp-service multicast-server [ ipv6 [ ipv6-address ] ] [ authentication-keyid key-id | ttl ttl-number ] *
-
The local router is configured as the
NTP multicast server on an IPv4 network. -
The local router is configured as the NTP multicast server on an IPv6 network.
To specify the parameter authentication-keyid, see Configuring NTP Authentication.
-
Configure the NTP multicast client.
- Run system-view
The system view is displayed.
- Run interface interface-type interface-number
The interface for receiving NTP multicast packets is specified,
and the interface view is displayed. - Run ntp-service multicast-client [ ip-address | ipv6 [ ipv6-address ] ]
The local router is configured as the
NTP multicast client.
- Run system-view
- Manycast Mode
Configure the NTP manycast server.
- Run system-view
The system view is displayed.
- Run interface interface-type interface-number
The interface for receiving NTP manycast packets is specified,
and the interface view is displayed. - Run ntp-service manycast-server [ ip-address | ipv6 [ ipv6-address ] ]
The local router is configured as the
NTP manycast server.
Configure the NTP manycast client.
- Run system-view
The system view is displayed.
- Run interface interface-type interface-number
The interface for sending NTP manycast packets is specified, and
the interface view is displayed. - Run ntp-service manycast-client [ ip-address | ipv6 [ ipv6-address ] ] [ authentication-keyid key-id | ttl ttl-number ] *
The local router is configured as the
NTP manycast client.To specify the parameter authentication-keyid, see Configuring NTP Authentication.
- Run system-view
Verifying the Basic NTP Function Configuration
Prerequisites
All configurations of basic NTP functions are completed.
Procedure
- Run the display
ntp-service status command to check the NTP service
status. - Run the display
ntp-service sessions [ verbose ] command to check the NTP session status. - Run the display
ntp-service trace command to check the path from
the local device to the reference clock source.
- Configuring an NTP primary clock
- Configuring NTP Operating Modes
- Verifying the Basic NTP Function Configuration
Часто требуется настройка времени на сетевом оборудовании. Например, чтобы настроить время на оборудовании Huawei (6810, 5700 и т.д.) надо:
Перейти в перивелегированый режим
sys
Если вручную надо установить, то
clock datetime hh:mm:ss YYYY-MM-DD
Добавляем временную зону
clock timezone MSK add hh:mm:ss
или
clock timezone MSK minus hh:mm:ss
Если забирать в простом варианте с NTP-сервера, то
ntp-service unicast-server XXX.XXX.XXX.XXX
Категории: Huawei
Метки: huawei, сети
Время на роутере Huawei WiFi AX3 играет важную роль, так как оно используется для синхронизации времени на всех устройствах, подключенных к сети. Правильное установление времени позволяет правильно отображать актуальную информацию и выполнять различные задачи, связанные с устройствами, синхронизированными по времени. В этой пошаговой инструкции мы расскажем вам, как настроить время на Huawei WiFi AX3.
Шаг 1: Подключитесь к вашему роутеру Huawei WiFi AX3 с помощью компьютера или мобильного устройства. Для этого используйте указанный в документации пароль доступа к сети.
Шаг 2: После подключения откройте веб-браузер и введите IP-адрес вашего роутера в адресной строке. Обычно это 192.168.3.1, но, при необходимости, вы можете узнать точный IP-адрес в документации к роутеру или обратившись к вашему интернет-провайдеру.
Шаг 3: В появившемся окне авторизации введите имя пользователя и пароль администратора вашего роутера. Если данные не были изменены, по умолчанию имя пользователя — admin, а пароль — admin.
Шаг 4: После успешной авторизации вам будет предложено меню настройки роутера. Найдите в нем раздел, связанный со временем или датой и временем. Обычно этот раздел называется «Time» или «Date & Time».
Шаг 5: В разделе настройки времени вы сможете изменить текущие значения времени и часового пояса. Введите правильные значения времени и выберите ваш часовой пояс из предложенного списка.
Шаг 6: После внесения изменений, нажмите кнопку «Сохранить» или «Применить» для применения новых настроек времени на вашем роутере Huawei WiFi AX3.
Теперь время на роутере будет правильным, что позволит вам синхронизировать время на всех устройствах в вашей сети и выполнять различные задачи, требующие синхронизации по времени.
Содержание
- Как настроить время на Huawei WiFi AX3
- Подробная инструкция по настройке времени на роутере Huawei WiFi AX3
- Шаг 1: Вход в настройки роутера
Как настроить время на Huawei WiFi AX3
Для настройки времени на роутере Huawei WiFi AX3 следуйте этим шагам:
- Войдите в интерфейс управления роутером, введя его IP-адрес в адресной строке браузера.
- Введите имя пользователя и пароль для доступа к настройкам роутера.
- В меню настроек найдите раздел «Настройки времени» или «Системное время».
- Выберите свой часовой пояс из выпадающего списка или введите его вручную.
- Установите нужное время и дату в соответствии с текущими настройками.
- Сохраните изменения и перезагрузите роутер, чтобы изменения вступили в силу.
После выполнения этих шагов время на Huawei WiFi AX3 будет настроено и отображаться правильно на устройствах, подключенных к роутеру.
Подробная инструкция по настройке времени на роутере Huawei WiFi AX3
Шаг 1: Подключите устройство к роутеру Huawei WiFi AX3 с помощью провода Ethernet или через беспроводное соединение Wi-Fi.
Шаг 2: Откройте веб-браузер и введите IP-адрес роутера Huawei WiFi AX3 в адресной строке. Обычно IP-адрес роутера указан на наклейке на задней панели устройства. Нажмите enter, чтобы перейти к настройкам роутера.
Шаг 3: Введите ваши учетные данные для входа в систему, включая имя пользователя и пароль. Если вы не меняли эти данные, по умолчанию имя пользователя «admin», а пароль «admin» или «password».
Шаг 4: После успешной авторизации откроется панель управления роутером. Найдите вкладку «Настройки времени» или «Time Settings».
Шаг 5: Во вкладке настройки времени найдите поле «Часовой пояс» или «Time Zone». Выберите вашу текущую временную зону.
Шаг 6: Введите текущую дату и время в соответствующие поля. Вы также можете включить опцию автоматической синхронизации времени с сервером ниже.
Шаг 7: Нажмите на кнопку «Сохранить» или «Применить», чтобы сохранить настройки времени.
Шаг 8: После сохранения настроек роутер перезагрузится, и новые настройки времени вступят в силу.
Шаг 9: Проверьте корректность настроек времени, открыв веб-браузер на подключенном устройстве и загрузив какую-либо страницу.
Следуя этой подробной инструкции, вы сможете настроить время на вашем роутере Huawei WiFi AX3 максимально корректно, что обеспечит бесперебойную работу роутера и основных функций устройства.
Шаг 1: Вход в настройки роутера
Первым шагом для настройки времени на Huawei WiFi AX3 необходимо войти в настройки роутера. Для этого выполните следующие действия:
Шаг 1.1: Подключитесь к Wi-Fi сети, созданной вашим роутером Huawei WiFi AX3. Имя и пароль по умолчанию указаны на задней панели роутера.
Шаг 1.2: Откройте веб-браузер на устройстве, подключенном к роутеру. В адресной строке введите IP-адрес роутера (по умолчанию это 192.168.3.1) и нажмите клавишу Enter.
Шаг 1.3: В появившемся окне введите имя пользователя и пароль для входа в настройки роутера (по умолчанию имя пользователя: admin, пароль: admin). Нажмите кнопку «Войти».
Шаг 1.4: После успешного входа вы попадете в главное меню настроек роутера Huawei WiFi AX3 и будете готовы приступить к настройке времени.
One of the Best Security Practice and Recommendation is to configure Huawei Router in client mode and never run as NTP server.
NTP Server1: 192.168.10.101
NTP Server1: 192.168.10.102
Configuration:
ntp-service server disable
ntp-service ipv6 server disable
ntp-service unicast-server 192.168.10.101
ntp-service unicast-server 192.168.10.102
Verification:
display ntp-service status
display ntp-service sessions
If authentication is enabled on your NTP server.
-Enable the NTP service authentication function
-Configure the NTP authentication key
-Specify the NTP key
-Configure the NTP server(s) with the authentication key id
ntp-service authentication enable
ntp-service authentication-keyid <key-id> authentication-mode { md5 | hmac-sha256 } { cipher } <password>
ntp-service reliable authentication-keyid <keyid>
ntp-service unicast-server 192.168.10.101 authentication-keyid <key-id>
ntp-service unicast-server 192.168.10.102 authentication-keyid <key-id>