
60
Configuring a priority of the clock
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Configure priority 1 of the
clock.
ptp
priority
clock-source
{
bits1
|
bits2
|
local
} {
priority1
pri1-value
|
priority2 pri2-value
}
By default:
•
If the PTP profile is IEEE
1588 version 2, the default
value for both priority 1 and
priority 2 is 128.
•
If the PTP profile is IEEE
802.1AS, the default value is
246 for priority 1 and 248 for
priority 2.
Specifying the system time source as PTP
Before the configuration, make sure you use the
clock protocol
command to specify the time
protocol as PTP. For more information about the
clock protocol
command, see
Fundamentals
Command Reference
.
To specify the system time source as PTP:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Specify the system time
source as PTP.
clock protocol ptp
By default, the system time
source is NTP.
Enabling PTP on a port
A port enabled with PTP becomes a PTP port.
An OC can have only one PTP port.
To enable PTP on a port:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter Layer 2 Ethernet
interface view.
interface
interface-type
interface-number
N/A
3.
Enabling PTP on the port.
ptp
enable
By default, PPP is disabled on a
port.
Displaying and maintaining PTP
Execute
display
commands in any view and the
reset
command in user view.
Task Command
Display PTP clock information.
display ptp clock