Configuring Precision Time Protocol Over Integrated Routing and Bridging
Junos OS for ACX Series router supports configuring precision time protocol (PTP) over integrated routing and bridging (IRB). You can configure a boundary clock node with PTP (IPv4) over IRB in a master-only mode across single or multiple IRB logical interfaces.
Starting in Junos OS Release 20.1R1, PTP is supported over IRB on master interface configurations for MPC7E line cards. This release also supports the configuration of aggregated Ethernet over IRB. The disable-lag-revertive-switchover command is also added at a global level. This configuration enables nonrevertive switchover for a LAG.
To configure Precision Time Protocol (PTP) over IRB:
- Configure physical interfaces with Layer 2 encapsulation
and create logical units with VLANs.
Sample configuration:
[edit interfaces ge-0/2/1] flexible-vlan-tagging; native-vlan-id 130; encapsulation flexible-ethernet-services; unit 615 { encapsulation vlan-bridge; vlan-id 615; } [edit interfaces ge-0/0/3] flexible-vlan-tagging; encapsulation flexible-ethernet-services; unit 615 { encapsulation vlan-bridge; vlan-id 615; } [edit interfaces ge-0/1/2] flexible-vlan-tagging; encapsulation flexible-ethernet-services; unit 615 { encapsulation vlan-bridge; vlan-id 615; } [edit interfaces ge-0/2/0] flexible-vlan-tagging; native-vlan-id 130; encapsulation flexible-ethernet-services;
- Configure physical interfaces on a bridge domain.
Sample configuration:
[edit bridge-domains] bd-615 { vlan-id 615; interface ge-0/1/2.615; interface ge-0/2/0.615; interface ge-0/2/1.615; interface ge-0/0/3.615; }
- Configure a routing instance for the bridge domain where
physical interfaces are members of the bridge domain.
Sample configuration:
[edit bridge-domains] bd-615 { vlan-id 615; interface ge-0/1/2.615; interface ge-0/2/0.615; interface ge-0/2/1.615; interface ge-0/0/3.615; routing-interface irb.615; }
- Configure an IRB logical interface with IPv4 address.
Sample configuration:
[edit interfaces irb] unit 615 { family inet { address 10.255.210.130/27; } }
- Configure PTP boundary clock master on IRB logical interface.
Sample configuration:
[edit protocols ptp] clock-mode boundary; priority2 210; unicast-negotiation; slave { interface ge-0/2/0.0 { unicast-mode { transport ipv4; clock-source 122.25.1.4 local-ip-address 122.25.1.5 { asymmetry 680; } } } master { interface ge-0/2/1.0 { unicast-mode { transport ipv4; clock-client 122.25.1.7/32 local-ip-address 122.25.1.6; } } interface irb.615 { unicast-mode { transport ipv4; clock-client 10.255.210.128/27 local-ip-address 10.255.210.130; } } }
You can use the following commands to monitor and troubleshoot the configuration:
show interfaces irb—View the configured logical IRB interface details.
show ptp master detail—View the configured master and its status along with local and remote client details.
show bridge domain—View the configured bridge domain and the associated physical interfaces and IRB routing instance details.
show ptp lock-status detail—View the PTP lock status details.
show ptp port detail—View the PTP port details.
show ptp global-information—View the configured PTP parameters.
show ptp clock—View the PTP clock information.