Configuring EFM-OAM

The EFM-OAM configuration includes the following procedural steps to enable EFM-OAM on an interface or multiple interfaces for advanced monitoring and maintenance of Ethernet network.
  1. Enter the configure terminal command to enter global configuration mode.
    device# configure terminal
    
  2. Enter the link-oam command to enable the EFM-OAM protocol and enter EFM-OAM protocol configuration mode.
    device(config)# link-oam
  3. Enter the timeout command to configure the time in seconds for which the local Data Terminal Equipment (DTE) waits to receive OAM Protocol Data Units (OAM-PDUs) from the remote entity.
    device(config-link-oam)# timeout 5
    
  4. Enter the pdu-rate command to configure the number of PDUs to be transmitted per second by the DTE.
    device(config-link-oam)# pdu-rate 2
    
  5. Enter the ethernet command to enable EFM-OAM on an interface.
    EFM-OAM can be enabled on more than one interface. You can also specify a range of interfaces to enable EFM-OAM on multiple interfaces.
    You can set the operational mode of EFM-OAM as Active or Passive.
    • Enter the ethernet stackid/slot/port active command to set the EFM-OAM operational mode as active on an interface.
      device(config-link-oam)# ethernet 1/1/3 active
      device(config-link-oam)# ethernet 1/1/4 active
      
    • Enter the ethernet stackid/slot/port to stackid/slot/port active command to set the EFM-OAM operational mode as active on a range of interfaces.
      device(config-link-oam)# ethernet 1/1/5 to 1/1/8 active
      
    • Enter the ethernet stackid/slot/port passive command to set the EFM-OAM operational mode as passive on an interface.
      device(config-link-oam)# ethernet 2/1/1 passive
      
    • Enter the ethernet stackid/slot/port to stackid/slot/port passive command to set the EFM-OAM operational mode as passive on a range of interfaces.
      device(config-link-oam)# ethernet 2/1/1 to 2/1/8 passive
      
  6. (Optional) Enter the ethernet stackid/slot/port allow-loopback command to enable the interface to respond to a loopback request from the remote device.
    device(config-link-oam)# ethernet 1/1/3 allow-loopback
    
  7. (Optional) Enter the ethernet stackid/slot/port remote-failure command to set the device for the remote-failure action to be taken upon the reception of critical event information on the interface.
    device(config-link-oam)# ethernet 1/1/3 remote-failure critical-event action block-interface
     
  8. (Optional) Enter the remote-loopback ethernet stackid/slot/port command to start or stop the remote loopback procedure on a remote device.
    device(config-link-oam)# remote-loopback ethernet 2/1/1 start
    device(config-link-oam)# remote-loopback ethernet 2/1/1 stop
    

The following shows an example of EFM-OAM configuration.

device# configure terminal
device(config)# link-oam
device(config-link-oam)# timeout 5
device(config-link-oam)# pdu-rate 2
device(config-link-oam)# ethernet 1/1/3 active
device(config-link-oam)# ethernet 1/1/3 allow-loopback
device(config-link-oam)# remote-loopback ethernet 2/1/1 start 
device(config-link-oam)# ethernet 1/1/3 remote-failure critical-event action block-interface