Purpose
Display the statistics on Ethernet OAM link error
events after an Ethernet OAM connection is
established.
Clear statistics on Ethernet OAM packets and Ethernet
OAM link error events.
Ethernet OAM configuration example
Network requirements
On the network shown in
•
Enable Ethernet OAM on Device A and Device B to auto-detect link errors between the two devices
Determine the performance of the link between Device A and Device B by collecting statistics about
•
the error frames received by Device A
Figure 1 Network diagram
Configuration procedure
1.
Configure Device A:
# Configure GigabitEthernet 1/0/1 to operate in active Ethernet OAM mode, and enable
Ethernet OAM for it.
<DeviceA> system-view
[DeviceA] interface gigabitethernet 1/0/1
[DeviceA-GigabitEthernet1/0/1] oam mode active
[DeviceA-GigabitEthernet1/0/1] oam enable
# Set the errored frame event detection window to 20000 milliseconds, and set the errored frame
event triggering threshold to 10.
[DeviceA] oam errored-frame period 200
[DeviceA] oam errored-frame threshold 10
[DeviceA-GigabitEthernet1/0/1] quit
2.
Configure Device B:
# Configure GigabitEthernet 1/0/1 to operate in passive Ethernet OAM mode (the default), and
enable Ethernet OAM for it.
<DeviceB> system-view
[DeviceB] interface gigabitethernet 1/0/1
[DeviceB-GigabitEthernet1/0/1] oam mode passive
[DeviceB-GigabitEthernet1/0/1] oam enable
[DeviceB-GigabitEthernet1/0/1] quit
3.
Verify the configuration:
Figure
1, perform the following operations:
11
Command
display oam link-event { local | remote } [ interface
interface-type interface-number ]
reset oam [ interface interface-type interface-number ]