Test Optical Interfaces

The purpose of this section is to do a quick test on all optical interfaces on the router. The configuration might change according to the type of interface being tested; configuration examples are provided for some of the most commonly used interfaces.

You will need a fiber loop and an optical attenuator for Intermediate Reach and Long Haul interfaces. No attenuation is required for multimode Gigabit Ethernet interfaces.

Configure a Private IP Address and Run Ping Tests

You must configure a private IP address to ping through the fiber loop. In this example, we use 10.0.0.1/30 as the private IP address; you can change it if you are already using addresses in the same range (e.g., for the management interface).

To quickly see how many interfaces are present on the router, use the show interfaces terse command. Consider only interfaces whose name is in the form type-fpc/pic/port—for example, so-0/1/0, at-1/2/0, and so on. Ignore the internal interfaces (e.g., pimd, pime, tun, tap, lo0, and dsc).

Run a loopback test on SONET/SDH interfaces

To configure the 10.0.0.1 address on SONET interfaces, use these commands in configuration mode, replacing so-0/0/0 with the actual interface you are configuring:

[edit interfaces]
lab@r1-re0# set so-0/0/0 encapsulation cisco-hdlc no-keepalives

[edit interfaces]
lab@r1-re0# set so-0/0/0 unit 0 family inet address 10.0.0.1/30

Check that the configuration is correct, and then commit:

[edit]
lab@rl-re0# show interfaces so-0/0/0 no-keepalives; ...

Get JUNOS High Availability now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.