Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

Configuring Ethernet OAM Link Fault Management

 

Ethernet OAM link fault management (LFM) can be used for physical link-level fault detection and management. The IEEE 802.3ah LFM works across point-to-point Ethernet links either directly or through repeaters.

To configure Ethernet OAM LFM using the CLI:

  1. Enable IEEE 802.3ah OAM support on an interface:
    [edit protocols oam ethernet link-fault-management]

    user@switch# set interface interface-name
    Note

    You can configure Ethernet OAM LFM on aggregated interfaces.

    Note

    The remaining steps are optional. You can choose which of these features to configure for Ethernet OAM LFM on your switch.

  2. Specify whether the interface or the peer initiates the discovery process by configuring the link discovery mode to active or passive (active = interface initiates; passive = peer initiates):
    [edit protocols oam ethernet link-fault-management]

    user@switch# set interface interface-namelink-discovery active
  3. Configure a periodic OAM PDU-sending interval (in milliseconds) for fault detection:
    [edit protocols oam ethernet link-fault-management]

    user@switch# set interface pdu-intervalinterval
  4. Specify the number of OAM PDUs that an interface can miss before the link between peers is considered down:
    [edit protocols oam ethernet link-fault-management]

    user@switch# set interface interface-name pdu-threshold threshold-value
  5. Configure event threshold values on an interface for the local errors that trigger the sending of link event TLVs:
    • Set the threshold value (in seconds) for sending frame-error events or taking the action specified in the action profile:

      [edit protocols oam ethernet link-fault-management]

      user@switch# set interface interface-name event-thresholds frame-error count
    • Set the threshold value (in seconds) for sending frame-period events or taking the action specified in the action profile:

      [edit protocols oam ethernet link-fault-management]

      user@switch# set interface interface-name event-thresholds frame-period count


    • Set the threshold value (in seconds) for sending frame-period-summary events or taking the action specified in the action profile:

      [edit protocols oam ethernet link-fault-management]

      user@switch# set interface interface-name event-thresholds frame-period-summary count
    • Set the threshold value (in seconds) for sending symbol-period events or taking the action specified in the action profile:

      [edit protocols oam ethernet link-fault-management]

      user@switch# set interface interface-name event-thresholds symbol-period count
    Note

    You can disable the sending of link event TLVs.

    To disable the sending of link event TLVs:

    [edit protocols oam ethernet link-fault-management]

    user@switch# set interface interface-name negotiation-options no-allow-link-events
  6. Create an action profile to define event fault flags and thresholds to be taken when the link fault event occurs. Then apply the action profile to one or more interfaces. (You can also apply multiple action profiles to a single interface.)
    1. Name the action profile:
      [edit protocols oam ethernet link-fault-management]

      user@switch# set action-profile profile-name
    2. Specify actions to be taken by the system when the link fault event occurs:
      [edit protocols oam ethernet link-fault-management]

      user@switch# set action-profile profile-name action syslog
      user@switch# set action-profile profile-name action link-down
    3. Specify events for the action profile:
      [edit protocols oam ethernet link-fault-management]

      user@switch# set action-profile profile-name event link-adjacency-loss
    Note

    For each action profile, you must specify at least one link event and one action. The actions are taken only when all of the events in the action profile are true. If more than one action is specified, all actions are executed. You can set a low threshold for a specific action such as logging the error and set a high threshold for another action such as system logging.

  7. Set a remote interface into loopback mode so that all frames except OAM PDUs are looped back without any changes made to the frames. Set the remote DTE in loopback mode (the remote DTE must support remote-loopback mode) and then enable remote loopback support for the local interface.
    [edit protocols oam ethernet link-fault-management]

    user@switch# set interface interface-name remote-loopback
    user@switch# set interface interface-name negotiation-options allow-remote-loopback