ptp-adaptive vpn-instance

Function

The ptp-adaptive vpn-instance command sets a name for a VPN instance, that is, the name of the VPN instance to which a loopback interface is bound.

The undo ptp-adaptive vpn-instance command deletes the name configured for a VPN instance.

By default, no name is configured for a VPN instance, and PTP packets are forwarded over a public network.

Format

ptp-adaptive vpn-instance vpn-name

undo ptp-adaptive vpn-instance

Parameters

Parameter Description Value
vpn-instance vpn-name

Specifies the name of the VPN instance to which the loopback interface with the IP address specified using local-ip is bound.

The name is a string of 1 to 31 characters.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
clksync write

Usage Guidelines

Usage Scenario

During Layer 3 unicast negotiation, the local device sends a request for establishing a connection to the server. The local device address and the server address uniquely identify a connection for 1588 ACR/ATR Layer 3 unicast negotiation. To ensure that the packets sent by the server are destined for the local device, set the parameter local-ip in the ptp-adaptive local-ip command as the address of the local loopback interface. If the local device is connected to the server over a VPN network, the name of the VPN instance to which the local loopback interface is bound needs to be specified. The parameter needs to be set on both the client and the server.

Prerequisites

1588 ACR/ATR has been enabled.

Precautions

This command is supported only on the admin VS.

Before changing the value of this parameter, disable 1588 ACR/ATR unicast negotiation by using the undo ptp-adaptive acr/undo ptp-adaptive atr command.

Example

# Set the name of the VPN instance to which the loopback interface on a device is bound to acr.
<HUAWEI> system-view
[~HUAWEI] ip vpn-instance acr
[*HUAWEI] undo ptp-adaptive acr
[*HUAWEI] commit
[~HUAWEI] interface loopback 0
[*HUAWEI-Loopback0] ip binding vpn-instance acr
[*HUAWEI-Loopback0] quit
[*HUAWEI] ptp-adaptive vpn-instance acr
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >