Step 1
|
configure terminal
switch# configure terminal
switch(config)#
|
Enters global configuration
mode.
|
Step 2
|
feature ethernet-link-oam
switch(config)# feature ethernet-link-oam
|
Enables the Ethernet Link OAM
feature.
|
Step 3
|
ethernet oam profile profile-name
switch(config)# ethernet oam profile Profile_1
switch(config-eoam)#
|
Creates a new Ethernet
Operations, Administration and Maintenance (OAM) profile and enters Ethernet
OAM configuration mode.
|
Step 4
|
hello-interval interval-time
switch(config-eoam)# hello-interval 100ms
switch(config-eoam-lm)#
|
Configures hello interval limit for the Ethernet OAM profile. The valid value for hello interval is 100 millisecond. The default
value is 1 second.
|
Step 5
|
link-monitor
switch(config-eoam)# link-monitor
switch(config-eoam-lm)#
|
Enters the Ethernet OAM link
monitor configuration mode.
|
Step 6
|
(Optional) symbol-period window
window
switch(config-eoam-lm)# symbol-period window 60000
|
(Optional)
Configures the
window size (in milliseconds) for an Ethernet OAM symbol-period error event.
The range is
1000 to 60000. The default value is 1000.
|
Step 7
|
(Optional) symbol-period threshold low
threshold [high
threshold]
switch(config-eoam-lm)# symbol-period threshold low 10000000 high 60000000
|
(Optional)
Configures the
thresholds (in symbols) that trigger an Ethernet OAM symbol-period error event.
The high threshold is optional and is configurable only in conjunction with the
low threshold.
The range is 1
to 60000000. The default low threshold is 1.
|
Step 8
|
(Optional) frame window
window
switch(config-eoam-lm)# frame window 60
|
(Optional)
Configures the frame window
size (in milliseconds) of an OAM frame error event.
The range is 1000 to 60000.
The default value is 1000.
|
Step 9
|
(Optional) frame threshold low
threshold
high
threshold
switch(config-eoam-lm)# frame threshold low 10000000 high 60000000
|
(Optional)
Configures the thresholds (in
frames) that triggers an Ethernet OAM frame error event. The high threshold is
optional and is configurable only in conjunction with the low threshold.
The range is 1 to 12000000.
The default low threshold is 1.
|
Step 10
|
(Optional) frame-period window
window
switch(config-eoam-lm)# frame-period window 60000
|
(Optional)
Configures the window size
(in milliseconds) for an Ethernet OAM frame-period error event.
The range is 1000 to 60000.
The default value is 1000.
|
Step 11
|
(Optional) frame-period threshold low
threshold [high
threshold]
switch(config-eoam-lm)# frame-period threshold low 100 high 1000000
|
(Optional)
Configures the
thresholds (in frames) that trigger an Ethernet OAM frame-period error event.
The high threshold is optional and is configurable only in conjunction with the
low threshold.
The range is 1
to 1000000. The default low threshold is 60000.
The IEEE 802.3
standard defines threshold crossing events as number of error frames in a
window. To comply with the standards, the low and high threshold for
frame-period events is measured in errors per million frames. Hence, the
calculation to determine the remote low and high threshold is (configured
threshold * frame window in received Bridge Protocol Data Unit (BPDU))/1000000.
For example, if the received frame window=300, then high threshold is 20000 *
300 / 1000000 = 6.
|
Step 12
|
(Optional) frame-seconds window
window
switch(config-eoam-lm)# frame-seconds window 900000
|
(Optional)
Configures the
window size (in milliseconds) for the OAM frame-seconds error event.
The range is
10000 to 900000. The default value is 60000.
|
Step 13
|
(Optional) frame-seconds threshold low
threshold [high
threshold]
switch(config-eoam-lm)# frame-seconds threshold 3 threshold 900
|
(Optional)
Configures the
thresholds (in seconds) that trigger a frame-seconds error event. The high
threshold value can be configured only in conjunction with the low threshold
value.
The range is 1
to 900. The default value is 1.
|
Step 14
|
exit
switch(config-eoam-lm)# exit
switch(config-eoam)#
|
Exits to
Ethernet OAM mode.
|
Step 15
|
connection timeout
seconds
switch(config-eoam)# connection timeout 30
|
Configures the
timeout value (in seconds) for an Ethernet OAM session.
The range is 2
to 30. The default value is 5.
|
Step 16
|
mode {active |
passive}
switch(config-eoam)# mode passive
|
Configures the Ethernet OAM
mode. The default is active.
|
Step 17
|
require-remote
switch(config-eoam)# require-remote
switch(config-eoam-require)#
|
Enters the require-remote
configuration submode to specify the features that you have to enable before an
Ethernet OAM session can become active.
|
Step 18
|
mode {active |
passive}
switch(config-eoam-require)# mode active
|
Requires that active mode
or passive mode is configured on the remote end before the Ethernet OAM session
becomes active.
|
Step 19
|
link-monitoring
switch(config-eoam-require)# link-monitoring
|
Requires that
link-monitoring is configured on the remote end before the Ethernet OAM session
becomes active.
|
Step 20
|
exit
switch(config-eoam-require)# exit
switch(config-eoam)#
|
Exits the
require-remote configuration submode.
|
Step 21
|
action
switch(config-eoam)# action
switch(config-eoam-action)#
|
Enters the
action configuration submode to configure event actions.
|
Step 22
|
capabilities-conflict
{disable |
efd
|
error-disable-interface}
switch(config-eoam-action)# capabilities-conflict disable
|
Specifies the
action that is taken on an interface when a capabilities-conflict event occurs.
The default action is to create a syslog entry.
Note
|
If you
change the default, the
log keyword
option is available in Interface Ethernet OAM configuration mode to override
the profile setting and log the event for the interface when it occurs.
|
|
Step 23
|
critical-event {disable |
error-disable-interface}
switch(config-eoam-action)# critical-event error-disable-interface
|
Specifies the
action that is taken on an interface when a critical-event notification is
received from the remote Ethernet OAM peer. The default action is to create a
syslog entry.
Note
|
If you
change the default, the
log keyword
option is available in Interface Ethernet OAM configuration mode to override
the profile setting and log the event for the interface when it occurs.
|
|
Step 24
|
discovery-timeout
{disable |
efd
|
error-disable-interface}
switch(config-eoam-action)# discovery-timeout disable
|
Specifies the
action that is taken on an interface when a connection timeout occurs. The
default action is to create a syslog entry.
Note
|
If you
change the default, the
log keyword
option is available in Interface Ethernet OAM configuration mode to override
the profile setting and log the event for the interface when it occurs.
|
|
Step 25
|
dying-gasp {disable |
error-disable-interface}
switch(config-eoam-action)# dying-gasp error-disable-interface
|
Specifies the
action that is taken on an interface when a dying-gasp notification is received
from the remote Ethernet OAM peer. The default action is to create a syslog
entry.
Note
|
If you
change the default, the
log keyword
option is available in Interface Ethernet OAM configuration mode to override
the profile setting and log the event for the interface when it occurs.
|
|
Step 26
|
high-threshold {error-disable-interface |
log}
switch(config-eoam-action)# high-threshold error-disable-interface
|
Specifies the
action that is taken on an interface when a high threshold is exceeded. The
default is to take no action when a high threshold is exceeded.
Note
|
If you
change the default, the
disable
keyword option is available in Interface Ethernet OAM configuration mode to
override the profile setting and take no action at the interface when the event
occurs.
|
|
Step 27
|
remote-loopback disable
switch(config-eoam-action)# remote-loopback disable
|
Specifies that
no action is taken on an interface when a remote-loopback event occurs. The
default action is to create a syslog entry.
Note
|
If you
change the default, the
log keyword
option is available in Interface Ethernet OAM configuration mode to override
the profile setting and log the event for the interface when it occurs.
|
|
Step 28
|
session-down {disable |
efd
|
error-disable-interface}
switch(config-eoam-action)# session-down error-disable-interface
|
Specifies the
action that is taken on an interface when an Ethernet OAM session goes down.
Note
|
If you
change the default, the
log keyword
option is available in Interface Ethernet OAM configuration mode to override
the profile setting and log the event for the interface when it occurs.
|
|
Step 29
|
session-up disable
switch(config-eoam-action)# session-up disable
|
Specifies that
no action is taken on an interface when an Ethernet OAM session is established.
The default action is to create a syslog entry.
Note
|
If you
change the default, the
log keyword
option is available in Interface Ethernet OAM configuration mode to override
the profile setting and log the event for the interface when it occurs.
|
|
Step 30
|
uni-directional
link-fault {disable |
efd
|
error-disable-interface}
switch(config-eoam-action)# uni-directional link-fault disable
|
Specifies the
action that is taken on an interface when a link-fault notification is received
from the remote Ethernet OAM peer. The default action is to create a syslog
entry.
Note
|
If you
change the default, the
log keyword
option is available in Interface Ethernet OAM configuration mode to override
the profile setting and log the event for the interface when it occurs.
|
|
Step 31
|
wiring-conflict {disable |
efd
|
log}
switch(config-eoam-action)# wiring-conflict disable
|
Specifies the
action that is taken on an interface when a wiring-conflict event occurs. The
default is to put the interface into error-disable state.
Note
|
If you
change the default, the
error-disable-interface keyword option is
available in Interface Ethernet OAM configuration mode to override the profile
setting and put the interface into error-disable state when the event occurs.
|
|
Step 32
|
end
switch(config-eoam-action)# end
|
Ends the
configuration session and exits to the EXEC mode.
|