The ntp-service source-interface command enables an IPv4 interface to send NTP messages.
The undo ntp-service source-interface command disables an IPv4 interface from sending NTP messages.
By default, no interface is specified for sending NTP messages.
Parameter | Description | Value |
---|---|---|
ipv6 |
Indicates the NTP IPv6 service. |
- |
interface_type |
Specifies the type and number of a local interface that sends NTP packets. |
- |
interface_num |
Specifies the type and number of a local interface that sends NTP packets. |
The value is a string of 1 to 47 case-sensitive characters, spaces not supported. |
vpn-instance vpnName |
Specifies the name of a VPN instance. |
The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string. |
Usage Scenario
In the unicast mode, if you want only one IP address to send the NTP request or response packets, specify the interface of which an IP address is used as a source interface.
In VS mode, this command is supported only by the admin VS.
Precautions
<HUAWEI> system-view [~HUAWEI] ntp-service source-interface 10GE 0/1/0
<HUAWEI> system-view [~HUAWEI] interface 10GE 0/1/0 [~HUAWEI-10GE0/1/0] ipv6 enable [~HUAWEI-10GE0/1/0] quit [~HUAWEI] ntp-service ipv6 source-interface 10GE 0/1/0