The ptp-adaptive master-only-vport port-ip command configures a local IP address for a specified virtual upstream port to initiate Layer 3 unicast negotiation with the VPN instance name (bound to the loopback interface) of a specific virtual port specified.
The undo ptp-adaptive master-only-vport port-ip command cancels the configuration of the local IP address used by a virtual upstream interface to initiate Layer 3 unicast negotiation with the VPN instance name (bound to the loopback interface) of a specific virtual port specified.
The undo ptp-adaptive master-only-vport command deletes all configurations of a specified port.
By default, no virtual interface is configured to function only as the master interface.
Parameter | Description | Value |
---|---|---|
port-id |
Specifies the master-only-vport ID. |
The value is an integer ranging from 1 to 5. |
ip-address |
Specifies the IP address of a virtual port. |
The value is in dotted decimal notation. |
vpn-name |
Specifies the VPN instance name. |
The value is a string of 1 to 31 case-sensitive characters, spaces not supported. Spaces are allowed in the string only when double quotation marks are used around the string. The VPN instance name cannot be _public_. |
Usage Scenario
The master-only vport status of the 1588 ATR T-BC device is fixed to master, which is used to output time source information to the downstream device. It is usually used on an NE where multiple rings intersect. The master-only vport is used to output time information to the lower-layer network. It can also be used on an NE connected to a base station to provide time information for the base station.
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
Only one local IP address can be configured for a master-ony-vport. The local IP address cannot be the same as the local IP address of any virtual port.
If the IP address of an interface is deleted, the port-ip configuration of the corresponding master-ony-vport is also deleted.<HUAWEI> system-view [HUAWEI] ip vpn-instance g [*HUAWEI-vpn-instance-g] ipv4-family [*HUAWEI-vpn-instance-g-af-ipv4] commit [~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 time profile [*HUAWEI] ptp-adaptive atr unicast-negotiate enable