R1#configure terminal | Enter configure mode. |
R1(config)#interface lo | Configure loopback interface. |
R1(config-if)#ip address 1.1.1.1/32 secondary | Configure the IP address 1.1.1.1/32 of the loopback interface. |
R1(config-if)#interface xe1 | Configure interface xe1. |
R1(config-if)#ip address 192.168.4.101/24 | Configure the IP address 192.168.4.101/24 of the interface. |
R1(config-if)#interface xe2 | Configure interface xe2. |
R1(config-if)#ip address 10.1.1.1/24 | Configure the IP address 10.1.1.1/24 of the interface. |
R1(config-if)#exit | Exit interface mode. |
R1(config)#ptp clock 0 profile g8275.2 | Enables G8275.2 for PTP time or phase telecom profile. |
R1(config-ptp-clk)#number-ports 2 | Configure the number of PTP ports on the instance. |
R1(config-ptp-clk)#clock-port 1 | Configure the PTP clock-port number 1 for creating source address on the PTP instance. |
R1(config-clk-port)#transport ipv4 | Set the transport type as IPv4. |
R1(config-clk-port)#source-address ipv4 interface lo | Configure the underlying loopback source interface that is used by this PTP port. |
R1(config-clk-port)#network-interface xe1 | Configure the underlying interface that is used by this PTP port. |
R1(config-clk-port)#exit | Exit PTP clock port mode. |
R1(config-ptp-clk)#clock-port 2 | Configure the PTP clock-port number 2 for creating source address on the PTP instance. |
R1(config-clk-port)#transport ipv4 | Set the transport type as IPv4. |
R1(config-clk-port)#source-address ipv4 interface lo | Configure the underlying loopback source interface that is used by this PTP Port. |
R1(config-clk-port)#network-interface xe2 | Configure the underlying interface that is used by this PTP Port. |
R1(config-clk-port)#exit | Exit PTP clock port mode. |
R2#configure terminal | Enter configure mode. |
R2(config)#interface xe1 | Configure interface xe1. |
R2(config-if)#ip address 192.168.4.100/24 | Configure the IP address 192.168.4.100/24 of the interface. |
R2(config-if)#interface lo | Configure interface loopback. |
R2(config-if)#ip address 2.2.2.2/32 secondary | Configure the loopback IP address 2.2.2.2/32 of the interface. |
R2(config)#interface xe2 | Configure interface xe2. |
R2(config-if)#ip address 10.1.1.2/24 | Configure the IP address 10.1.1.2/24 of the interface. |
R2(config-if)#exit | Exit interface mode. |
R2(config-if)#ip route 1.1.1.1/32 192.168.4.101 | Configure the static route destination address as 1.1.1.1/32 and nexthop is 192.168.4.101 to reach other network. |
R2(config-if)#ip route 1.1.1.1/32 10.1.1.1 | Configure the static route destination address as 1.1.1.1/32 and nexthop is 10.1.1.1 to reach other network. |
R2(config-if)#exit | Exit interface mode. |
R2(config)#ptp clock 0 profile g8275.2 | Enables G8275.2 for PTP time or phase telecom profile. |
R2(config-ptp-clk)#number-ports 3 | Configure the number of PTP ports on the instance. |
R2(config-ptp-clk)#clock-port 1 | Configure the PTP clock-port number 1 for creating source address on the PTP instance. |
R2(config-clk-port)#transport ipv4 | Set the transport type as IPv4. |
R2(config-clk-port)#network-interface xe1 | Configure underlying interface that is used by this PTP port. |
R2(config-clk-port)#master ipv4 1.1.1.1 | Set master clock source address 1.1.1.1 using loopback IP. |
R2(config-clk-port)#exit | Exit PTP clock port mode. |
R2(config-ptp-clk)#clock-port 2 | Configure the PTP clock-port number 2 for creating source address on the PTP instance. |
R2(config-clk-port)#transport ipv4 | Set the transport type as IPv4. |
R2(config-clk-port)#network-interface xe2 | Configure underlying interface that is used by this PTP port. |
R2(config-clk-port)#master ipv4 1.1.1.1 | Set master clock source address 1.1.1.1. |
R2(config-clk-port)#exit | Exit PTP clock port mode. |