The ptp mac-egress command configures a MAC encapsulation mode for PTP packets (excluding those transparently transmitted) to be sent on a specific interface.
The undo ptp mac-egress destination-mac command restores the MAC multicast encapsulation mode.
The undo ptp mac-egress vlan command restores the default VLAN ID and priority value for MAC encapsulation.
By default, the MAC multicast encapsulation mode is used, with the priority value of 7 and no VLAN ID carried.
Parameter | Description | Value |
---|---|---|
destination-mac destination-mac |
Specifies a destination MAC address for PTP packets. |
The value is in the format of H-H-H in 1588v2 mode. An H is a hexadecimal number of 4 digits. In G.8275.1 mode, the value can only be 01-80-C2-00-00-0E or 01-1B-19-00-00-00. The default value is 01-1B-19-00-00-00. |
vlan vlan-id |
Specifies a VLAN ID for sent and received packets. |
The value is an integer ranging from 1 to 4094. |
priority priority-value |
Specifies the priority value for PTP packets. |
The value is an integer ranging from 0 to 7. The default value is 7, indicating the highest priority. |
Usage Scenario
PTP packets can be encapsulated in Layer 2 and Layer 3 packets for transmission. Select the encapsulation type according to the actual networking, and set the source and destination addresses and transmission priority of PTP packets.
Before configuring an encapsulation mode for PTP packets, check the link type for PTP packet transmission:Prerequisites
The delay measurement mechanism has been configured using the ptp delay-mechanism { delay | pdelay } command.
PTP has been enabled on the interface using the ptp enable command.Precautions
For clock services, the higher the priority value, the higher the packet priority, the more timely the packet forwarding, and the less the impact of the packet delay on the clock recovery performance. The default value is the maximum value. Generally, you do not need to change the value. In G.8275.1 mode, only multicast MAC encapsulation is supported.
<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet 0/1/0 [~HUAWEI-GigabitEthernet0/1/0] ptp mac-egress destination-mac 001B-1911-1100
<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet 0/1/0 [~HUAWEI-GigabitEthernet0/1/0] ptp mac-egress vlan 1 priority 2