The ntp-service server source-interface command specifies an interface that the NTP IPv4 server listens to.
The undo ntp-service server source-interface command cancels an interface that the NTP IPv4 server listens to.
The ntp-service ipv6 server source-address command specifies an address that the NTP IPv6 server listens to.
The undo ntp-service ipv6 server source-address command cancels an address that the NTP IPv6 server listens to.
By default, the NTP server does not listen to any interface.
ntp-service server source-interface { interface-name | interface-type interface-number }
ntp-service ipv6 server source-address ipv6Addr [ vpn-instance vpnName ]
ntp-service ipv6 server physic-isolate source-interface { interface-name | interface-type interface-number } source-address ipv6Addr
ntp-service server physic-isolate source-interface { interface-name | interface-type interface-number } source-address ipv4Addr
undo ntp-service server source-interface { interface-name | interface-type interface-number }
undo ntp-service ipv6 server source-address ipv6Addr [ vpn-instance vpnName ]
undo ntp-service ipv6 server physic-isolate source-interface { interface-name | interface-type interface-number } source-address ipv6Addr
undo ntp-service server physic-isolate source-interface { interface-name | interface-type interface-number } source-address ipv4Addr
Parameter | Description | Value |
---|---|---|
interface-name |
Specifies the type and number of a local interface that receives NTP packets. |
The value is a string of 1 to 47 case-sensitive characters, spaces not supported. |
interface-type |
Specifies the type and number of a local interface that receives NTP packets. |
The value is a string of 1 to 47 case-sensitive characters, spaces not supported. |
interface-number |
Specifies the type and number of a local interface that receives NTP packets. |
The value is a string of 1 to 47 case-sensitive characters, spaces not supported. |
source-address ipv6Addr |
Specifies the IPv6 address that the server listens to. The ipv6-address is a host address and cannot be a multicast address, loopback address, or IP address of a reference clock. |
The address is a 32-bit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
source-address ipv4Addr |
Specifies the IPv4 address that the server listens to. The ipv4-address is a host address and cannot be a multicast address, loopback address, or IP address of a reference clock. |
The value is an IPv4 address in dotted decimal notation. |
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. |
physic-isolate |
Rate adjustment debugging functions. |
- |
Usage Scenario
To listen to the packets received from a specified interface or IP address on the NTP server, you can specify the interface as the server source interface. After the interface is specified, the host can receive only the NTP packets from the interface.
In VS mode, this command is supported only by the admin VS.
Precautions
<HUAWEI> system-view [~HUAWEI] ntp-service server source-interface 10GE 0/1/0
<HUAWEI> system-view [~HUAWEI] ntp-service ipv6 server source-address 2001:db8::1
<HUAWEI> system-view [~HUAWEI] ntp-service server physic-isolate source-interface 10GE0/1/0 source-address 10.1.1.1
<HUAWEI> system-view [~HUAWEI] ntp-service ipv6 server physic-isolate source-interface 10GE0/1/0 source-address 2001:db8:1::1