ptp-adaptive local-ip

Function

The ptp-adaptive local-ip command assigns an IP address to a client initiating Layer 3 unicast negotiation.

The undo ptp-adaptive local-ip command deletes the IP address assigned to a client initiating Layer 3 unicast negotiation.

By default, no IP address is configured.

Format

ptp-adaptive local-ip ip-address

undo ptp-adaptive local-ip

Parameters

Parameter Description Value
local-ip ip-address

Specifies the IP address of a client.

The value is an IPv4 address in dotted decimal notation. The value is usually a loopback address.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
clksync write

Usage Guidelines

Usage Scenario

The clock server's and client's IP addresses uniquely identify a connection, over which a client initiates Layer 3 1588 ACR/ATR unicast negotiation with a clock server. 1588v2 packets are exchanged over the Layer 3 unicast negotiation connection.

Prerequisites

The ptp-adaptive enable command must have been run to enable 1588 ACR/ATR before the ptp-adaptive local-ip command is run.

Configuration Impact

One device is assigned only one local-ip. The undo ptp-adaptive acr/undo ptp-adaptive atr command must be run before the local-ip is modified.

Follow-up Procedure

If a client and a server are connected by a VPN, the VPN instance must be specified by using the ptp-adaptive vpn-instance command in addition to the configuration of the client's IP address.

Precautions

In VS mode, this command is supported only by the admin VS.

Configuring the loopback address as the client's IP address is recommended, ensuring that packets sent by the clock server are directed to the client.

The ptp-adaptive local-ip command needs to be run on both a clock server and a client before they perform 1588 ACR/ATR clock/time synchronization.

Example

# Create a loopback interface with the IP address being 1.1.1.1, and configure the loopback address as the local address used in Layer 3 unicast negotiation.
<HUAWEI> system-view
[~HUAWEI] interface loopback 0
[*HUAWEI-Loopback0] ip address 1.1.1.1 32
[*HUAWEI-Loopback0] quit
[*HUAWEI] ptp-adaptive enable
[*HUAWEI] ptp-adaptive device-type client
[*HUAWEI] ptp-adaptive local-ip 1.1.1.1
[*HUAWEI] ptp-adaptive acr unicast-negotiate enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >