57-36
Software Configuration Guide—Release 15.0(2)SG
OL-23818-01
Chapter 57 Configuring Ethernet OAM and CFM
Enabling and Configuring Ethernet OAM
Enabling Ethernet OAM on an Interface
To enable Ethernet OAM on an interface, perform this task:
Enter the no ethernet oam interface configuration command to disable Ethernet OAM on the interface.
This example shows how to set basic OAM parameters on the switch:
Switch(config)# int gi1/3
Switch(config-if)# ethernet oam
Switch(config-if)# ethernet oam max-rate 9
Switch(config-if)# ethernet oam mode passive
Switch(config-if)# end
Switch# show ethernet oam status int gi1/2
GigabitEthernet1/2
General
-------
Admin state: enabled
Mode: passive
PDU max rate: 9 packets per second
PDU min rate: 1 packet per 1 second
Link timeout: 5 seconds
High threshold action: no action
Command Purpose
Step 1 Switch# configure terminal Enters global configuration mode.
Step 2 Switch(config)# interface interface-id Defines an interface to configure as an EOM interface, and
enters interface configuration mode.
Step 3 Switch(config-if)# ethernet oam Enables Ethernet OAM on the interface.
Step 4 Switch(config-if)# ethernet oam [max-rate
oampdus | min-rate seconds | mode {active |
passive} | timeout seconds]
Configures these optional OAM parameters:
(Optional) Enter max-rate oampdus to configure the
maximum number of OAM PDUs sent per second. The
range is from 1 to 10.
(Optional) Enter min-rate seconds to configure the
minimum transmission rate in seconds when one OAM
PDU is sent per second. The range is from 1 to 10.
(Optional) Enter mode active to set OAM client mode
to active. active is the default.
(Optional) Enter mode passive to set OAM client
mode to passive.
Note When Ethernet OAM mode is enabled on two
interfaces passing traffic, at least one must be in the
active mode.
(Optional) Enter timeout seconds to set a time for
OAM client timeout. The range is from 2 to 30.
Step 5 Switch(config-if)# end Returns to privileged EXEC mode.
Step 6 Switch# show ethernet oam status [interface
interface-id]Verifies the configuration.
Step 7 Switch# copy running-config startup-config (Optional) Saves your entries in the configuration file.