---
title: NTP Configuration
slug: enterprise-v5p2/ntp-configuration
description: device management
createdAt: 2025-11-14T03:58:41.563Z
---

### <font color="#1d50a2">show ntp</font>

**\[Command]**
**show ntp**

**\[Purpose]**
Show NTP information

**\[View]**
System view

**\[Use Cases]**

```plaintext
sonic# show ntp
   remote      refid   st t when poll reach  delay  offset jitter
==============================================================================
*10.250.0.240  203.107.6.88   3 u  46  64 377  0.165  10.575  3.198
```

### <font color="#1d50a2">ntp server</font>

**\[Command]**
**ntp server** *ip-address* **\[prefer]**
**no ntp server**

**\[Purpose]**
Configure NTP server

**\[Parameter]**

| **Parameter** | **Description**       |
| ------------- | --------------------- |
| *ip-address*  | NTP server ip address |

**\[View]**
System configuration view

**\[Use Cases]**

```plaintext
sonic(config)# ntp server 10.250.0.242
```

### <font color="#1d50a2">ntp source-interface</font>

**\[Command]**
**ntp source-interface \{ethernet** *interface\_num* **|vlan** *vlan\_id* **|loopback** *loopback\_id* **|mgmt} \[vrf \{default|mgmt}]**
**no ntp source-interface**

**\[Purpose]**
Specify the NTP source interface

**\[View]**
System configuration view

**\[Notes]**
Configuring the local source interface for sending/receiving NTP packets can help avoid using IP addresses from other interfaces on this device as the destination address for response packets.

**\[Use Cases]**

```plaintext
sonic(config)# ntp source-interface Loopback0 vrf default
```

