Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Configuring SONET/SDH Loopback Capability

Configuring SONET/SDH Loopback Capability

To configure loopback capability on a SONET/SDH interface:

  1. In configuration mode, go to the [edit interfaces interface-name sonet-options] hierarchy level.
    [edit]user@host# edit interfaces interface-name sonet-options
  2. Configure the loopback option as local loopback, remote loopback, or payload.

    Note: To exchange BERT patterns between a local router and a remote router, include the loopback remote statement in the interface configuration at the remote end of the link. From the local router, issue the test interface command.

    [edit interfaces interface-name sonet-options]user@host# set loopback (local | remote | payload)

For more information about configuring BERT, see Interface Diagnostics. For more information about using operational mode commands to test interfaces, see the Junos OS Operational Mode Commands.

To turn off the loopback capability:

  1. In configuration mode, go to the [edit] hierarchy level.
    user@host# edit
  2. Remove the loopback option to turn off the loopback capability.
    [edit ]user@host# delete interfaces so-fpc/pic/port sonet-options loopback

For channel 0 on channelized interfaces only, you can include the loopback statement at the [edit interfaces interface-name interface-type-options] hierarchy level. The loopback setting configured for channel 0 applies to all channels on the channelized interface. The loopback statement is ignored if you include it at this hierarchy level in the configuration of other channels. To configure loopbacks on individual channels, you must include the channel-type-options loopback statement in the configuration for each channel. This allows each channel to be put in loopback mode independently.

For example, for DS3 channels on a channelized OC12 interface, the sonet-options loopback statement is supported only for channel 0; it is ignored if included in the configuration for channels 1 through 11. The SONET/SDH loopback configured for channel 0 applies to all 12 channels equally. To configure loopbacks on the individual DS3 channels, you must include the t3-options loopback statement in the configuration for each channel. This allows each DS3 channel can be put in loopback mode independently.

Displaying SONET/SDH Loopback Capability Configuration

Purpose

To display the loopback capability configuration in SONET/SDH.

Action

To display loopback capability, for example on the so-1/0/0 interface, perform the following steps:

  1. In configuration mode, go to the [edit interfaces interface-name] hierarchy level where the interface-name is so-1/0/0.
    [edit]user@host# edit interfaces so-1/0/0
  2. Display the loopback capability by issuing the show operational mode command.
    [edit interfaces so-1/0/0]user@host# show
  3. The following output is displayed.
    no-keepalives;
    encapsulation cisco-hdlc;
    sonet-options {
    	loopback local;
    }
    unit 0 {
    	family inet {
    		address 10.100.100.1/24;
    	}
    }

    With this configuration, the link stays up, so you can loop ping packets to a remote router. The loopback local statement causes the interface to loop within the PIC just before the data reaches the transceiver.

Determining Problem Is Internal or External with Loopback Capability

Problem

Problem is internal or external.

Solution

To determine whether a problem is internal or external, you have to loop packets on both the local and the remote router using the loopback capability.

To loop packets on both the local and the remote router, perform the following steps:

  1. In configuration mode, go to the [edit interfaces interface-name] hierarchy level.
    [edit]user@host# edit interfaces interface-name sonet-options]
  2. Configure the no-keepalives and encapsulation cisco-hdlc options.
    [edit interfaces interface-name]user@host# set no-keepalivesuser@host# set encapsulation cisco-hdlc
  3. In configuration mode, go to the [edit interfaces interface-name sonet-options] hierarchy level.
    [edit]user@host# edit interfaces interface-name sonet-options]
  4. Configure the loopback local option. This option causes the interface to loop within the PIC just before the data reaches the transceiver.
    [edit interfaces interface-name sonet-options]user@host# set loopback local

You can also determine whether there is an internal problem or an external problem by checking the error counters in the output of the show interface interface-name extensive operational mode command.

Published: 2012-12-05