< Home

sntp-server

Function

The sntp-server command configures the SNTP server IPv6 address assigned to the DHCPv6 client for the IPv6 address pool.

The undo sntp-server command deletes the configured SNTP server IPv6 address assigned to the DHCPv6 client from the IPv6 address pool.

By default, no SNTP server IPv6 address is configured for the IPv6 address pool.

Format

sntp-server ipv6-address

undo sntp-server ipv6-address

Parameters

Parameter

Description

Value

ipv6-address

Specifies the IPv6 address of an SNTP server.

The value is a 32-digit hexadecimal number, in the format X:X:X:X:X:X:X:X.

Views

IPv6 address pool view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The sntp-server command is used on DHCPv6 servers. The DHCPv6 server needs to specify the IPv6 address of the SNTP server for the IPv6 address pool so that the DHCPv6 client can be connected to the Internet. The DHCPv6 server specifies the IPv6 address of the SNTP server when allocating IPv6 addresses to the clients. After the clients receive the IPv6 address of the SNTP server, the clients synchronize the system time with the specified SNTP server.

Precautions

  • A maximum of two SNTP server addresses can be configured for each IPv6 address pool. The first assigned address functions as the primary address, and the other address functions as a secondary address.
  • When multiple SNTP servers are specified, you need to run the sntp-server command repeatedly to configure multiple addresses.

Example

# Specify fc00:1::1 as the IPv6 address of the SNTP server when IPv6 addresses in the address pool global1 are assigned.

<HUAWEI> system-view
[HUAWEI] dhcpv6 pool global1
[HUAWEI-dhcpv6-pool-global1] sntp-server fc00:1::1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >