Reliable time synchronization is critical for both the security and effective management of the Wi-SUN network, as many core protocols (like CSMP) and secure authentication methods rely on accurate system clocks. The NTP service is enabled by default on the XBee Hive for Wi-SUN device. By default, the Wi-SUN firewall zone is included in the list of firewall zones allowed to access the XBee Hive for Wi-SUN device’s network time protocol (NTP) service. Unless specifically disabled, your device will automatically provide NTP services to eligible downstream devices on the Wi-SUN network.
Required configuration items
-
Enable the NTP service.
-
Configure at least one upstream NTP server for synchronization.
-
Default server:
time.devicecloud.com(Digi NTP server).
-
Additional configuration options
-
Additional upstream NTP servers.
-
Access Control List to limit downstream access to the XBee Hive for Wi-SUN device’s NTP service.
-
Set the time zone (if default UTC is not suitable).
Configuration methods
You can configure the XBee Hive for Wi-SUN device’s NTP service via either the Web UI or command line interface.
-
Log in to Digi Remote Manager or the local Web UI as a user with full Admin access rights.
-
Access the device configuration:
Method Steps Remote Manager
-
Locate your device.
-
Select the Device ID.
-
Select Settings.
-
Select to expand Config.
Local Web UI
Select Services > NTP.
-
-
Enable the XBee Hive for Wi-SUN device’s NTP service by selecting Enable.
-
(Optional) Configure the Access Control List (ACL) to limit downstream access.
-
To limit access to specified IPv4 addresses/networks:
-
Select IPv4 Addresses.
-
For Add Address, select the Add (+) icon.
-
Enter the IPv4 address or network (e.g.,
192.168.1.0/24, oranyfor unrestricted access). -
Select Add again to include additional addresses.
-
-
To limit access to specified IPv6 addresses/networks:
-
Select IPv6 Addresses.
-
Add addresses/networks (e.g.,
2001:db8::/48, orany).
-
-
To limit access by interface:
-
Select Interfaces.
-
For Add Interface, select the Add (+) icon.
-
Select the interface from the dropdown.
-
-
To limit access by firewall zone:
-
Select Zones (default zones: Internal, Edge, IPsec, Wi-SUN).
-
Add zones as necessary from the dropdown.
-
-
-
(Optional) Enable Fall back to local clock to allow the device’s local system clock as a backup time source.
-
(Optional) Add or modify upstream NTP servers:
-
Default:
time.devicecloud.com -
To change:
-
Select NTP Servers.
-
Modify server name(s) as needed.
-
Select Add (+) to include more servers.
-
The program tries to connect servers in order to the NTP service until a connection is successful.
-
-
-
(Optional) Set the system time zone (default is UTC).
-
Select Apply to save and apply the configuration.
| The list of NTP servers is synced with the NTP client config. Changes will be reflected in both. |
-
Select the device in Remote Manager and Actions > Open Console, or log in locally as an Admin.
-
Enter Admin CLI (type
adminif prompted). -
Enter configuration mode:
> config (config)>
-
Enable NTP service:
(config)> service ntp enable true (config)>
-
(Optional) Manage upstream NTP servers:
-
Delete default server:
(config)> del service ntp server 0
-
Add a new server at the beginning:
(config)> add service ntp server 0 time.server.com
-
Add a new server at the end:
(config)> add service ntp server end time.server.com
-
Add at a specific position:
(config)> add service ntp server 1 time.server.com
-
-
(Optional) Allow fallback to local clock:
(config)> service ntp local true (config)>
-
(Optional) Configure Access Control List:
-
Restrict by IPv4 address/network:
(config)> add service ntp acl address end value
-
Where
valueis an IP, host name, CIDR, orany. Repeat to add more.
-
-
Restrict by IPv6 address/network:
(config)> add service ntp acl address6 end value
-
Where
valueis an IP, host name, CIDR, orany. Repeat to add more.
-
-
Restrict by interface:
(config)> add service ntp acl interface end interface_name
-
Restrict by firewall zone:
(config)> add service ntp acl zone end zone_name
-
Where
zone_nameis a firewall zone orany.
-
-
-
(Optional) Set the timezone for your location. Default: UTC.
-
Save the configuration:
(config)> save Configuration saved. >
-
Type
exitto leave Admin CLI. If prompted, typequitto disconnect.