To configure the link OAM, perform the following steps.
device# configure terminal device(config)# protocol link-oam device(config-link-oam)#
device(config-link-oam)# shutdown
By default, link OAM protocol is enabled when protocol link-oam is configured .
device(config-link-oam)# timeout 4
device(config-link-oam)# pdu-rate 10
Note
It is recommended to configure timeout interval at least three times the PDU interval, to avoid link OAM protocol flaps against loss of one or two PDUs for any latency issues in general and during HA Failover.device(config)# interface ethernet 1/1 device(config-int-eth1/1)# link-oam enable passive
Note
The mode can be active or passive. The no form of the command allows you to remove the current configuration, after which you can reconfigure.device(config-int-eth1/1)#link-oam allow-loopback
device(config-int-eth1/1)# link-oam remote-failure link-fault action block-interface device(config-int-eth1/1)# link-oam remote-failure dying-gasp action block-interface device(config-int-eth1/1)# link-oam remote-failure critical-event action block-interface
Note
The command configures the block-interface action for each of the three events that the protocol supports.device# show link-oam info Ethernet Link Status OAM Status Mode Local Stable Remote Stable 1/1 up up active satisfied satisfied 1/2 up up passive satisfied satisfied 1/3 up up active satisfied satisfied 1/4 up init passive unsatisfied unsatisfied 1/5 down down passive unsatisfied unsatisfied 1/6 down down passive unsatisfied unsatisfied 1/7 down down passive unsatisfied unsatisfied
device# show link-oam statistics Ethernet Tx PDUs Rx PDUs 2/1 93 92 2/2 45 46
device# link-oam remote-loop-back ethernet 1/1 start device# link-oam remote-loop-back ethernet 1/1 stop
device# clear link-oam statistics