ptp-adaptive vport

Function

The ptp-adaptive vport port-ip command sets the local IP address used when a specified virtual interface initiates Layer 3 unicast negotiation and the VPN instance name corresponding to the specified virtual interface (name of the VPN instance bound to the loopback interface).

The undo ptp-adaptive vport port-ip command cancels the configuration of the local IP address used by a specified virtual interface to initiate Layer 3 unicast negotiation and the name of the VPN instance bound to the virtual interface.

The ptp-adaptive vport remote-port-ip command configures a list of remote clock servers for unicast negotiation on a specified virtual interface.

The undo ptp-adaptive vport remote-port-ip command removes the list of remote clock servers for unicast negotiation on a specified virtual interface.

The ptp-adaptive vport asymmetry-correction command configures the asymmetric correction time from a specified virtual interface to the peer device.

The undo ptp-adaptive vport asymmetry-correction command restores the asymmetric correction value from a specified virtual interface to the peer device to 0.

The ptp-adaptive vport local-priority command sets the priority of the local clock on a specified virtual interface.

The undo ptp-adaptive vport local-priority command restores the priority of the local clock on a specified virtual interface to the default value.

The undo ptp-adaptive vport command deletes all configurations of a specified port.

By default, no virtual port is configured.

Format

ptp-adaptive vport port-id port-ip ip-address [ vpn-instance vpn-name ]

ptp-adaptive vport port-id remote-port-ip remote-ip-address

ptp-adaptive vport port-id asymmetry-correction correction-value

ptp-adaptive vport port-id local-priority priority-value

undo ptp-adaptive vport port-id [ port-ip | remote-port-ip | asymmetry-correction [ correction-value ] | local-priority ]

Parameters

Parameter Description Value
port-id

-

The value is 1 or 2.

ip-address

-

The value is in dotted decimal notation.

vpn-name

VPN instance name.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. The VPN instance name cannot be _public_. When double quotation marks are used around the string, spaces are allowed in the string.

remote-ip-address

-

The value is in dotted decimal notation.

correction-value

-

The value is an integer ranging from -200000 to 200000. The default value is 0.

priority-value

-

The value is an integer ranging from 1 to 255. The default value is 128.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
clksync write

Usage Guidelines

Usage Scenario

The vport status on the 1588 ATR T-BC device is unstable. It is usually used on an NE where multiple ring networks intersect. The NE uses the bmca algorithm of the vport to protect the ring network.

Prerequisites

1588 ATR has been enabled using the ptp-adaptive enable command.

The device mode has been set to server-and-client using the ptp-adaptive device-type server-and-client command.

Configuration Impact

Only one port IP address can be configured for a virtual interface. To modify the port IP address configuration, run the undo ptp-adaptive atr command or delete the port IP address of the virtual interface, and then reconfigure the port IP address.

Precautions

The vpn-instance configuration can be cleared only using the undo ptp-adaptive vport port-id port-id port-ip command.

If the remote-port-ip command is run more than once, the latest configuration overrides the previous one.

The remote port IP address must be unique.

If the IP address of a port is deleted, the port-ip configuration of the corresponding virtual port is also deleted.

Example

# Set the IP address of virtual interface 1 to 2.2.2.2, VPN to g, IP address of the peer interface to 2.2.2.3, asymmetrical compensation value to 5, and priority of the virtual interface to 50.
<HUAWEI> system-view
[HUAWEI] ip vpn-instance g
[*HUAWEI-vpn-instance-g] ipv4-family
[*HUAWEI-vpn-instance-g-af-ipv4] com
[~HUAWEI] interface GigabitEthernet0/1/12
[*HUAWEI-GigabitEthernet0/1/12] ip address 2.2.2.2 32
[*HUAWEI-GigabitEthernet0/1/12] ip binding vpn-instance g
[*HUAWEI-GigabitEthernet0/1/12] quit
[~HUAWEI] ptp-adaptive enable
[*HUAWEI] ptp-adaptive device-type server-and-client
[*HUAWEI] ptp-adaptive vport 1 port-ip 2.2.2.2 vpn g
[*HUAWEI] ptp-adaptive vport 1 remote-port-ip 2.2.2.3
[*HUAWEI] ptp-adaptive vport 1 asymmetry-correction 5
[*HUAWEI] ptp-adaptive vport 1 local-priority 50
[*HUAWEI] ptp-adaptive time profile
[*HUAWEI] ptp-adaptive atr unicast-negotiate enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic