No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

S12700 V200R013C00 Command Reference

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
CFM Configuration Commands

CFM Configuration Commands

Command Support

Commands provided in this section and all the parameters in the commands are supported by all switch models by default, unless otherwise specified. For details, see specific commands.

active time

Function

The active time command sets the RMEP activation time.

The undo active time command deletes the RMEP activation time.

By default, the RMEP activation time is 0 seconds.

Format

active time time

undo active time

Parameters

Parameter Description Value
time time Specifies the RMEP activation time. The value ranges from 0 to 600, in seconds.

Views

MA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After you run the remote-mep ccm-receive enable command to enable the local device to receive CCMs from an RMEP in the same MA, the local device generates an RMEP connectivity fault alarm in the following situations:
  • A connectivity fault is detected between the local MEP and the RMEP using CC.

  • The physical link works normally between the local MEP and the RMEP. The remote device is not configured with a MEP when connectivity check is performed or the MEP configuration is later than connectivity check. In this case, if the local MEP does not receive the CCM from the RMEP in consecutive three intervals for sending CCMs, the local device considers that a connectivity fault occurs between the local MEP and the RMEP.

    The RMEP connectivity fault alarm is generated incorrectly. To solve the problem, set the RMEP activation time.

Precautions

If the RMEP activation time is set on the local device that is enabled to receive CCMs from a certain RMEP, the local device can receive CCMs at the configured RMEP activation time. That is, the activation time is the time reserved for configuring the RMEP.

At the RMEP activation time, if the local MEP does not receive any CCMs in three consecutive sending intervals, a connectivity fault occurs between the local MEP and the RMEP. Then the local device generates an alarm about the RMEP connectivity fault.

If the local device uses the default RMEP activation time, the local MEP receives CCMs from the RMEP immediately after the local device is enabled to receive CCMs from the RMEP.

NOTE:

The RMEP activation time takes effect only for subsequent RMEPs in an MA, but is invalid for existing RMEPs in the MA.

Example

# Set the RMEP activation time to 30s.

<HUAWEI> system-view
[HUAWEI] cfm md md1
[HUAWEI-md-md1] ma ma1
[HUAWEI-md-md1-ma-ma1] active time 30

alarm finish time

Function

The alarm finish time command sets the clear alarm anti-jitter time.

The undo alarm finish time command restores the default clear alarm anti-jitter time.

By default, the clear alarm anti-jitter time is 10000 ms.

Format

alarm finish time time

undo alarm finish time

Parameters

Parameter Description Value
time time Specifies the clear alarm anti-jitter time. The value ranges from 0 to 30000, in milliseconds. The step is 500, for example, the anti-jitter time can be 500, 1000, or 1500.

Views

MA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When detecting a link fault or link recovery, CFM will send an alarm to the NMS. If CFM frequently detects a link fault or link recovery, alarm flapping occurs. To suppress alarm flapping, run the alarm finish time command to set the clear alarm anti-jitter time. This prevents the NMS or system from being affected by frequently reported alarms.

Precautions

When detecting link recovery, CFM compares the current link recovery time with the last time the fault was generated. CFM sends an alarm to the NMS only when the time difference is not smaller than the clear alarm anti-jitter time.

Example

# Set the clear alarm anti-jitter time to 2000 ms.

<HUAWEI> system-view
[HUAWEI] cfm md md1
[HUAWEI-md-md1] ma ma1
[HUAWEI-md-md1-ma-ma1] alarm finish time 2000
Related Topics

alarm occur time

Function

The alarm occur time command sets the alarm anti-jitter time.

The undo alarm occur time command restores the default alarm anti-jitter time.

By default, the alarm anti-jitter time is 2500 ms.

Format

alarm occur time time

undo alarm occur time

Parameters

Parameter Description Value
time time Specifies the alarm anti-jitter time. The value ranges from 0 to 30000, in milliseconds. The step is 500, for example, the anti-jitter time can be 500, 1000, or 1500.

Views

MA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When detecting a link fault or link recovery, CFM will send an alarm to the NMS. If CFM frequently detects a link fault or link recovery, alarm flapping occurs. To suppress alarm flapping, run the alarm occur time command to set the alarm anti-jitter time. This prevents the NMS or system from being affected by frequently reported alarms.

Precautions

When detecting a fault, CFM compares the current fault generation time with the last time the fault was rectified. CFM sends an alarm to the NMS only when the time difference is not smaller than the alarm anti-jitter time.

Example

# Set the alarm anti-jitter time to 2000 ms.

<HUAWEI> system-view
[HUAWEI] cfm md md1
[HUAWEI-md-md1] ma ma1
[HUAWEI-md-md1-ma-ma1] alarm occur time 2000
Related Topics

alarm rdi track-action disable

Function

The alarm rdi track-action disable command disables CFM from being triggered when an RDI alarm is generated.

The undo alarm rdi track-action disable command enables CFM to be triggered when an RDI alarm is generated.

By default, CFM is triggered when an RDI alarm is generated.

Format

alarm rdi track-action oam-mgr disable

undo alarm rdi track-action oam-mgr disable

Parameters

Parameter Description Value
oam-mgr Indicates that CFM is associated with another feature in the OAM management view. -

Views

MA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When CFM is associated with other functions such as EFM and the device receives an RDI alarm, run the alarm rdi track-action disable command to disable CFM from being triggered.

Prerequisites

An MD has been created using the cfm md md-name command, and an MA has been created using the ma ma-name command.

Example

# Disable CFM from being triggered in the OAM MGR view when an RDI alarm is generated.

<HUAWEI> system-view
[HUAWEI] cfm md md1
[HUAWEI-md-md1] ma ma1
[HUAWEI-md-md1-ma-ma1] alarm rdi track-action oam-mgr disable

ccm-interval

Function

The ccm-interval command sets the interval at which a Maintenance Association End Point (MEP) sends or detects Continuity Check Messages (CCMs) in an MA.

The undo ccm-interval command restores the default interval.

By default, a MEP in an MA sends or detects CCMs every 1000 ms.

Format

ccm-interval interval

undo ccm-interval

Parameters

Parameter Description Value
interval Specifies the interval at which a MEP sends or detects CCMs.

The value is an integer, in milliseconds. The value is 3.3, 10, 100, 1000, or 10000.

Views

MA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To set the interval at which a MEP in an MA sends or detects CCMs, use this command.

Precautions

All the MEPs in an MA must send or detect CCMs at the same interval.

The interval at which CCMs are sent or detected cannot be changed on the device in an MA if one of the following operations is performed:

The undo mep ccm-send or undo mep ccm-receive command must be run before the interval is reconfigured.

Example

# Set the interval for sending or detecting CCMs to 1000 ms within the MA ma1 where the device is not enabled to send or receive CCMs.

<HUAWEI> system-view
[HUAWEI] cfm enable
[HUAWEI] cfm md md1
[HUAWEI-md-md1] ma ma1
[HUAWEI-md-md1-ma-ma1] ccm-interval 1000

# Set the interval for sending or detecting CCMs to 1000 ms within the MA ma1 where the device is enabled to send and receive CCMs.

<HUAWEI> system-view
[HUAWEI] cfm enable
[HUAWEI] cfm md md1
[HUAWEI-md-md1] ma ma1
[HUAWEI-md-md1-ma-ma1] undo mep ccm-send enable
[HUAWEI-md-md1-ma-ma1] undo remote-mep ccm-receive enable
[HUAWEI-md-md1-ma-ma1] ccm-interval 1000

cfm default md

Function

The cfm default md command creates the default MD.

The undo cfm default md command deletes the default MD.

By default, the default MD is not created.

Format

cfm default md [ level level ]

undo cfm default md

Parameters

Parameter Description Value
level level Specifies the level of the default MD. The value is an integer that ranges from 0 to 7. A larger value indicates a higher MD priority. By default, the level of the default MD is 7 (highest level).

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To identify and locate faults on an MP or a link in an MD, create the default MD.

Precautions

The level of the default MD must be higher than that of all MDs to which MEPs configured on the local device belong. In addition, the default MD must be of the same level as the higher-level MD. The default MD transmits higher-level CCMs and creates MIPs to send LTR messages.

On the device configured with the default MD, a MIP can be created based on the default MD in the MA that is not associated with a VLAN. The interface where the default MD is configured generates a MIP based on the MIP creation rule.

To modify the MD level, delete the default MD and reconfigure it.

Prerequisites

CFM has been enabled globally using the cfm enable (system view) command.

Example

# Create the default MD at level 6.

<HUAWEI> system-view
[HUAWEI] cfm enable
[HUAWEI] cfm default md level 6

cfm enable (system view)

Function

The cfm enable command enables Connectivity Fault Management (CFM) globally.

The undo cfm enable command disables CFM globally.

By default, CFM is disabled globally.

Format

cfm enable

undo cfm enable

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To identify and locate faults on links, enable CFM globally.

Precautions

After you use the undo cfm enable command to disable CFM globally, the device automatically deletes all the CFM configurations, including the configurations of MDs, MAs, MEPs, MIPs, and RMEPs.

All the configuration commands related to the CFM function are valid only after CFM is enabled globally.

Example

# Enable CFM globally.

<HUAWEI> system-view
[HUAWEI] cfm enable

cfm if-down trigger ccm-send-stop

Function

The cfm if-down trigger ccm-send-stop command triggers the MEP on an interface to stop sending CCMs when the interface goes Down.

The undo cfm if-down trigger ccm-send-stop command restores the default configuration.

By default, the MEP on an interface is not triggered to stop sending CCMs when the interface goes Down.

Format

cfm if-down trigger ccm-send-stop

undo cfm if-down trigger ccm-send-stop

Parameters

None

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Figure 12-1  VLAN stacking scenario with an inward-facing MEP configured

As shown in Figure 12-1, in a VLAN stacking scenario with an inward-facing MEP configured, a VLL is configured between Switch1 and Switch2, 802.1ag detection is configured between Switch2 and Switch3, and the MEP on Switch3 is inward-facing. If the interface where the MEP resides goes Down, to prevent the MEP from continuing to send CCMs so that other services can detect the fault information detected by CC, run the cfm if-down trigger ccm-send-stop command in the interface view.

Prerequisites

Run the cfm enable command to enable CFM globally.

Example

# Trigger the MEP on GE 1/0/1 to stop sending CCMs when the interface goes Down.

<HUAWEI> system-view
[HUAWEI] cfm enable
[HUAWEI] interface gigabitethernet 1/0/1
[HUAWEI-GigabitEthernet1/0/1] cfm if-down trigger ccm-send-stop

cfm md

Function

The cfm md command creates an MD and displays the MD view, or displays the view of an existing MD.

The undo cfm md command deletes an MD.

Format

cfm md md-name [ format { no-md-name | dns dns-md-format-name | mac-address mac-md-format-name | string string-md-format-name } ] [ level level ]

undo cfm md [ md-name ]

Parameters

Parameter

Description

Value

md md-name

Specifies the name of an MD.

The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?). The name of an MD on a device must be unique.

NOTE:

When double quotation marks are used around the string, spaces are allowed in the string.

no-md-name

Indicates that the MA ID field of a sent packet does not contain an MD name.

-

dns dns-md-format-name

Specifies the DNS name used as the MD name carried in packets.

The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?).

mac-address mac-md-format-name

Specifies an MD name carried in packets, in the format of H-H-H:U<0-65535>, for example, 0001-0001-0001:1.

The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?).

string string-md-format-name

Specifies an ASCII MD name.

The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?).

level level

Specifies the level of an MD.

The value is an integer that ranges from 0 to 7. A larger value indicates a higher MD priority. The default value is 0.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To configure CFM to identify and locate faults on links, use this command to create an MD.

Precautions

All the CFM-enabled devices of an ISP can be added to the same MD.

NOTE:

When 802.1ag packets in a low-level MD enter a high-level MD, the 802.1ag packets will be discarded. 802.1ag packets in a high-level MD can traverse a low-level MD. 802.1ag packets in an MD cannot traverse the MD of the same level.

Only IEEE Standard 802.1ag-2007 supports format, no-md-name, dns dns-md-format-name, mac-address mac-md-format-name, and string string-md-format-name.

The MD name format can be specified during the MD configuration. Each MD can be configured with only one name format and one level. You can use the cfm md command to enter the view of the existing MD but cannot change the name format and level of the existing MD. To change the name format and level of the existing MD, delete the MD and then use the cfm md command to create a new MD.

The maximum number of MDs that can be created on a device is as follows:
  • MPUD: 16.
  • Other main control boards: 64.

When an MD is deleted, a device automatically deletes all the configurations of MAs, MEPs, MIPs, and RMEPs within the MD.

The MA, MEP, and RMEP must be created within an MD, so you must create an MD before creating the MA, MEP, and RMEP.

Prerequisites

CFM has been enabled globally using the cfm enable (system view) command.

Example

# Create an MD named mdcustomer at level 4.

<HUAWEI> system-view
[HUAWEI] cfm enable
[HUAWEI] cfm md mdcustomer level 4
# Change the level of mdcustomer from 4 to 6.
<HUAWEI> system-view
[HUAWEI] undo cfm md mdcustomer
Warning: Deleting the MD(s) will delete all information about the MA(s). Continue?[Y/N]:y
[HUAWEI] cfm md mdcustomer level 6
# Create an MD named mdcustomer at level 4, with the MD name in no-md-name format.
<HUAWEI> system-view
[HUAWEI] cfm enable
[HUAWEI] cfm md mdcustomer format no-md-name level 4

cfm mip

Function

The cfm mip level command creates a MIP on an interface.

The undo cfm mip command deletes a MIP on an interface.

By default, no MIP is created.

Format

cfm mip level level-value

undo cfm mip

Parameters

Parameter Description Value
level level-value Specifies the level of a MIP. The value is an integer that ranges from 0 to 7. A larger value indicates a higher priority.

Views

GE interface view, XGE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To identify and locate faults on an MP or a link in an MD, create a MIP in the MD.

A MIP is located inside the MD. It can process and respond to CCMs, but cannot send CCMs. When a MIP receives a packet carrying a level higher than its own, the MIP does not process the packet and forwards it along the original path. A MIP forwards only the packet in which the level is lower than or equal to its own.

If a MIP is created and an MP performs LB or LT, the MIP will reply with LBMs or LTMs to identify and locate faults for the MP or link in the MD.

A MIP can be created manually or automatically:
  • The cfm mip level level-value command can be used to manually create a MIP. This configuration is simple, but it is difficult to manage many MIPs and configuration errors may occur.

  • The mip create-type (MD view) command can be used to define the rule for creating a MIP and enable the device to automatically create a MIP based on the rule. Configuring creation rules is complex, but properly configured rules ensure correct MIP settings.

Prerequisites

CFM has been enabled globally using the cfm enable (system view) command.

Precautions

Only IEEE Std 802.1ag-2007 supports the manual MIP configuration.

Example

# Create a MIP at level 4.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 1/0/1
[HUAWEI-GigabitEthernet1/0/1] cfm mip level 4

cfm portid-tlv type

Function

The cfm portid-tlv type command sets the portid-tlv type for trace packets.

The undo cfm portid-tlv type command restores the default portid-tlv type for trace packets.

By default, the portid-tlv type in trace packets is in character string format.

Format

cfm portid-tlv type { interface-name | local }

undo cfm portid-tlv type

Parameters

Parameter Description Value
interface-name Indicates that the portid-tlv type is in character string format. -
local Indicates that the portid-tlv type is in Huawei proprietary format. -

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When using the trace function, you need to specify the type of inbound and outbound interface names. You can use the cfm portid-tlv type command to set the type of interface names.

Precautions

Vendors may use different TLV types. To implement interworking between Huawei and non-Huawei devices, configure interface-name to specify the interface name type in character string format.

If all the devices running on the entire network are Huawei datacommunications devices, to interwork with devices running different versions, configure local to specify the interface name type in Huawei proprietary format.

Example

# Configure the portid-tlv type in character string format.

<HUAWEI> system-view
[HUAWEI] cfm portid-tlv type interface-name

cfm trigger if-down

Function

The cfm trigger if-down command associates Ethernet CFM with an interface.

The undo cfm trigger if-down command disassociates Ethernet CFM from an interface.

By default, an interface is not associated with Ethernet CFM.

Format

cfm md md-name ma ma-name remote-mep mep-id mep-id trigger if-down

undo cfm md md-name ma ma-name remote-mep mep-id mep-id trigger if-down

Parameters

Parameter

Description

Value

md md-name

Specifies the name of an MD in an MA.

The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?).

NOTE:

When double quotation marks are used around the string, spaces are allowed in the string.

ma ma-name

Specifies the name of an MA.

The value is a string of 1 to 43 characters without spaces, hyphens (-), and question marks (?). The total length of the names of the MA and MD must be within 44 characters.

NOTE:

When double quotation marks are used around the string, spaces are allowed in the string.

remote-mep mep-id mep-id

Specifies ID of an RMEP.

The value is an integer that ranges from 1 to 8191.

Views

GE interface view, XGE interface view, Eth-Trunk interface view, 40GE interface view, 100GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

CFM can be associated with interfaces. On a scenario with active and standby links, when CFM detects a fault on the active link, the OAM management module shuts down the interface and enables the interface 7 seconds later. This speeds up route convergence. In addition, traffic can be fast switched to the standby link.

Precautions

An interface can be bound to only one RMEP. To modify the association between the interface and the RMEP, delete the current configuration and then configure the new association.

Ethernet0/0/0 does not support Ethernet OAM.

Prerequisites

An outward-facing MEP has been created in the specified MA and the MEP has been created on the interface.

Example

# Associate Ethernet CFM with GigabitEthernet1/0/1. The MD name, MA name, and RMEP ID are md1, ma1, and 2 respectively.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 1/0/1
[HUAWEI-GigabitEthernet1/0/1] cfm md md1 ma ma1 remote-mep mep-id 2 trigger if-down
Related Topics

cfm trigger clear-arp vlan

Function

The cfm trigger clear-arp vlan command clears an ARP entry corresponding to a VLANIF interface.

The undo cfm trigger clear-arp vlan command cancels the configuration.

By default, an interface is disabled from clearing an ARP entry.

Format

cfm md md-name ma ma-name trigger clear-arp vlan vlan-id

undo cfm md md-name ma ma-name trigger clear-arp vlan vlan-id

Parameters

Parameter

Description

Value

md md-name

Specifies the name of an MD in an MA.

The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?).

NOTE:

When double quotation marks are used around the string, spaces are allowed in the string.

ma ma-name

Specifies the name of an MA.

The value is a string of 1 to 43 characters without spaces, hyphens (-), and question marks (?). The total length of the names of the MA and MD must be within 44 characters.

vlan vlan-id

Specifies the VLAN ID in an ARP entry.

The value is an integer that ranges from 1 to 4094.

Views

GE interface view, XGE interface view, Eth-Trunk interface view, 40GE interface view, 100GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When detecting a fault, the CM module notifies the OAM management module of the fault. The OAM management module searches the CM fault relationship table based on the interface number and VLAN ID, and then clears the ARP entry that corresponds to the VLANIF interface.

Precautions

Before associating Ethernet CFM with an interface, you must create an outward-facing MEP in the specified MA and ensure that the MEP is on the interface.

Ethernet0/0/0 does not support Ethernet OAM.

Prerequisites

CFM has been enabled globally using the cfm enable (system view) command.

Example

# Enable GigabitEthernet1/0/1 to clear an ARP entry matching VLANIF 10 after receiving a fault notification.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 1/0/1
[HUAWEI-GigabitEthernet1/0/1] cfm md md1 ma ma1 trigger clear-arp vlan 10

cfm trigger vlan mac-renew

Function

The cfm trigger vlan mac-renew command clears MAC address entries of a range of VLANs associated with Ethernet CFM after Ethernet CFM detects a fault.

The undo cfm trigger vlan mac-renew command cancels the configuration.

Format

cfm trigger vlan { { vlan-id [ to vlan-id ] } &<1-10> } mac-renew

undo cfm trigger vlan { { vlan-id [ to vlan-id ] } &<1-10> } mac-renew

NOTE:

The SC series cards do not support this command.

Parameters

Parameter Description Value
vlan-id Specifies the ID of a VLAN. The value is an integer that ranges from 1 to 4094.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After the cfm trigger vlan mac-renew command is run, CFM deletes MAC address entries of a range of configured VLANs when detecting a fault so that services can be switched between links.

Precautions

A maximum of 10 VLAN ranges can be configured. The VLAN ranges cannot overlap.

When CFM detects a fault in a VLAN associated with the MA in the range specified in this command, the MAC address entries of this VLAN are deleted. If a fault is detected in a VLAN out of the specified range, the MAC address entries of this VLAN are not deleted.

If the cfm trigger vlan mac-renew command is run multiple times, MAC addresses of VLANs specified by the commands are deleted.

Example

# Configure the device to clear MAC address entries of VLANs 100 to 200 after CFM detects a fault.

<HUAWEI> system-view
[HUAWEI] cfm trigger vlan 100 to 200 mac-renew

display cfm default md

Function

The display cfm default md command displays information about the default MD.

Format

display cfm default md

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

You can use the display cfm default md command to view information about the level of the default MD, MIP creation rule, Sender ID TLV type, and IDs of VLANs associated with the default MD.

Prerequisites

CFM has been enabled globally using the cfm enable (system view) command.

Example

# Display information about the default MD.

<HUAWEI> display cfm default md
Level   MIP-Create-type   SenderID TLV-type   VLAN-List
----------------------------------------------------------------------------------------
7       default           defer               100 to 200 2049
Table 12-55  Description of the display cfm default md command output

Item

Description

Level

Level of the default MD. The value ranges from 0 to 7. A higher level represents a higher priority of the default MD.

MIP-Create-type

MIP creation rule:
  • default
  • explicit
  • none

SenderID TLV-type

Type of the Sender ID TLV filled in the CCM:
  • none

  • chassis

  • manage

  • chassisManage

  • defer

VLAN-List

IDs of VLANs associated with the default MD.

display cfm error-info

Function

The display cfm error-info command displays the incorrect configuration of the specified error type.

Format

display cfm error-info error-type unexpected-mep [ md md-name ma ma-name mep-id mep-id ]

Parameters

Parameter

Description

Value

error-type unexpected-mep

Indicates the error about an unexpected MEP ID.

-

md md-name

Specifies the name of an MD.

The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?). The name of an MD is unique.

NOTE:

When double quotation marks are used around the string, spaces are allowed in the string.

ma ma-name

Specifies the name of an MA.

The value is a string of 1 to 43 characters without spaces, hyphens (-), and question marks (?). The total length of the names of the MA and MD must be within 44 characters.

NOTE:

When double quotation marks are used around the string, spaces are allowed in the string.

mep-id mep-id

Specifies the ID of a MEP. The ID identifies a MEP. The MEP ID must be unique in an MA and in a VLAN.

The value is an integer that ranges from 1 to 8191.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

If CFM cannot work properly, run the display cfm error-info command to check received CCMs with unknown MEP IDs. The information helps diagnose a fault.

  • If no parameter is configured in the display cfm error-info command, the device displays CCMs with unexpected MEP IDs received by all MEPs.

  • If an MD name, an MA name, or a MEP ID is specified, the device displays CCMs with unexpected MEP IDs received by a specified MEP.

Prerequisites

CFM has been enabled globally using the cfm enable (system view) command.

Example

# Display information about received CCMs with unexpected MEP IDs saved on the device.
<HUAWEI> display cfm error-info error-type unexpected-mep
 The total number of unexpected MEPs is : 1
--------------------------------------------------
 MD Name            : md
 Level              : 0
 MA Name            : ma
 MEP ID             : 1
 Unexpected MEP List:
 Unexpected MEP ID  : 2
 MAC Address        : 0025-e644-81a4    
Table 12-56  Description of the display cfm error-info command output

Item

Description

MD Name

MD name in CCMs.

Level

Level of an MA.

MA Name

MA name in CCMs.

MEP ID

ID of a MEP in CCMs.

Unexpected MEP List

Unexpected MEP information.

Unexpected MEP ID

Unexpected MEP ID.

MAC Address

MAC address in CCMs.

display cfm ma

Function

The display cfm ma command displays detailed information about an MA.

Format

display cfm ma [ md md-name [ ma ma-name ] ]

Parameters

Parameter

Description

Value

md md-name

Displays detailed MA information in a specified MD. md-name specifies the name of the MD. If the parameter is not specified, detailed information about all MAs in all MDs is displayed.

The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?).

NOTE:

When double quotation marks are used around the string, spaces are allowed in the string.

ma ma-name

Displays detailed information about the specified MA. ma-name specifies the name of the MA. If md-name is specified but this parameter is not specified, detailed information about all the MAs in the specified MD is displayed.

The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?).

NOTE:

When double quotation marks are used around the string, spaces are allowed in the string.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

After an MA is configured or CFM cannot work properly, use the display cfm ma command to check the MA configuration and the number of MEPs and RMEPs in the MA.

Example

# Display detailed information about the MA named ma1 in the MD named md1.

<HUAWEI> display cfm ma md md1 ma ma1
 MD Name            : md1
 MD Name Format     : string
 Level              : 0
 MIP Create-type    : none
 SenderID TLV-type  : defer
 MA Name            : ma1
 MA Name Format     : string
 Interval           : 1000
 Priority           : 7
 VLAN ID            : --
 VSI Name           : --
 L2VC ID            : --
 MEP Number         : 1
 RMEP Number        : 1
 Suppressing Alarms : No
 Sending AIS Packet : No
 Interface TLV      : disabled
 RDI Track-action   : all-enabled

# Display detailed information about all the MAs in the specified MD.

<HUAWEI> display cfm ma md md1
The total number of MAs is : 2             
--------------------------------------------------
 MD Name            : md1
 MD Name Format     : string
 Level              : 0
 MIP Create-type    : none
 SenderID TLV-type  : defer
 MA Name            : ma1
 MA Name Format     : string
 Interval           : 1000
 Priority           : 7
 VLAN ID            : --
 VSI Name           : --
 L2VC ID            : --
 MEP Number         : 1
 RMEP Number        : 1
 Suppressing Alarms : No
 Sending AIS Packet : No
 Interface TLV      : disabled
 RDI Track-action   : all-enabled
 MD Name            : md1
 MD Name Format     : string
 Level              : 0
 MIP Create-type    : none
 SenderID TLV-type  : defer
 MA Name            : ma2
 MA Name Format     : string
 Interval           : 1000
 Priority           : 7
 VLAN ID            : --
 VSI Name           : --
 L2VC ID            : --
 MEP Number         : 1
 RMEP Number        : 1
  Suppressing Alarms : No
 Sending AIS Packet : No
 Interface TLV      : disabled
 RDI Track-action   : all-enabled

# Display detailed information about all the MAs in the MD named md in no-md-name format.

<HUAWEI> display cfm ma md md
The total number of MAs is : 2             
--------------------------------------------------
 MD Name            : md
 MD Name Format     : string
 Level              : 0
 MIP Create-type    : none
 SenderID TLV-type  : defer
 MA Name            : ma
 MA Name Format     : no-md-name
 Interval           : 1000
 Priority           : 7
 VLAN ID            : --
 VSI Name           : --
 L2VC ID            : --
 MEP Number         : 0
 RMEP Number        : 1
 Suppressing Alarms : No
 Sending AIS Packet : No
 Interface TLV      : disabled
 RDI Track-action   : all-enabled

 MD Name            : md
 MD Name Format     : string
 Level              : 0
 MIP Create-type    : none
 SenderID TLV-type  : defer
 MA Name            : ma
 MA Name Format     : no-md-name
 Interval           : 1000
 Priority           : 7
 VLAN ID            : --
 VSI Name           : --
 L2VC ID            : --
 MEP Number         : 0
 RMEP Number        : 1
 Suppressing Alarms : No
 Sending AIS Packet : No
 Interface TLV      : disabled
 RDI Track-action   : all-enabled 
Table 12-57  Description of the display cfm ma command output

Item

Description

MD Name

Name of the MD.

To set the name of the MD, run the cfm md command.

MD Name Format

Format of the MD name:
  • no-md-name
  • dns
  • mac-addrss
  • string

To set the format of the MD name, run the cfm md command.

Level

MD level. The value ranges from 0 to 7.

To set the MD level, run the cfm md command.

MIP Create-type

MIP creation rule:
  • default
  • explicit
  • none

To set the MIP creation rule, run the mip create-type (MD view) command.

SenderID TLV-type

Type of the Sender ID TLV filled in the CCM:
  • none

  • chassis

  • manage

  • chassisManage

  • defer

To set the type of the Sender ID TLV filled in the CCM, run the senderid-tlv-type command.

MA Name

Name of the MA.

To set the name of the MA, run the ma command.

MA Name Format

Format of the MA name:
  • icc-based
  • string

To set the format of the MA name, run the ma command.

Interval

Interval at which CCMs are sent in an MA.

To set the interval at which CCMs are sent in an MA, run the ccm-interval command.

Priority

802.1p priority of CFM packets in an MA. The value ranges from 0 to 7. A larger value indicates a higher priority. The default value is 7.

To set the 802.1p priority of CFM packets in an MA, run the packet-priority command.

VLAN ID

ID of the VLAN associated with an MA.

To set the ID of the VLAN associated with an MA, run the map command.

VSI Name

Name of the VSI associated with an MA.

L2VC ID

ID of the L2VC associated with an MA.

MEP Number

Number of MEPs in an MA.

RMEP Number

Number of RMEPs in an MA.

Suppressing Alarms

Whether the device is enabled to suppress alarms.

Sending AIS Packet

Whether the device is sending AIS PDUs.

Interface TLV

Whether the CCM TLV is enabled:
  • disabled

  • enabled

RDI Track-action

Whether the device is RDI Track-action.

display cfm md

Function

The display cfm md command displays MD information, including the MD name and level.

Format

display cfm md [ md-name ]

Parameters

Parameter

Description

Value

md md-name

Specifies the name of an MD. If md-name is not specified, information about all MDs created on the device is displayed.

The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?).

NOTE:

When double quotation marks are used around the string, spaces are allowed in the string.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

You can use the display cfm md command to view MD information, including the MD level, MD name format, MIP creation rule in the MD, and Sender ID TLV type. In addition, you can view brief information about MAs in the MD, such as the MA name, interval at which CCMs are sent, ID of the VLAN associated with the MA, and name of the VSI associated with the MA. If md-name is not specified, information about all the created MDs is displayed.

Example

# Display information about the MD named mdcustomer on the device running IEEE Standard 802.1ag-2007.

<HUAWEI> display cfm md mdcustomer
 MD Name            : mdcustomer
 MD Name Format     : string
 Level              : 0
 MIP Create-type    : none
 SenderID TLV-type  : defer
 MA list            :
         MA Name            : ma
         MA Name Format     : string
         Interval           : 1000
         VLAN ID            : 100
         VSI Name           : --
         L2VC ID            : --
Table 12-58  Description of the display cfm md command output

Item

Description

MD Name

Name of the MD.

To set the name of the MD, run the cfm md command.

MD Name Format

Format of the MD name:
  • no-md-name
  • dns
  • mac-addrss
  • string

To set the format of the MD name, run the cfm md command.

Level

Level of the MD. The value ranges from 0 to 7. A higher level indicates a higher priority.

To set the level of the MD, run the cfm md command.

MIP Create-type

MIP creation rule:
  • default
  • explicit
  • none

To set the MIP creation rule, run the mip create-type (MD view) command.

SenderID TLV-type

Type of the Sender ID TLV in the CCM:
  • none

  • chassis

  • manage

  • chassisManage

  • defer

To set the type of the Sender ID TLV in the CCM, run the senderid-tlv-type command.

MA list

Information about MAs in the MD.

MA Name

Name of the MA.

To set the MAs in the MD, run the ma command.

MA Name Format

Format of the MA name:
  • icc-based

  • string

To set the format of the MA name, run the ma command.

Interval

Interval at which CCMs are sent.

To set the interval at which CCMs are sent, run the ccm-interval command.

VLAN ID

ID of the VLAN associated with an MA.

To set the ID of the VLAN associated with an MA, run the map command.

VSI Name

Name of the VSI associated with an MA.

The switch does not support this function.

L2VC ID

ID of the L2VC associated with an MA.

The switch does not support this function.

Related Topics

display cfm mep

Function

The display cfm mep command displays information about a MEP in a specified MD and MA.

Format

display cfm mep [ md md-name [ ma ma-name [ mep-id mep-id ] ] ]

Parameters

Parameter Description Value
md md-name Displays information about MEPs in a specified MD. md-name specifies the name of the MD. If this parameter is not specified, information about MEPs in all MDs and MAs on the device is displayed. The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?).
ma ma-name Displays information about MEPs in a specified MA. ma-name specifies the name of the MA. If this parameter is not specified, information about MEPs in all the MAs of a specified MD is displayed. The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?).
mep-id mep-id Displays information about a specified MEP. mep-id specifies the ID of the MEP. The value is an integer that ranges from 1 to 8191.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

After a MEP is configured or CFM cannot work properly, use the display cfm mep command to check the MEP configuration.

Example

# Display information about the MEP with an ID of 10 in the MA named ma1 of the MD named md1.

<HUAWEI> display cfm mep md md1 ma ma1 mep-id 10
 MD Name            : md1
 MD Name Format     : string
 Level              : 0
 MA Name            : ma1
 MEP ID             : 2
 VLAN ID            : --
 VSI Name           : --
 L2VC ID            : --
 Interface Name     : GigabitEthernet1/0/1
 CCM Send           : enabled
 Direction          : outward
 MAC Address        : 0002-0003-0161
 MEP Pe-vid         : --
 MEP Ce-vid         : --
 MEP Vid            : --
 Alarm Status       : LOC
 Alarm AIS          : enabled
 Alarm RDI          : enabled

# Display information about all MEPs in the MA named ma1 of the MD named md1.

<HUAWEI> display cfm mep md md1 ma ma1
The total number of MEPs is : 1             
--------------------------------------------------
 MD Name            : md1
 MD Name Format     : string
 Level              : 0
 MA Name            : ma1
 MEP ID             : 2
 VLAN ID            : --
 VSI Name           : --
 L2VC ID            : --
 Interface Name     : GigabitEthernet1/0/1
 CCM Send           : enabled
 Direction          : outward
 MAC Address        : 0002-0003-0161
 MEP Pe-vid         : --
 MEP Ce-vid         : --
 MEP Vid            : --
 Alarm Status       : LOC
 Alarm AIS          : enabled
 Alarm RDI          : enabled

# Display information about all MEPs in the MD named md1.

<HUAWEI> display cfm mep md md1
The total number of MEPs is : 2             
--------------------------------------------------
 MD Name            : md1
 MD Name Format     : string
 Level              : 0
 MA Name            : ma1
 MEP ID             : 2
 VLAN ID            : --
 VSI Name           : --
 L2VC ID            : --
 Interface Name     : GigabitEthernet1/0/1
 CCM Send           : enabled
 Direction          : outward
 MAC Address        : 0002-0003-0161
 MEP Pe-vid         : --
 MEP Ce-vid         : --
 MEP Vid            : --
 Alarm Status       : LOC
 Alarm AIS          : enabled
 Alarm RDI          : enabled

 MD Name            : md1
 MD Name Format     : string
 Level              : 0
 MA Name            : ma2
 MEP ID             : 4
 VLAN ID            : --
 VSI Name           : --
 L2VC ID            : --
 Interface Name     : GigabitEthernet1/0/2
 CCM Send           : enabled
 Direction          : outward
 MAC Address        : 0002-0003-0161
 MEP Pe-vid         : --
 MEP Ce-vid         : --
 MEP Vid            : --
 Alarm Status       : LOC
 Alarm AIS          : enabled
 Alarm RDI          : enabled
Table 12-59  Description of the display cfm mep command output

Item

Description

MD Name

Name of the MD.

To set the name of the MD, run the cfm md command.

MD Name Format

Format of the MD name:
  • no-md-name
  • dns
  • mac-addrss
  • string

To set the format of the MD name, run the cfm md command.

Level

Level of the MD. The value ranges from 0 to 7. A higher level indicates a higher priority of the MD.

To set the MD level, run the cfm md command.

NOTE:

If the level of a MEP on an intermediate node is higher than or equal to that on the source node, run the cfm md command to decrease the level of the MEP on the intermediate node to be lower than that on the source node.

MA Name

Name of the MA.

To set the name of the MA, run the ma command.

MEP ID

ID of the MEP.

To set the ID of the MEP, run the mep mep-id command.

VLAN ID

ID of the VLAN associated with an MA.

To set the ID of the VLAN associated with an MA, run the map command.

VSI Name

Name of the VSI associated with an MA.

L2VC ID

ID of the L2VC associated with an MA.

Interface Name

Interface where a MEP is configured. If a MEP is based on VLANIF interfaces, this field is displayed as --.

CCM Send

Whether the MEP is enabled to send CCMs:
  • enabled: The MEP is enabled to send CCMs.

  • disabled: The MEP is disabled from sending CCMs.

To set the parameter, run the mep ccm-send enable command.

Direction

Type of the MEP:
  • inward: indicates an inward-facing MEP. An inward-facing MEP broadcasts 802.1ag packets in the VLAN associated with the MA, but does not send 802.1ag packets to the interface where the MEP is configured.

  • outward: indicates an outward-facing MEP. An outward-facing MEP sends 802.1ag packets through an interface on which the MEP is configured.

NOTE:

If the MEP direction is incorrect, run the mep mep-id command to configure a correct direction.

MAC Address

MAC address of the MEP.

MEP Pe-vid

Outer VLAN ID of the QinQ interface where the MEP is configured.

MEP Ce-vid

Inner VLAN ID of the QinQ interface where the MEP is configured.

MEP Vid

VLAN ID of the Dot1q interface where the MEP is configured.

Alarm Status

Alarm type:
  • unexpectedMEP: The MEP receives CCMs with an unexpected flag.

  • mismerge: The MEP ID in received CCMs is different from the configured MEP ID.

  • unexpectedPeriod: The interval in the received CCMs is different from the configured interval.

  • unexpectedMAC: The MEP MAC address in the received CCM is different from at least one MAC address of the RMEP.

  • LOC: At least one session between the MEP and an RMEP is terminated.

  • RDI: The MEP receives CCMs with the RDI.

Alarm AIS

Whether the alarm reporting function of a specific alarm indication signal (AIS) is enabled:
  • enable
  • disable

Alarm RDI

Whether the alarm reporting function of a specific remote defect indication (RDI) is enabled:
  • enable
  • disable

display cfm mip

Function

The display cfm mip command displays MIP information.

Format

display cfm mip [ interface interface-type interface-number | level level ]

Parameters

Parameter Description Value
level level Displays information about a MIP of a specified level. level specifies the level of the MIP. The value is an integer that ranges from 0 to 7. A larger value indicates a higher level.
interface-type interface-number Displays MIP information on a specified interface.
  • interface-type specifies the interface type.

  • interface-number specifies the interface number.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

You can use the display cfm mip command to check MIPs, interfaces where MIPs are configured, and levels of the MIPs on the device.

Precautions

If level level and interface interface-type interface-number are not specified, information about all MIPs on the device is displayed.

Example

# Display information about all MIPs.

<HUAWEI> display cfm mip
Interface Name                Level      MAC
--------------------------------------------------------
GigabitEthernet1/0/1          0          0018-82e2-377f
GigabitEthernet1/0/1          0          0018-82e2-375f

# Display information about the MIP at level 7.

<HUAWEI> display cfm mip level 7
Interface Name                Level      MAC
--------------------------------------------------------
GigabitEthernet1/0/1          7          0018-82e2-367f
GigabitEthernet1/0/1          7          0018-82e2-365f

# Display information about MIPs on GigabitEthernet1/0/1.

<HUAWEI> display cfm mip interface gigabitethernet 1/0/1
Interface Name                Level      MAC
--------------------------------------------------------
GigabitEthernet1/0/1          0         0018-82e2-368f

# Display information about MIPs on the GigabitEthernet1/0/1.

<HUAWEI> display cfm mip interface gigabitethernet 1/0/1
Info: The MIP does not exist.
Table 12-60  Description of the display cfm mip command output

Item

Description

Interface Name

Name of the interface where a MIP is configured.

Level

Level of the MIP. The value ranges from 0 to 7. A larger value indicates a higher priority.

To set the level of the MIP, run the cfm mip command.

MAC

MAC address of the MIP.

display cfm mp-info

Function

The display cfm mp-info command displays information about CFM objects on a specified interface or in a VLAN.

Format

display cfm mp-info [ interface interface-type interface-number ] [ level md-level ] [ inward | outward ] [ vlan vlanid | no-associated-vlan ]

Parameters

Parameter Description Value
interface-type interface-number Displays CFM information on a specified interface.
  • interface-type specifies the interface type.

  • interface-number specifies the interface number.

-
level md-level Specifies the level of an MD. The value is an integer that ranges from 0 to 7. By default, the value is 0.
inward Indicates the inward-facing MEP. An inward-facing MEP sends 802.1ag packets through all interfaces in a VLAN associated with an MA, except the interface on which the MEP is configured. That is, the inward-facing MEP broadcasts 802.1ag packets in the VLAN associated with the MA. -
outward Indicates the outward-facing MEP. An outward-facing MEP sends 802.1ag packets through an interface on which the MEP is configured. -
vlan vlanid Displays CFM information in a specified VLAN. The value is an integer that ranges from 1 to 4094.
no-associated-vlan Indicates the MP that is not associated with a VLAN. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

You can use the display cfm mp-info command to view information about CFM objects and the relationship between MPs on the interface so that you can configure MEPs correctly.

Prerequisites

CFM has been enabled globally using the cfm enable (system view) command.

Precautions

Multiple MEPs can be configured and multiple MIPs can be generated on an interface; however, the levels of MEPs or MIPs must be the same. If the configuration is incorrect, CCM leak occurs or LBR or LTR messages cannot be sent correctly.

Example

# Display information about the specified interface, MD level, MEP type, and VLAN.

<HUAWEI> display cfm mp-info interface gigabitethernet 1/0/1
The total number of MPs is : 1              
The number of MEPs is : 1. The number of MIPs is : 0.              
-------------------------------------------------- 
 MD Name            : md1
 MD Name Format     : string
 Level              : 0
 MA Name            : ma2
 MEP ID             : 4
 VLAN ID            : --
 VSI Name           : --
 L2VC ID            : --
 Interface Name     : GigabitEthernet1/0/1
 CCM Send           : enabled
 Direction          : outward
 MAC Address        : 0002-0003-0161
 MEP Pe-vid         : --
 MEP Ce-vid         : --
 MEP Vid            : --
 Alarm Status       : LOC
 Alarm AIS          : enabled
 Alarm RDI          : enabled
Table 12-61  Description of the display cfm mp-info command output

Item

Description

Interface Name

Name of the interface.

MD Name

Name of the MD.

To set the name of the MD, run the cfm md command.

MD Name Format

Format of the MD name:
  • no-md-name
  • dns
  • mac-addrss
  • string

To set the format of the MD name, run the cfm md command.

Level

Level of the MD, MA, or MP. The value ranges from 0 to 7. A higher level indicates a higher priority.

To set the MD level, run the cfm md command.

MA Name

Name of the MA.

To set the name of the MA, run the ma command.

MEP ID

ID of the MEP.

To set the ID of the MEP, run the mep mep-id command.

CCM Send

Whether the MEP is enabled to send CCMs:
  • enabled
  • disabled

To set the parameter, run the mep ccm-send enable command.

Direction

Type of the MEP:
  • inward
  • outward

To set the type of the MEP, run the mep mep-id command.

VLAN ID

ID of the VLAN associated with an MA.

To set the ID of the VLAN associated with an MA, run the map command.

VSI Name

Name of the VSI associated with an MA.

L2VC ID

ID of the L2VC associated with an MA.

MAC Address

MAC address of the MEP or MIP.

NOTE:
An MP's MAC address can be a bridge MAC address or the MAC address of the interface where the MP is configured. The MAC address depends on the configured MP address model:
  • If the shared MP address model is configured, an MP uses a bridge MAC address as its own MAC address.

  • If the independent MP address model is configured, an MP uses the MAC address of the interface where the MP is configured.

MEP Pe-vid

VLAN ID in the outer tag of a VLAN frame.

MEP Ce-vid

VLAN ID in the inner tag of a VLAN frame.

MEP Vid

ID of a VLAN.

Alarm Status

Type of alarm:
  • unexpectedMEGLevel: The MD level carried in a CCM sent by the RMEP was different from that specified on the MEP.

  • unexpectedMEP: The trap about inconsistency between the MD level carried in a CCM sent by the RMEP and that specified on the MEP was cleared.

  • mismerge: An MD or MA name carried in a CCM sent by the RMEP was different from that specified on the MEP.

  • unexpectedPeriod: The CCM interval carried in a CCM sent by the RMEP was different from that specified on the MEP.

  • unexpectedMAC: The source MAC address carried in a CCM sent by the RMEP was different from the RMEP's MAC address specified on the MEP.

  • LOC: The MEP received no CCM in a period of time 3.5 times the interval at which CCMs were sent.

  • exceptionalMACstatus: TLV information carried in a CCM sent by the RMEP within a specified interval showed that the interface connecting the RMEP to the MEP became abnormal.

  • RDI: The RMEP sent a CCM carrying the RDI flag with the value of 1 to the MEP.

Alarm AIS

Whether the alarm reporting function of a specific alarm indication signal (AIS) is enabled:
  • enable
  • disable

Alarm RDI

Whether the alarm reporting function of a specific remote defect indication (RDI) is enabled:
  • enable
  • disable

display cfm remote-mep

Function

The display cfm remote-mep command displays information about RMEPs in a specified MD and MA.

Format

display cfm remote-mep md md-name ma ma-name mep-id mep-id

display cfm remote-mep [ md md-name [ ma ma-name ] ] [ cfm-state { up | down | disable } ]

Parameters

Parameter Description Value
md md-name Displays information about MEPs in a specified MD. md-name specifies the name of the MD. If this parameter is not specified, information about RMEPs in all MDs and MAs on the device is displayed. The value is a string of 1 to 43 case-sensitive characters without spaces, hyphen (-), and question mark (?).
ma ma-name Displays information about RMEPs in a specified MA. ma-name specifies the name of the MA. If this parameter is not specified, information about RMEPs in all MAs in a specified MD is displayed. The value is a string of 1 to 43 case-sensitive characters without spaces, hyphen (-), and question mark (?).
mep-id mep-id Displays information about a specified RMEP. mep-id specifies the ID of the RMEP. The value is an integer that ranges from 1 to 8191.
cfm-state Displays RMEP information based on the CFM status. -
up Displays information about RMEPs in Up state. -
down Displays information about RMEPs in Down state. -
disable Displays information about RMEPs in disabled state. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

After an RMEP is configured or CFM cannot work properly, use the display cfm remote-mep command to check the RMEP configuration, including:
  • Name and level of the MD

  • Name of the MA and VLAN associated with the MA

  • ID of the RMEP

  • MAC address of the RMEP

  • Whether the MEP is enabled to receive CCMs from the RMEP

  • Alarm status

You can specify cfm-state to view RMEP information in the specified CFM state.

Example

# Display information about the RMEP with an ID of 50 in the MA named ma1 within the MD named md1.

<HUAWEI> display cfm remote-mep md md1 ma ma1 mep-id 50
 MD Name            : md1
 Level              : 0
 MA Name            : ma1
 RMEP ID            : 5
 VLAN ID            : --
 VSI Name           : --
 L2VC ID            : --
 MAC                : --
 CCM Receive        : enabled
 Trigger-If-Down    : enabled
 CFM Status         : down
 Alarm Status       : LOC
 Interface TLV      : --
 Connect Status     : up     

# Display information about all RMEPs in the MA named ma1 within the MD named md1.

<HUAWEI> display cfm remote-mep md md1 ma ma1
The total number of RMEPs is : 1
The status of RMEPs : 0 up, 1 down, 0 disable        
--------------------------------------------------
 MD Name            : md1
 Level              : 0
 MA Name            : ma1
 RMEP ID            : 5
 VLAN ID            : --
 VSI Name           : --
 L2VC ID            : --
 MAC                : --
 CCM Receive        : enabled
 Trigger-If-Down    : enabled
 CFM Status         : down
 Alarm Status       : LOC
 Interface TLV      : --
 Connect Status     : up     

# Display information about all RMEPs configured on the device.

<HUAWEI> display cfm remote-mep
The total number of RMEPs is : 1
The status of RMEPs : 0 up, 0 down, 1 disable        
--------------------------------------------------
 MD Name            : md
 Level              : 0
 MA Name            : ma
 RMEP ID            : 1
 VLAN ID            : --
 VSI Name           : --
 L2VC ID            : --
 MAC                : --
 CCM Receive        : disabled
 Trigger-If-Down    : disabled
 CFM Status         : disabled
 Alarm Status       : none
 Interface TLV      : --
 Connect Status     : up     

# Display information about all RMEPs in Down state.

<HUAWEI> display cfm remote-mep cfm-state down
The total number of RMEPs is : 2
The status of RMEPs : 0 up, 2 down, 0 disable        
--------------------------------------------------
 MD Name            : md
 Level              : 0
 MA Name            : ma
 RMEP ID            : 1111
 VLAN ID            : 1111
 VSI Name           : --
 L2VC ID            : --
 MAC                : --
 CCM Receive        : enabled
 Trigger-If-Down    : disabled
 CFM Status         : down
 Alarm Status       : none
 Interface TLV      : --
 Connect Status     : up     

 MD Name            : md1
 Level              : 0
 MA Name            : ma1
 RMEP ID            : 2
 VLAN ID            : 100
 VSI Name           : --
 L2VC ID            : --
 MAC                : 0044-0141-5410
 CCM Receive        : enabled
 Trigger-If-Down    : disabled
 CFM Status         : down
 Alarm Status       : LOC
 Interface TLV      : --
 Connect Status     : up     
Table 12-62  Description of the display cfm remote-mep command output

Item

Description

The total number of RMEPs is

Number of RMEPs.

MD Name

Name of the MD.

Level

Level of the MD. The value ranges from 0 to 7. A higher level indicates a higher priority of the MD.

MA Name

Name of the MA.

RMEP ID

ID of the RMEP.

VLAN ID

ID of the VLAN associated with an MA.

VSI Name

Name of the VSI associated with an MA.

L2VC ID

ID of the VC.

MAC

MAC address of the RMEP.

NOTE:
An RMEP's MAC address can be a bridge MAC address or the MAC address of the interface where the RMEP is configured. The MAC address depends on the configured MP address model:
  • If the shared MP address model is configured, an RMEP uses a bridge MAC address as its own MAC address.

  • If the independent MP address model is configured, an RMEP uses the MAC address of the interface where the RMEP is configured.

CCM Receive

Whether the MEP is enabled to receive CCMs from the RMEP:
  • disabled: The MEP is disabled from receiving CCMs from the RMEP.

  • enabled: The MEP is enabled to receive CCMs from the RMEP.

To configure the CCM reception function, run the remote-mep ccm-receive enable command.

Trigger-If-Down

Whether the block/unblock function is configured on the interface:
  • disable: indicates that the block/unblock function is disabled on the interface for the RMEP.

  • enable: indicates that the block/unblock function is enabled on the interface for the RMEP. When a MEP detects a connectivity fault between the MEP and the RMEP in the same MA, the system blocks the interface on which the MEP is configured and then unblocks it.

To configure the block/unblock function, run the cfm trigger if-down command.

CFM Status

CFM status:
  • up: indicates that CC works properly.

  • down: No MEP is configured on the device or the interface where the MEP is configured is unavailable. The reason why the interface is unavailable is one of the following: The interface board or subcard is not installed or has been restarted. The Eth-Trunk has no member interface or all member interfaces are Down.

  • disable: indicates that CFM is not configured, that is, the MEP is not enabled to send CCMs and the RMEP is not enabled to receive CCMs.

Alarm Status

CFM alarm status:
  • unexpectedPeriod: The interval carried in a CCM sent by the RMEP is different from that configured on the MEP.

  • unexpectedMAC: The source MAC address carried in a CCM sent by the RMEP is different from the RMEP's MAC address configured on the MEP.

  • LOC: The session is terminated.

  • exceptionalMACstatus: TLV information carried in a CCM sent by the RMEP within a specified interval indicates that the interface connecting the RMEP to the MEP is abnormal.

  • RDI: The MEP receives CCMs with RDI.

  • none: No alarm is generated.

    NOTE:

    If the device is configured with no MEP but an RMEP, the CFM status is Down. However, no alarm is generated. That is, the field is none.

Interface TLV

Status of an interface type-length-value (TLV). The value can be:
  • - -: The default value is 0. No TLV status is available on the interface.

  • up: The interface status is Up, and the interface can transmit packets.

  • down: The interface status is Down, and the interface cannot transmit packets.

  • testing: The TLV status of the interface is testing.

  • unknown: The interface status is unknown.

  • dormant: The interface is blocked and is waiting for an external event.

  • notPresent: Information about the interface components is lost.

  • lowerLayerDown: The lower layer status of the interface is Down.

NOTE:
  • The packets carrying the interface TLV field with the value Up or Down can be sent.

  • The received packets carrying the interface TLV field with any value can be parsed.

Connect Status

The connect status of RMEP:
  • none: Detection is not started on the RMEP.

  • start: The RMEP is configured, but the remote device does not receive valid CCMs within the timeout period.

  • up: The physical link is working properly, and the remote device can receive correct CCMs.

  • down: The local device cannot receive correct CCMs.

display oam global configuration

Function

The display oam global configuration command displays the global configuration of Ethernet OAM.

Format

display oam global configuration

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

You can use the display oam global configuration command to check the global configuration of Ethernet OAM, including:

  • Whether Ethernet CFM is enabled globally

  • Whether GMAC ping is enabled

  • Whether GMAC trace is enabled

  • Whether EFM OAM is enabled globally

  • Ethernet CFM version information

  • MP address model

Example

# Display the global configuration of Ethernet OAM on the device.

<HUAWEI> display oam global configuration
Global Configuration                                 Value
----------------------------------------------------------
CFM Status                                         enabled
Ping MAC Status                                   disabled
Trace MAC Status                                  disabled
CFM MAC-tunnel MIP Trace Status                   disabled
EFM Status                                         enabled
CFM Protocol                                      standard
CFM MP-address-model                                bridge
Table 12-63  Description of the display oam global configuration command output

Item

Description

CFM Status

Whether Ethernet CFM is enabled globally:
  • disabled: Ethernet CFM is disabled globally.

  • enabled: Ethernet CFM is enabled globally.

To configure the parameter, run the cfm enable command.

Ping MAC Status

Whether GMAC ping is enabled:
  • disabled: GMAC ping is disabled.

  • enabled: GMAC ping is enabled.

To configure the parameter, run the ping mac enable command.

Trace MAC Status

Whether GMAC trace is enabled:
  • disabled: GMAC trace is disabled.

  • enabled: GMAC trace is enabled.

To configure the parameter, run the trace mac enable command.

CFM MAC-tunnel MIP Trace Status

Whether the intermediate node in the MAC tunnel is enabled to respond to MAC trace messages:
  • disabled: The intermediate node in the MAC tunnel is disabled from responding to MAC trace messages.

  • enabled: The intermediate node in the MAC tunnel is enabled to respond to MAC trace messages.

NOTE:

The switch does not support this parameter.

EFM Status

Whether EFM OAM is enabled globally:
  • disabled: EFM OAM is disabled globally.

  • enabled: EFM OAM is enabled globally.

To configure the parameter, run the efm enable command.

CFM Protocol

Ethernet CFM version.
  • standard: IEEE Standard 802.1ag-2007.

  • bbb0: IEEE 802.1ag Draft 7.

CFM MP-address-model

MP address model:
  • bridge: shared MP address model

  • individual: independent MP address model

NOTE:

Currently, only the shared MP address model is supported.

display snmp-agent trap feature-name eoam-1ag all

Function

The display snmp-agent trap feature-name eoam-1ag all command displays the status of all traps of the Ethernet OAM-1AG module.

Format

display snmp-agent trap feature-name eoam-1ag all

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

The Simple Network Management Protocol (SNMP) is a standard network management protocol widely used on TCP/IP networks. It uses a central computer (a network management station) that runs network management software to manage network elements (NEs). The SNMP agent reports trap messages to the network management station so that the network management station can obtain the network status in a timely manner, and the network administrator can take measures accordingly.

The display snmp-agent trap feature-name eoam-1ag all command displays the following information:
  • Trap names supported by the Ethernet OAM-1AG module. The trap names are the same as the trap names specified by the snmp-agent trap enable feature-name eoam-1ag trap-name trap-name command. Each trap name corresponds to an NE exception.

  • Trap status of the Ethernet OAM-1AG module. You can check whether the trap is reported based on the trap name.

Prerequisites

SNMP has been enabled using the snmp-agent command.

Example

# Display all traps of the EOAM-1AG module.

<HUAWEI> display snmp-agent trap feature-name eoam-1ag all
------------------------------------------------------------------------------
Feature name: EOAM-1AG
Trap number : 16
------------------------------------------------------------------------------
Trap name                       Default switch status   Current switch status
hwDot1agCfmUnexpectedMEGLevel   off                     on                      
hwDot1agCfmUnexpectedMEGLevelCleared                                            
                                off                     on                      
hwDot1agCfmMismerge             off                     on                      
hwDot1agCfmMismergeCleared      off                     on                      
hwDot1agCfmUnexpectedMEP        off                     on                      
hwDot1agCfmUnexpectedMEPCleared                                                 
                                off                     on                      
hwDot1agCfmUnexpectedPeriod     off                     on                      
hwDot1agCfmUnexpectedPeriodCleared                                              
                                off                     on                      
hwDot1agCfmUnexpectedMAC        off                     on                      
hwDot1agCfmUnexpectedMACCleared                                                 
                                off                     on                      
hwDot1agCfmLOC                  off                     on                      
hwDot1agCfmLOCCleared           off                     on                      
hwDot1agCfmExceptionalMACStatus                                                 
                                off                     on                      
hwDot1agCfmExceptionalMACStatusCleared                                          
                                off                     on                      
hwDot1agCfmRDI                  off                     on                      
hwDot1agCfmRDICleared           off                     on      
Table 12-64  Description of the display snmp-agent trap feature-name eoam-1ag all command output

Item

Description

Feature name

Name of the module that the trap belongs to.

Trap number

Number of traps.

Trap name

Name of the trap:
  • hwDot1agCfmExceptionalMACStatus: MEP received a Continuity Check Message (CCM) with the Port Status type-length-value (TLV) or Interface Status TLV reporting an error status.

  • hwDot1agCfmExceptionalMACStatusCleared: Maintenance Association End Point (MEP) received a CCM with the Port Status TLV or Interface Status TLV reporting an error status cleared.

  • hwDot1agCfmLOC: MEP is disconnected with the remote MEP.

  • hwDot1agCfmLOCCleared: MEP is reconnected with the remote MEP.

  • hwDot1agCfmMismerge: MEP received a CCM with unexpected MEG ID.

  • hwDot1agCfmMismergeCleared: MEP did not receive any CCM with unexpected MEG ID before timeout.

  • hwDot1agCfmRDI: MEP received a CCM with RDI flag set.

  • hwDot1agCfmRDICleared: MEP received a CCM with RDI flag cleared.

  • hwDot1agCfmUnexpectedMAC: MEP received a CCM with unexpected MAC address.

  • hwDot1agCfmUnexpectedMACCleared: MEP did not receive any CCM with unexpected MAC address before timeout.

  • hwDot1agCfmUnexpectedMEGLevel: MEP received a CCM with unexpected MEG level.

  • hwDot1agCfmUnexpectedMEGLevelCleared: MEP did not receive any CCM with unexpected MEG level before timeout.

  • hwDot1agCfmUnexpectedMEP: MEP received a CCM with unexpected MEP.

  • hwDot1agCfmUnexpectedMEPCleared: MEP did not receive any CCM with unexpected MEP before timeout.

  • hwDot1agCfmUnexpectedPeriod: MEP received a CCM with unexpected period.

  • hwDot1agCfmUnexpectedPeriodCleared: MEP did not receive any CCM with unexpected period before timeout.

Default switch status

Default status of the trap function:
  • on: The trap function is enabled.
  • off: The trap function is disabled.

Current switch status

Status of the trap function:
  • on: The trap function is enabled.
  • off: The trap function is disabled.

ma

Function

The ma command creates an MA in an MD and displays the MA view, or directly displays view of an existing MA.

The undo ma command deletes an MA.

Format

MD view, MA view:

ma ma-name [ format { icc-based iccbased-ma-format-name | string ma-format-name } ]

MD view:

undo ma [ ma-name ]

Parameters

Parameter

Description

Value

ma-name

Specifies the name of an MA. The name of an MA in an MD is unique.

The value is a string of 1 to 43 characters without spaces, hyphens (-), and question marks (?). The total length of the names of the MA and MD must be within 44 case-sensitive characters.

NOTE:

When double quotation marks are used around the string, spaces are allowed in the string.

icc-based iccbased-ma-format-name

Specifies an ICC-based MA name carried in CCMs to be sent. ITU carrier codes (ICCs) are assigned to network operators or service providers and maintained by ITU-T Telecommunication Standardization Bureau (TSB) in compliance with ITU-T M.1400 Recommendation.

The value is a string of 1 to 13 case-sensitive characters without spaces, hyphens (-), and question marks (?).

string ma-format-name

Specifies a string-based MA name carried in CCMs to be sent.

The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?).

Views

MD view, MA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Generally, services are deployed based on VLANs on a network. If CFM is required to monitor link connectivity, run the ma ma-name command to create an MA. Then CFM can be implemented in the MA.

Prerequisites

An MD has been created using the cfm md md-name command.

Precautions

  • When an MA is deleted, the device automatically deletes all MEPs and RMEPs in the MA, stops CC, and clears MA-related alarms.

  • An ICC-based MA can only be configured in the MD with the MD name in no-md-name format.

  • When the main control board is MPUD, a maximum of 2K MAs can be created in the same MD, and a maximum of 2K MAs can be created on one device. A maximum of 4000 MAs can be created on other main control boards.

Example

# Create an MA named ma1.

<HUAWEI> system-view
[HUAWEI] cfm enable
[HUAWEI] cfm md md1
[HUAWEI-md-md1] ma ma1
[HUAWEI-md-md1-ma-ma1]

map

Function

The map command associates a VLAN with an MA.

The undo map command disassociates a VLAN from an MA.

By default, an MA is not associated with any VLAN.

Format

map vlan vlan-id

undo map vlan

Parameters

Parameter Description Value
vlan-id Specifies the ID of a VLAN. The value is an integer that ranges from 1 to 4094.

Views

MA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Ethernet CFM detects connectivity faults in each MA. After an MA is associated with a VLAN, Ethernet CFM can detect connectivity faults in the VLAN.

Precautions

If CFM is used to detect connectivity faults between two directly connected devices, the MA does not need to be associated with a VLAN.

An MA can be associated with only one VLAN.

You can create or delete the association between an MA and a VLAN only when no MEP or RMEP is configured in the MA.

Before changing the VLAN associated with an MA, use the undo map command to disassociate the MA from the VLAN.

Example

# Associate an MA with VLAN 10. The MA is not associated with any VLAN before the configuration.

<HUAWEI> system-view
[HUAWEI] cfm enable
[HUAWEI] cfm md md1
[HUAWEI-md-md1] ma ma1
[HUAWEI-md-md1-ma-ma1] map vlan 10
Related Topics

mep mep-id

Function

The mep mep-id command creates a MEP.

The undo mep mep-id command deletes a MEP.

Format

mep mep-id mep-id interface interface-type interface-number [ pe-vid pe-vid ce-vid ce-vid ] { inward | outward }

undo mep mep-id mep-id

Parameters

Parameter Description Value
mep-id mep-id Specifies the ID of a MEP. The ID identifies a MEP. The MEP ID must be unique in an MA and in a VLAN. The value is an integer that ranges from 1 to 8191.
interface-type interface-number Specifies the type and number of the interface where a MEP is configured.
  • interface-type specifies the interface type.

  • interface-number specifies the interface number.

-
pe-vid pe-vid Specifies the outer VLAN ID of a PE. The value is a decimal integer that ranges from 1 to 4094.
ce-vid ce-vid Specifies the inner VLAN ID of a CE. The value is a decimal integer that ranges from 1 to 4094.
inward Indicates an inward-facing MEP. An inward-facing MEP sends 802.1ag packets through all interfaces in a VLAN associated with an MA, except the interface on which the MEP is configured. That is, the inward-facing MEP broadcasts 802.1ag packets in the VLAN associated with the MA. -
outward Indicates an outward-facing MEP. An outward-facing MEP sends 802.1ag packets through an interface on which the MEP is configured. -

Views

MA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To create a MEP, run the mep mep-id command.

Precautions

Inward- and outward-facing MEPs are classified based on the scope where 802.1ag packets are sent.

The requirements for the number and type of MEPs created in an MA are as follows:

  • The inward- and outward-facing MEPs cannot coexist.

  • You can create multiple inward-facing interface-based MEPs but only one outward-facing interface-based MEP. Only one inward-facing interface-based MEP can be created on an interface.

Example

# Create an inward-facing MEP on GigabitEthernet1/0/1 in MA ma1 of MD md1 and set the MEP ID to 15.
<HUAWEI> system-view
[HUAWEI] vlan 100
[HUAWEI-vlan100] port gigabitethernet 1/0/1
[HUAWEI-vlan100] quit
[HUAWEI] cfm enable
[HUAWEI] cfm md md1
[HUAWEI-md-md1] ma ma1
[HUAWEI-md-md1-ma-ma1] map vlan 100
[HUAWEI-md-md1-ma-ma1] mep mep-id 15 interface gigabitethernet 1/0/1 inward
Related Topics

mep alarm disable

Function

The mep alarm disable command disables a MEP from reporting alarms.

The undo mep alarm disable command enables a MEP to report alarms.

By default, a MEP is enabled to report alarms.

Format

mep mep-id mep-id alarm { rdi | ais } disable

undo mep mep-id mep-id alarm { rdi | ais } disable

Parameters

Parameter Description Value
mep-id mep-id Specifies the ID of a MEP. A MEP ID identifies a MEP. Each MEP must have a unique ID in an MA or a VLAN. The value is an integer that ranges from 1 to 8191.
alarm rdi Disables a MEP from reporting remote defect indication (RDI) alarms. -
alarm ais Disables a MEP from reporting alarm indication signal (AIS) alarms. -

Views

MA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When an NMS manages many MEPs on a network, it may receive a large number of RDI and AIS alarms. To reduce such alarms, you can disable the MEPs from reporting alarms. After a MEP is disabled from reporting of RDI or AIS alarms, AIS or RDI alarms of this MEP are no longer sent to the NMS. This reduces the load of the NMS and local device.

Prerequisites

The following operations have been performed:
  1. Run the cfm md command to create an MD.

  2. Run the ma command to create an MA.

  3. Run the mep mep-id command to create a MEP.

Example

# Disable MEP 1 in the MA ma1 of the MD md1 from reporting RDI alarms.
<HUAWEI> system-view
[HUAWEI] cfm enable
[HUAWEI] cfm md md1
[HUAWEI-md-md1] ma ma1
[HUAWEI-md-md1-ma-ma1] map vlan 100
[HUAWEI-md-md1-ma-ma1] mep mep-id 1 alarm rdi disable
Related Topics

mep ccm-send enable

Function

The mep ccm-send enable command enables a MEP in an MA to send CCMs.

The undo mep ccm-send enable command disables a MEP in an MA from sending CCMs.

By default, a MEP is disabled from sending CCMs.

Format

mep ccm-send [ mep-id mep-id ] enable

undo mep ccm-send [ mep-id mep-id ] enable

Parameters

Parameter Description Value
mep-id mep-id Specifies the ID of a MEP. If this parameter is not specified, all the MEPs in the MA are enabled to send CCMs or disabled from sending CCMs. The value of mep-id is an integer that ranges from 1 to 8191.

Views

MA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After you use the mep mep-id command to configure a MEP, use this command to enable the MEP to send CCMs.

Precautions

The interval at which CCMs are sent or received cannot be modified on the device in an MA if one of the following operations is performed:

  • The mep ccm-send enable command is run to enable a MEP in an MA to send CCMs.

  • The remote mep ccm-receive enable command is run to enable a MEP in an MA to receive CCMs.

The undo mep ccm-send enable or remote mep ccm-receive enable command must be run before the interval is reconfigured.

Example

# Enable MEP 10 in the MA named ma1 to send CCMs.

<HUAWEI> system-view
[HUAWEI] cfm md md1
[HUAWEI-md-md1] ma ma1
[HUAWEI-md-md1-ma-ma1] mep ccm-send mep-id 10 enable

mip create-type (MD view)

Function

The mip create-type command configures a MIP creation rule in an MD or the default MD.

The undo mip create-type command restores the default MIP creation rule in an MD or the default MD.

By default, the MIP creation rule in an MD or the default MD is none. That is, MIPs are not created.

Format

mip create-type { default | explicit | none }

undo mip create-type

Parameters

Parameter Description Value
default Indicates that a MIP can be created on the interface without a higher-level MEP and a lower-level MIP. In this mode, MIPs can be created when no MEP is configured on the interface. -
explicit Indicates that a MIP can be created on an interface with a lower-level MEP but without a higher-level MEP or a lower-level MIP. In this mode, a MIP can be created on an interface only when a lower-level MEP has been configured on this interface. -
none Indicates that the MIP creation rule on an interface is none, that is, a MIP is not created automatically. -

Views

MD view, default MD view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When all devices in an MD are enabled to send CCMs, MEPs send CCMs periodically. If a MEP receives no CCMs from an RMEP within three consecutive intervals for sending CCMs, a connectivity fault between the MEP and RMEP occurs. A MIP needs to be used to locate the fault.

Precautions

After the MIP creation rule is set in an MD or the default MD, all interfaces in the MD or default MD use this rule to create a MIP.

If the MIP creation rule is default or explicit, the device creates a MIP automatically according to the rule.

NOTE:
  • The mip create-type command can be used only on the Layer 2 interfaces to which the MD or default MD belongs.

  • In the scenario where a CE connects to the VPLS network through a VLANIF interface, you must set the MIP creation rule of the MIP in the MD or default MD to none.

Example

# Set the MIP creation rule to none in the MD named customer.

<HUAWEI> system-view
[HUAWEI] cfm md customer level 1
[HUAWEI-md-customer] mip create-type none

# Set the MIP creation rule to default in the default MD.

<HUAWEI> system-view
[HUAWEI] cfm default md
[HUAWEI-default-md] mip create-type default

oam-bind cfm md ma bfd-session

Function

The oam-bind cfm md ma bfd-session command configures Ethernet CFM and BFD to report faults to each other.

The undo oam-bind cfm md ma bfd-session command cancels the configuration.

By default, Ethernet CFM and BFD are not configured to report faults to each other.

Format

oam-bind cfm md md-name ma ma-name bfd-session bfd-session-id

undo oam-bind cfm md md-name ma ma-name bfd-session bfd-session-id

Parameters

Parameter

Description

Value

md-name

Specifies the name of an MD.

The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?).

NOTE:

When double quotation marks are used around the string, spaces are allowed in the string.

ma-name

Specifies the name of an MA.

The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?). The total length of the names of the MA and MD must be within 44 characters.

NOTE:

When double quotation marks are used around the string, spaces are allowed in the string.

bfd-session-id

Specifies the ID of a BFD session.

The value is an integer that ranges from 1 to 8191.

Views

OAM management view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To associate CFM with BFD, run the oam-bind cfm md ma bfd-session command.

Precautions

When Ethernet CFM detects a fault in an MA, the OAM management module reports the fault to the associated BFD session. When detecting a fault, BFD reports the fault to the associated MA.

Prerequisites

The MD, MA, and BFD session have been created.

Example

# Configure Ethernet CFM and BFD to report faults to each other.

<HUAWEI> system-view
[HUAWEI] oam-mgr
[HUAWEI-oam-mgr] oam-bind cfm md mdcustomer ma macustomer bfd-session 50

oam-bind cfm md ma cfm md ma

Function

The oam-bind cfm md ma cfm md ma command configures Ethernet CFM modules at both ends to report faults to each other.

The undo oam-bind cfm md ma cfm md ma command cancels the configuration.

By default, Ethernet CFM modules at both ends are not configured to report faults to each other.

Format

oam-bind cfm md md-name1 ma ma-name1 cfm md md-name2 ma ma-name2

undo oam-bind cfm md md-name1 ma ma-name1 cfm md md-name2 ma ma-name2

Parameters

Parameter Description Value
md-name1 Specifies the name of an MD. The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?).
NOTE:

When double quotation marks are used around the string, spaces are allowed in the string.

md-name2 Specifies the name of an MD. The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?).
NOTE:

When double quotation marks are used around the string, spaces are allowed in the string.

ma-name1 Specifies the name of an MA. The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?). The total length of the names of the MA and MD must be within 44 characters.
NOTE:

When double quotation marks are used around the string, spaces are allowed in the string.

ma-name2 Specifies the name of an MA. The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?). The total length of the names of the MA and MD must be within 44 characters.
NOTE:

When double quotation marks are used around the string, spaces are allowed in the string.

Views

OAM management view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To associate CFM modules at both ends, run the oam-bind cfm md ma cfm md ma command.

Precautions

When a fault is detected in an MA, Ethernet CFM modules at both ends report faults to each other.

Prerequisites

The MD and MA have been created.

Example

# Configure Ethernet CFM modules at both ends to report faults to each other.

<HUAWEI> system-view
[HUAWEI] oam-mgr
[HUAWEI-oam-mgr] oam-bind cfm md mdcustomer1 ma macustomer1 cfm md mdcustomer2 ma macustomer2

oam-bind cfm md ma efm interface

Function

The oam-bind cfm md ma efm interface command configures EFM and Ethernet CFM to report faults to each other.

The undo oam-bind cfm md ma efm interface command cancels the configuration.

By default, EFM OAM and Ethernet CFM are not configured to report faults to each other.

Format

oam-bind cfm md md-name ma ma-name efm interface interface-type interface-number

undo oam-bind cfm md md-name ma ma-name efm interface interface-type interface-number

Parameters

Parameter Description Value
md-name Specifies the name of an MD. The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?).
NOTE:

When double quotation marks are used around the string, spaces are allowed in the string.

ma-name Specifies the name of an MA. The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?). The total length of the names of the MA and MD must be within 44 characters.
NOTE:

When double quotation marks are used around the string, spaces are allowed in the string.

interface-type interface-number Specifies the type and number of an Ethernet interface.
  • interface-type specifies the interface type.

  • interface-number specifies the interface number.

The interface must have been enabled with EFM OAM.
-

Views

OAM management view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If EFM is deployed at one side and CFM is deployed at another side of a device, associate EFM with CFM on the device so that EFM and CFM can report faults to each other.

Association between EFM and CFM is bidirectional:
  • When EFM detects a link fault, it will notify CFM of the fault.

  • When CFM detects a link fault, it will notify EFM of the fault.

The following commands are used to associate EFM with CFM:

Select the preceding commands in different scenarios according to Table 12-65.

Table 12-65  Association between EFM and CFM

Scenario

Configuration Solution 1

Configuration Solution 2

Bidirectional fault notification between EFM and CFM

The oam-bind cfm md ma efm interface command is used to configure EFM and CFM to report faults to each other.

Run the following commands at a random order (each command configures fault transmission in a single direction):

Unidirectional fault notification between EFM and CFM

Select either of the following commands based on the transmission direction:

None

Prerequisites

The MD and MA have been created and EFM has been enabled on the specified interface.

Precautions

The binding between an Ethernet CFM module and an interface is one-to-one. That is, when an Ethernet CFM module is bound to an interface, the Ethernet CFM module cannot be bound to other interfaces.

Example

# Configure EFM and CFM to report faults to each other through the GigabitEthernet1/0/1.

<HUAWEI> system-view
[HUAWEI] oam-mgr
[HUAWEI-oam-mgr] oam-bind cfm md mdcustomer ma customer efm interface gigabitethernet 1/0/1

oam-bind cfm md ma trigger if-down interface

Function

The oam-bind cfm md ma trigger if-down interface command enables Ethernet CFM and an interface to report faults to each other.

The undo oam-bind cfm md ma trigger if-down interface command cancels the configuration.

By default, Ethernet CFM and an interface are not configured to report faults to each other.

Format

oam-bind cfm md md-name ma ma-name trigger if-down interface interface-type interface-number

undo oam-bind cfm md md-name ma ma-name trigger if-down interface interface-type interface-number

Parameters

Parameter Description Value
md md-name Specifies the name of an MD. The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?).
NOTE:

When double quotation marks are used around the string, spaces are allowed in the string.

ma ma-name Specifies the name of an MA. The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?). The total length of the names of the MA and MD must be within 44 characters.
NOTE:

When double quotation marks are used around the string, spaces are allowed in the string.

if-down Indicates that an interface goes Down when Ethernet CFM on the interface detects a fault. -
interface-type interface-number Specifies the type and number of the interface bound to CFM.
  • interface-type specifies the interface type.

  • interface-number specifies the interface number.

-

Views

OAM management view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To associate CFM with an interface, run the oam-bind cfm md ma trigger if-down interface command.

Precautions

Before configuring CFM and an interface to report faults to each other, pay attention to the following points:

  • The MD and MA related to the Ethernet CFM module must have been created.

  • The binding between an Ethernet CFM module and an interface is one-to-one. That is, when an Ethernet CFM module is bound to an interface, the Ethernet CFM module cannot be bound to other interfaces.

  • A physical interface associated with CFM cannot be monitored by CFM. If CFM is associated with a physical interface monitored by itself, the link is locked.

Configure unidirectional or bidirectional transmission of fault information between Ethernet CFM and an interface. You may use the following commands when associating Ethernet CFM with an interface:

Select the preceding commands in different scenarios according to Table 12-66.

Table 12-66  Association between Ethernet CFM and an interface

Scenario

Configuration Solution 1

Configuration Solution 2

Faults need to be transmitted bidirectionally between Ethernet CFM and an interface.

Select either of the following commands (the two commands have the same function):

  • If you prefer to specify the MD and MA before the interface, use the oam-bind cfm md ma trigger if-down interface command.

  • If you prefer to specify the interface before the MD and MA, use the oam-bind interface cfm md ma trigger if-down command.

NOTE:

After configuring Ethernet CFM and an interface to report faults to each other, run the display current-configuration command to check the configuration. The command output displays the oam-bind ingress cfm md ma egress interface and oam-bind ingress interface egress cfm md ma trigger if-down commands, but does not display the oam-bind cfm md ma trigger if-down interface or oam-bind interface cfm md ma trigger if-down command. The displayed commands configure reverse directions of fault transmission.

Run the following commands at a random order (each command configures fault transmission in a single direction):

Faults need to be transmitted unidirectionally between Ethernet CFM and an interface.

Select either of the following commands based on the transmission direction:

None

Example

# Configure Ethernet CFM to report faults to the GigabitEthernet1/0/1.

<HUAWEI> system-view
[HUAWEI] oam-mgr
[HUAWEI-oam-mgr] oam-bind cfm md md1 ma ma1 trigger if-down interface gigabitethernet 1/0/1

oam-bind ingress bfd-session egress cfm md ma

Function

The oam-bind ingress bfd-session egress cfm md ma command configures BFD to report faults to Ethernet CFM.

The undo oam-bind ingress bfd-session egress cfm md ma command cancels the configuration.

By default, BFD is not configured to report faults to Ethernet CFM.

Format

oam-bind ingress bfd-session bfd-session-id egress cfm md md-name ma ma-name

undo oam-bind ingress bfd-session bfd-session-id egress cfm md md-name ma ma-name

Parameters

Parameter Description Value
md-name Specifies the name of an MD. The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?).
NOTE:

When double quotation marks are used around the string, spaces are allowed in the string.

ma-name Specifies the name of an MA. The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?). The total length of the names of the MA and MD must be within 44 characters.
NOTE:

When double quotation marks are used around the string, spaces are allowed in the string.

bfd-session-id Specifies the ID of a BFD session. The value is an integer that ranges from 1 to 8191.

Views

OAM management view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To associate BFD with CFM, run the oam-bind ingress bfd-session egress cfm md ma command.

Precautions

After detecting a fault, BFD reports faults to an MA based on the association.

Prerequisites

The MD, MA, and BFD session have been created.

Example

# Configure BFD to report faults to Ethernet CFM.

<HUAWEI> system-view
[HUAWEI] oam-mgr
[HUAWEI-oam-mgr] oam-bind ingress bfd-session 50 egress cfm md mdcustomer ma macustomer

oam-bind ingress cfm md ma egress interface

Function

The oam-bind ingress cfm md ma egress interface command configures Ethernet CFM to report faults to an interface.

The undo oam-bind ingress cfm md ma egress interface command cancels the configuration.

By default, Ethernet CFM is not configured to report faults to an interface.

Format

oam-bind ingress cfm md md-name ma ma-name trigger { if-down | if-notify } egress interface interface-type interface-number

undo oam-bind ingress cfm md md-name ma ma-name trigger {if-down | if-notify } egress interface interface-type interface-number

Parameters

Parameter Description Value
md md-name Specifies the name of an MD. The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?).
NOTE:

When double quotation marks are used around the string, spaces are allowed in the string.

ma ma-name Specifies the name of an MA. The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?). The total length of the names of the MA and MD must be within 44 characters.
NOTE:

When double quotation marks are used around the string, spaces are allowed in the string.

if-down Indicates that an interface goes Down when Ethernet CFM on the interface detects a fault. -
if-notify

Indicates that an interface sends a Port-Down event but is not shut down when Ethernet CFM bound to the interface detects a fault.

-
interface-type interface-number Specifies the type and number of the interface bound to CFM.
  • interface-type specifies the interface type.

  • interface-number specifies the interface number.

-

Views

OAM management view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To associate CFM with an interface, run the oam-bind ingress cfm md ma egress interface command.

Precautions

Before configuring CFM and an interface to report faults to each other, pay attention to the following points:

  • Fault messages are transmitted from the ingress to the egress.

  • The MD and MA related to the Ethernet CFM module must have been created.

  • The binding between an Ethernet CFM module and an interface is one-to-one. That is, when an Ethernet CFM module is bound to an interface, the Ethernet CFM module cannot be bound to other interfaces.

  • A physical interface associated with CFM cannot be monitored by CFM. If CFM is associated with a physical interface monitored by itself, the link is locked.

Configure unidirectional or bidirectional transmission of fault information between Ethernet CFM and an interface. You may use the following commands when associating Ethernet CFM with an interface:

Select the preceding commands in different scenarios according to Table 12-67.

Table 12-67  Association between Ethernet CFM and an interface

Scenario

Configuration Solution 1

Configuration Solution 2

Faults need to be transmitted bidirectionally between Ethernet CFM and an interface.

Select either of the following commands (the two commands have the same function):

NOTE:

After configuring Ethernet CFM and an interface to report faults to each other, run the display current-configuration command to check the configuration. The command output displays the oam-bind ingress cfm md ma egress interface and oam-bind ingress interface egress cfm md ma trigger if-down commands, but does not display the oam-bind cfm md ma trigger if-down interface or oam-bind interface cfm md ma trigger if-down command. The displayed commands configure reverse directions of fault transmission.

Run the following commands at a random order (each command configures fault transmission in a single direction):

Faults need to be transmitted unidirectionally between Ethernet CFM and an interface.

Select either of the following commands based on the transmission direction:

None

Example

# Configure CFM to report faults to the GigabitEthernet1/0/1.

<HUAWEI> system-view
[HUAWEI] oam-mgr
[HUAWEI-oam-mgr] oam-bind ingress cfm md md1 ma ma1 trigger if-down egress interface gigabitethernet 1/0/1

oam-bind ingress cfm md ma egress sep segment

Function

The oam-bind ingress cfm md ma egress sep segment command configures CFM to report faults to a SEP segment.

The undo oam-bind ingress cfm md ma egress sep segment command cancels the configuration.

By default, CFM is not configured to report faults to a SEP segment.

Format

oam-bind ingress cfm md md-name ma ma-name egress sep segment segment-id interface interface-type interface-number

undo oam-bind ingress cfm md md-name ma ma-name egress sep segment segment-id interface interface-type interface-number

Parameters

Parameter Description Value
ingress egress Configures CFM to report faults to a SEP segment. -
md md-name Specifies the name of an MD. The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?).
NOTE:

When double quotation marks are used around the string, spaces are allowed in the string.

ma ma-name Specifies the name of an MA. The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?). The total length of the names of the MA and MD must be within 44 characters.
NOTE:

When double quotation marks are used around the string, spaces are allowed in the string.

segment segment-id Specifies the ID of a SEP segment. The value is an integer that ranges from 1 to 1024.
interface-type interface-number Specifies the type and number of an Ethernet interface.
  • interface-type specifies the interface type.

  • interface-number specifies the interface number.

The Ethernet interface must have been added to the SEP segment.
-

Views

OAM management view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To associate CFM with SEP, run the oam-bind ingress cfm md ma egress sep segment command.

Precautions

When a device running SEP at the access layer connects to the aggregation layer, pay attention to the following points:

  • When a fault occurs at the access layer, configure topology change notification so that the aggregation layer can detect the fault at the access layer. Devices in the SEP segment can update their MAC address tables and ARP tables in a timely manner.

  • If a fault occurs at the aggregation layer, associate SEP with Ethernet CFM on the device between the access layer and aggregation layer so that the access layer can detect the fault at the aggregation layer. Devices at the access layer can update their MAC address tables and ARP tables.

Prerequisites

This command can take effect only when the following configurations are completed:

  • Run the cfm enable (system view) command to enable CFM globally.

  • Run the cfm md command in the system view to create an MD.

  • Run the ma command in the MD view to create an MA.

  • Run the mep mep-id command in the MA view to create a MEP.

  • Run the remote-mep command in the MA view to create an RMEP.

  • Run the mep ccm-send enable command in the MA view to enable the local MEP in the MA to send CCMs.

  • Run the remote-mep ccm-receive enable command in the MA view to enable the MEP to receive CCMs from the RMEP in the same MA.

  • The interface specified in this command has been added to the SEP segment.

Example

# Configure CFM to report faults to SEP segment 10.

<HUAWEI> system-view
[HUAWEI] oam-mgr
[HUAWEI-oam-mgr] oam-bind ingress cfm md md1 ma ma1 egress sep segment 10 interface gigabitethernet 1/0/1

oam-bind ingress cfm md ma egress bfd-session

Function

The oam-bind ingress cfm md ma egress bfd-session command configures Ethernet CFM to report faults to BFD.

The undo oam-bind ingress cfm md ma egress bfd-session command cancels the configuration.

By default, Ethernet CFM is not configured to report faults to BFD.

Format

oam-bind ingress cfm md md-name ma ma-name egress bfd-session bfd-session-id

undo oam-bind ingress cfm md md-name ma ma-name egress bfd-session bfd-session-id

Parameters

Parameter Description Value
md-name Specifies the name of an MD. The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?).
ma-name Specifies the name of an MA. The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?). The total length of the names of the MA and MD must be within 44 characters.
bfd-session-id Specifies the ID of a BFD session. The value is an integer that ranges from 1 to 8191.

Views

OAM management view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To associate CFM with BFD, run the oam-bind ingress cfm md ma egress bfd-session command.

Precautions

When Ethernet CFM detects a fault in an MA, the OAM management module reports the fault to the associated BFD session.

Prerequisites

The MD, MA, and BFD session have been created.

Example

# Configure Ethernet CFM to report faults to BFD.

<HUAWEI> system-view
[HUAWEI] oam-mgr
[HUAWEI-oam-mgr] oam-bind ingress cfm md mdcustomer ma macustomer egress bfd-session 50

oam-bind ingress cfm md ma egress cfm md ma

Function

The oam-bind ingress cfm md ma egress cfm md ma command configures Ethernet CFM at one side to report faults to Ethernet CFM at the other side.

The undo oam-bind ingress cfm md ma egress cfm md ma command cancels the configuration.

By default, Ethernet CFM at one side is not configured to report faults to Ethernet CFM at the other side.

Format

oam-bind ingress cfm md md-name1 ma ma-name1 egress cfm md md-name2 ma ma-name2

undo oam-bind ingress cfm md md-name1 ma ma-name1 egress cfm md md-name2 ma ma-name2

Parameters

Parameter Description Value
md-name1 Specifies the name of an MD. The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?).
md-name2 Specifies the name of an MD. The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?).
ma-name1 Specifies the name of an MA. The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?). The total length of the names of the MA and MD must be within 44 characters.
ma-name2 Specifies the name of an MA. The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?). The total length of the names of the MA and MD must be within 44 characters.

Views

OAM management view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To associate CFM at both sides, run the oam-bind ingress cfm md ma egress cfm md ma command.

Precautions

When Ethernet CFM detects a fault in the MA where the ingress is located, the OAM management module reports the fault to the associated MA.

Prerequisites

The MD and MA have been created.

Example

# Configure Ethernet CFM at one side to report faults to Ethernet CFM at the other side.

<HUAWEI> system-view
[HUAWEI] oam-mgr
[HUAWEI-oam-mgr] oam-bind ingress cfm md mdcustomer1 ma macustomer1 egress cfm md mdcustomer2 ma macustomer2

oam-bind ingress cfm md ma egress efm interface

Function

The oam-bind ingress cfm md ma egress efm interface command configures Ethernet CFM to report faults to EFM OAM.

The undo oam-bind ingress cfm md ma egress efm interface command cancels the configuration.

By default, Ethernet CFM is not configured to report faults to EFM OAM.

Format

oam-bind ingress cfm md md-name ma ma-name egress efm interface interface-type interface-number

undo oam-bind ingress cfm md md-name ma ma-name egress efm interface interface-type interface-number

Parameters

Parameter Description Value
md-name Specifies the name of an MD. The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?).
ma-name Specifies the name of an MA. The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?). The total length of the names of the MA and MD must be within 44 characters.
interface-number Specifies the type and number of an Ethernet interface.
  • interface-type specifies the interface type.

  • interface-number specifies the interface number.

The interface must have been enabled with EFM OAM.
-

Views

OAM management view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If EFM is deployed at one side and CFM is deployed at another side of a device, associate EFM with CFM on the device so that EFM and CFM can report faults to each other.

Association between EFM and CFM is bidirectional:
  • When EFM detects a link fault, it will notify CFM of the fault.

  • When CFM detects a link fault, it will notify EFM of the fault.

The following commands are used to associate EFM with CFM:

Select the preceding commands in different scenarios according to Table 12-68.

Table 12-68  Association between EFM and CFM

Scenario

Configuration Solution 1

Configuration Solution 2

Bidirectional fault notification between EFM and CFM

The oam-bind cfm md ma efm interface command is used to configure EFM and CFM to report faults to each other.

Run the following commands at a random order (each command configures fault transmission in a single direction):

Unidirectional fault notification between EFM and CFM

Select either of the following commands based on the transmission direction:

None

Prerequisites

The MD and MA have been created and EFM has been enabled on the specified interface.

Example

# Configure Ethernet CFM to report faults to EFM through the GigabitEthernet1/0/1.

<HUAWEI> system-view
[HUAWEI] oam-mgr
[HUAWEI-oam-mgr] oam-bind ingress cfm md mdcustomer ma customer egress efm interface gigabitethernet 1/0/1

oam-bind ingress efm interface egress cfm md ma

Function

The oam-bind ingress efm interface egress cfm md ma command configures EFM OAM to report faults to Ethernet CFM.

The undo oam-bind ingress efm interface egress cfm md ma command cancels the configuration.

By default, EFM OAM is not configured to report faults to Ethernet CFM.

Format

oam-bind ingress efm interface interface-type interface-number egress cfm md md-name ma ma-name

undo oam-bind ingress efm interface interface-type interface-number egress cfm md md-name ma ma-name

Parameters

Parameter Description Value
md-name Specifies the name of an MD. The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?).
NOTE:

When double quotation marks are used around the string, spaces are allowed in the string.

ma-name Specifies the name of an MA. The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?). The total length of the names of the MA and MD must be within 44 characters.
NOTE:

When double quotation marks are used around the string, spaces are allowed in the string.

interface-type interface-number Specifies the type and number of an Ethernet interface.
  • interface-type specifies the interface type.

  • interface-number specifies the interface number.

The interface must have been enabled with EFM OAM.
-

Views

OAM management view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If EFM is deployed at one side and CFM is deployed at another side of a device, associate EFM with CFM on the device so that EFM and CFM can report faults to each other.

Association between EFM and CFM is bidirectional:
  • When EFM detects a link fault, it will notify CFM of the fault.

  • When CFM detects a link fault, it will notify EFM of the fault.

The following commands are used to associate EFM with CFM:

Select the preceding commands in different scenarios according to Table 12-69.

Table 12-69  Association between EFM and CFM

Scenario

Configuration Solution 1

Configuration Solution 2

Bidirectional fault notification between EFM and CFM

The oam-bind cfm md ma efm interface command is used to configure EFM and CFM to report faults to each other.

Run the following commands at a random order (each command configures fault transmission in a single direction):

Unidirectional fault notification between EFM and CFM

Select either of the following commands based on the transmission direction:

None

Prerequisites

The MD and MA have been created and EFM has been enabled on the specified interface.

Example

# Configure EFM to report faults to CFM through the GigabitEthernet1/0/1.

<HUAWEI> system-view
[HUAWEI] oam-mgr
[HUAWEI-oam-mgr] oam-bind ingress efm interface gigabitethernet 1/0/1 egress cfm md mdcustomer ma customer

oam-bind ingress interface egress cfm md ma trigger if-down

Function

The oam-bind ingress interface egress cfm md ma trigger if-down command configures an interface to report faults to Ethernet CFM.

The undo oam-bind ingress interface egress cfm md ma trigger if-down command cancels the configuration.

By default, an interface is not configured to report faults to Ethernet CFM.

Format

oam-bind ingress interface interface-type interface-number egress cfm md md-name ma ma-name trigger if-down

undo oam-bind ingress interface interface-type interface-number egress cfm md md-name ma ma-name trigger if-down

Parameters

Parameter Description Value
interface-type interface-number

Specifies the type and number of an interface.

  • interface-type specifies the interface type.

  • interface-number specifies the interface number.

-
md md-name

Specifies the name of an MD.

The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?).
NOTE:

When double quotation marks are used around the string, spaces are allowed in the string.

ma ma-name

Specifies the name of an MA.

The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?). The total length of the names of the MA and MD must be within 44 characters.
NOTE:

When double quotation marks are used around the string, spaces are allowed in the string.

if-down

Indicates that the OAM management module notifies Ethernet CFM of the fault and Ethernet CFM notifies the remote end of the fault when an interface goes Down.

-

Views

OAM management view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To associate an interface with CFM, run the oam-bind ingress interface egress cfm md ma trigger if-down command.

Precautions

If CFM is associated with an interface on a device and a device interface goes Down, the OAM management module notifies Ethernet CFM of the fault and Ethernet CFM notifies the remote end of the fault.

Prerequisites

Unidirectional fault transmission from an interface to Ethernet CFM can be configured only when the following requirements are met:

  • The MD and MA related to the Ethernet CFM module must have been created.

  • The binding between an Ethernet CFM module and an interface is one-to-one. That is, when an Ethernet CFM module is bound to an interface, the Ethernet CFM module cannot be bound to other interfaces.

  • A physical interface associated with CFM cannot be the one that CFM monitors. If CFM is associated with a physical interface that it monitors, the link is locked.

Configure unidirectional or bidirectional fault transmission between Ethernet CFM and an interface. You may use the following commands when associating Ethernet CFM with an interface:

Select the preceding commands in different scenarios according to Table 12-70.

Table 12-70  Association between Ethernet CFM and an interface

Scenario

Configuration Solution 1

Configuration Solution 2

Faults need to be transmitted bidirectionally between Ethernet CFM and an interface.

Select either of the following commands (the two commands have the same function):

NOTE:

After configuring Ethernet CFM and an interface to report faults to each other, run the display current-configuration command to check the configuration. The command output displays the oam-bind ingress cfm md ma egress interface and oam-bind ingress interface egress cfm md ma trigger if-down commands, but does not display the oam-bind cfm md ma trigger if-down interface or oam-bind interface cfm md ma trigger if-down command. The displayed commands configure reverse transmission directions of fault information.

Run the following commands at a random order (each command configures fault transmission in a single direction):

Faults need to be transmitted unidirectionally between Ethernet CFM and an interface.

Select either of the following commands based on the transmission direction:

  • To configure Ethernet CFM to report faults to an interface, use the oam-bind ingress cfm md ma egress interface command.

  • To configure an interface to report faults to Ethernet CFM, use the oam-bind ingress interface egress cfm md ma trigger if-down command.

None

Example

# Configure Ethernet CFM to report faults to the GigabitEthernet1/0/1.

<HUAWEI> system-view
[HUAWEI] oam-mgr
[HUAWEI-oam-mgr] oam-bind ingress interface gigabitethernet 1/0/1 egress cfm md md1 ma ma1 trigger if-down

oam-bind interface bfd-session trigger if-down

Function

The oam-bind interface bfd-session trigger if-down command enables bidirectional fault transmission between a BFD session and an interface.

The undo oam-bind interface bfd-session trigger if-down command cancels the configuration.

By default, bidirectional fault transmission between a BFD session and an interface is not enabled.

Format

oam-bind interface interface-type interface-number bfd-session session-id trigger if-down

undo oam-bind interface interface-type interface-number bfd-session session-id trigger if-down

Parameters

Parameter Description Value
interface interface-type interface-number Specifies the type and number of an interface. interface-type specifies the interface type, and interface-number specifies the interface number.
bfd-session session-id Specifies the ID of a BFD session.

The value is an integer that ranges from 1 to 8191.

Views

OAM management view

Default Level

2: Configuration level

Usage Guidelines

On a device with BFD associated with an interface, when BFD detects a fault, BFD informs the OAM management module of the fault, which causes the associated interface to go Down. Similarly, when the interface goes Down, the OAM management module informs BFD of the fault.

Bidirectional fault transmission between a BFD session and an interface can be configured only when the following requirements are met:

  • A BFD session has been set up.

  • On the Ethernet, a BFD session is associated with a unique interface. After a BFD session is associated with an interface, the BFD session cannot be associated with another interface. Similarly, when an interface is associated with a BFD session, the interface cannot be associated with another BFD session.

  • The physical interface associated with BFD cannot be the interface of the BFD link; otherwise, a link deadlock occurs.

Fault transmission between a BFD session and an interface is used in directional and unidirectional scenarios. To deploy fault transmission between a BFD session and an interface on a device, use the following commands:

Table 12-71 describes the relationships between these commands and rules for selecting these commands.

Table 12-71  Transmission of information about a fault between a BFD session and an interface
Usage Scenario Configuration Solution 1 Configuration Solution 2
Deploying bidirectional fault transmission between a BFD session and an interface

Select either of the following commands, whose functions and usage scenarios are the same:

  • If you specify the ID of a BFD session before specifying an interface number, run the oam-bind bfd-session trigger if-down interface command.

  • If you specify an interface number before specifying the ID of a BFD session, run the oam-bind interface bfd-session trigger if-down command.

NOTE:

After deploying bidirectional transmission using either of the preceding commands, run the display current-configuration command to check the configuration. The command output shows both oam-bind ingress interface egress bfd-session trigger if-down and oam-bind ingress bfd-session trigger if-down egress interface commands.

To implement bidirectional transmission, you can also use both of the following commands to configure separate unidirectional fault transmission (the two commands can be configured in any sequence):

Deploying unidirectional fault transmission between a BFD session and an interface

Select either of the following commands based on the direction in which fault information is transmitted:

-

Example

# Configure unidirectional fault transmission from GE 1/0/1 to a BFD session.

<HUAWEI> system-view
[HUAWEI] oam-mgr
[HUAWEI-oam-mgr] oam-bind interface gigabitethernet1/0/1 bfd 1 trigger if-down

oam-bind interface cfm md ma trigger if-down

Function

The oam-bind interface cfm md ma trigger if-down command configures an interface and Ethernet CFM to report faults to each other.

The undo oam-bind interface cfm md ma trigger if-down command cancels the configuration.

By default, an interface and Ethernet CFM are not configured to report faults to each other.

Format

oam-bind interface interface-type interface-number cfm md md-name ma ma-name trigger if-down

undo oam-bind interface interface-type interface-number cfm md md-name ma ma-name trigger if-down

Parameters

Parameter Description Value
interface-type interface-number Specifies the type and number of an interface.
  • interface-type specifies the interface type.

  • interface-number specifies the interface number.

-
md md-name Specifies the name of an MD. The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?).
NOTE:

When double quotation marks are used around the string, spaces are allowed in the string.

ma ma-name Specifies the name of an MA. The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?). The total length of the names of the MA and MD must be within 44 characters.
NOTE:

When double quotation marks are used around the string, spaces are allowed in the string.

if-down

Indicates that the OAM management module notifies Ethernet CFM of the fault and Ethernet CFM notifies the remote end of the fault when an interface goes Down.

-

Views

OAM management view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To associate an interface with CFM, run the oam-bind interface cfm md ma trigger if-down command.

Precautions

Before configuring CFM and an interface to report faults to each other, pay attention to the following points:

  • The MD and MA related to the Ethernet CFM module must have been created.

  • The binding between an Ethernet CFM module and an interface is one-to-one. That is, when an Ethernet CFM module is bound to an interface, the Ethernet CFM module cannot be bound to other interfaces.

  • A physical interface associated with CFM cannot be monitored by CFM. If CFM is associated with a physical interface monitored by itself, the link is locked.

Configure unidirectional or bidirectional fault transmission between Ethernet CFM and an interface. You may use the following commands when associating Ethernet CFM with an interface:

Select the preceding commands in different scenarios according to Table 12-72.

Table 12-72  Association between Ethernet CFM and an interface

Scenario

Configuration Solution 1

Configuration Solution 2

Faults need to be transmitted bidirectionally between Ethernet CFM and an interface.

Select either of the following commands (the two commands have the same function):

  • If you prefer to specify the MD and MA before the interface, use the oam-bind cfm md ma trigger if-down interface command.

  • If you prefer to specify the interface before the MD and MA, use the oam-bind interface cfm md ma trigger if-down command.

NOTE:

After configuring Ethernet CFM and an interface to report faults to each other, run the display current-configuration command to check the configuration. The command output displays the oam-bind ingress cfm md ma egress interface and oam-bind ingress interface egress cfm md ma trigger if-down commands, but does not display the oam-bind cfm md ma trigger if-down interface or oam-bind interface cfm md ma trigger if-down command. The displayed commands configure reverse directions of fault transmission.

Run the following commands at a random order (each command configures fault transmission in a single direction):

Faults need to be transmitted unidirectionally between Ethernet CFM and an interface.

Select either of the following commands based on the transmission direction:

None

Example

# Enable the GigabitEthernet1/0/1 to report faults to Ethernet CFM.

<HUAWEI> system-view
[HUAWEI] oam-mgr
[HUAWEI-oam-mgr] oam-bind interface gigabitethernet 1/0/1 cfm md md1 ma ma1 trigger if-down

oam-mgr

Function

The oam-mgr command displays the OAM management view.

The undo oam-mgr command exits from the OAM management view.

Format

oam-mgr

undo oam-mgr

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

CFM can advertise fault information to interfaces or protocol modules. Ethernet OAM fault advertisement is implemented by an OAM manager, application modules, and detection modules. An OAMMGR module associates one module with another. A detection module monitors link status and network performance. If a detection module detects a fault, it instructs the OAMMGR module to notify an application module or another detection module of the fault. After receiving the notification, the application or detection module takes measures to prevent a communication interruption or service quality deterioration. Run the oam-mgr command to display the MGR view before associating the CFM module and other modules.

Example

# Enter the OAM management view.

<HUAWEI> system-view
[HUAWEI] oam-mgr
[HUAWEI-oam-mgr]

packet-priority

Function

The packet-priority command sets the 802.1p priority of 802.1ag packets in an MA.

The undo packet-priority command restores the default 802.1p priority of 802.1ag packets in an MA.

Format

packet-priority priority

undo packet-priority

Parameters

Parameter Description Value
priority Specifies the 802.1p priority of 802.1ag packets. The value is an integer that ranges from 0 to 7. The default value is 7. A larger value indicates a higher priority.

Views

MA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The 802.1ag packets are the Continuity Check Message (CCM), Loopback Message (LBM), Loopback Reply (LBR), Linktrace Message (LTM), and Linktrace Reply (LTR).

The 802.1ag packets with different 802.1p priorities are transmitted differently on networks. You can use this command to change the transmission quality of 802.1ag packets on networks.

Example

# Set the 802.1p priority of 802.1ag packets in an MA to 3.

<HUAWEI> system-view
[HUAWEI] cfm enable
[HUAWEI] cfm md md1
[HUAWEI-md-md1] ma ma1
[HUAWEI-md-md1-ma-ma1] packet-priority 3
Related Topics

ping mac-8021ag

Function

The ping mac-8021ag command enables 802.1ag MAC ping to detect connectivity faults between a MEP and an RMEP or a MIP in an MA.

Format

All views except the MA view:

ping mac-8021ag mep mep-id mep-id md md-name ma ma-name { mac mac-address | remote-mep mep-id mep-id } [ -c count | interface interface-type interface-number | -s packetsize | -t timeout | -p priority-value ] *

MA view

ping mac-8021ag mep mep-id mep-id { md md-name ma ma-name { mac mac-address | remote-mep mep-id mep-id } | mac mac-address | remote-mep mep-id mep-id } [ -c count | interface interface-type interface-number | -s packetsize | -t timeout | -p priority-value ] *

Parameters

Parameter

Description

Value

mep mep-id mep-id Specifies the ID of a MEP. The MEP must have been created using the mep mep-id command. The value is an integer that ranges from 1 to 8191.
md md-name Specifies the name of an MD. The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?).
ma ma-name Specifies the name of an MA. The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?). The total length of the names of the MA and MD must be within 44 characters.
mac mac-address
Specifies the MAC address of the destination node. The destination node can be a MEP or MIP. mac-address specifies the MP's MAC address.
NOTE:
An MP's MAC address can be a bridge MAC address or the MAC address of the interface where the MP is configured. The MAC address depends on the configured MP address model:
  • If the shared MP address model is configured, an MP uses a bridge MAC address as its own MAC address.

  • If the independent MP address model is configured, an MP uses the MAC address of the interface where the MP is configured.

The value is in H-H-H format. An H is a hexadecimal number of 1 to 4 digits. The value cannot be a broadcast or multicast MAC address.
remote-mep mep-id mep-id Specifies the ID of an RMEP. The value is an integer that ranges from 1 to 8191.
-c count Specifies the number of ping attempts. The value is an integer that ranges from 1 to 4294967295. The default value is 5.
interface-type interface-number Specifies the outbound interface on the local device for sending ping packets.
  • interface-type specifies the interface type.

  • interface-number specifies the interface number.

-
-s packetsize Specifies the size of a ping packet. The value is an integer that ranges from 95 to 9000, in bytes. The default value is 95.
-t timeout Specifies the timeout interval for waiting for a response packet. The value is an integer that ranges from 1 to 65535, in milliseconds. The default value is 2000 ms.
-p priority-value Specifies the priority of ping packets. The value is an integer that ranges from 0 to 7. The default value is the same as the 802.1p priority of 802.1ag packets specified in the MA view.

Views

All views

Default Level

0: Visit level

Usage Guidelines

Usage Scenario

Similar to ping, 802.1ag MAC ping enables the local device to send test packets and wait for a response to check whether the destination device is reachable. In addition, the ping operation time can be calculated at the transmit end for network performance analysis.

A device is usually configured with multiple MDs and MAs. To accurately detect connectivity of a link between two or more devices, perform either of the following operations:
  • Run the ping mac-8021ag command in the MA view.
    • Run the ping mac-8021ag command without md md-name ma ma-name specified to check connectivity of links in a specified MA.

    • Run the ping mac-8021ag command with md md-name and ma ma-name specified to check connectivity of links based on the configured MA and MD.

  • Run the ping mac-8021ag command in all views except the MA view to check connectivity of links based on the configured MA and MD.

Prerequisites

  • The MA has been associated with a VLAN.

  • The MEP has been configured in the MA.

Precautions

802.1ag MAC ping is initiated by the local MEP in the MA and destined for a MEP or a MIP of the same level on other devices. The source node and the destination node can be located in different MAs.

If the outbound interface is specified, it cannot be configured with an inward-facing MEP.

Example

# Ping the MIP with a bridge MAC address of 0001-0300-0204 twice on the MEP in ma1 and set the size of ping packets to 112 bytes.

<HUAWEI> system-view
[HUAWEI] cfm enable
[HUAWEI] cfm md md1
[HUAWEI-md-md1] ma ma1
[HUAWEI-md-md1-ma-ma1] ping mac-8021ag mep mep-id 1 mac 0001-0300-0204 -c 2 -s 112
Pinging 0001-0300-0204 with 112 bytes of data: 
Reply from 0001-0300-0204: bytes = 112 time = 9ms
Reply from 0001-0300-0204: bytes = 112 time = 11ms
Packets: Sent = 2, Received = 2, Lost = 0  <0% Lost >
Minimum = 9ms, Maximum = 11ms, Average = 10ms
Table 12-73  Description of the ping mac-8021ag command output

Item

Description

Reply from 0001-0300-0204: bytes = 112 time = 9ms

Size and response time of ping packets sent by the destination device.

When the response time is less than 1 ms, "time < 1ms" is displayed.

Packets: Sent = 2, Received = 2, Lost = 0 <0% Lost >

Number of sent ping packets, number of received reply packets, and number and percentage of discarded packets.

Minimum

Minimum round-trip time (RTT).

Maximum

Maximum RTT.

Average

Average RTT.

remote-mep

Function

The remote-mep command configures an RMEP in an MA.

The undo remote-mep command deletes an RMEP from an MA.

Format

remote-mep mep-id mep-id [ mac mac-address ]

undo remote-mep mep-id mep-id

Parameters

Parameter Description Value
mep-id mep-id Specifies the ID of an RMEP. The value is an integer that ranges from 1 to 8191.
mac mac-address Specifies the MAC address of an RMEP. The value is in H-H-H format. An H is a hexadecimal number of 1 to 4 digits.

Views

MA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To configure an RMEP, use this command.

Precautions

To detect CFM connectivity faults between a device and an RMEP in an MA, complete the following tasks:

  • Run the remote-mep command to configure an RMEP in an MA.

  • Run the remote-mep ccm-receive enable command to enable the MEP to receive CCMs from the RMEP.

To modify the bridge MAC address of the RMEP, you must delete the RMEP from an MA and then reconfigure the RMEP.

The RMEP ID must be different from the MEP ID configured on a local interface.

  • If multiple MEPs exist in an MA, the configured RMEP corresponds to multiple MEPs.

  • If one MEP exists in an MA, one or more configured RMEPs correspond to one MEP.

Example

# Configure RMEP 10 in ma1 on the device with the bridge MAC address of 0001-0300-0204.

<HUAWEI> system-view
[HUAWEI] cfm enable
[HUAWEI] cfm md md1
[HUAWEI-md-md1] ma ma1
[HUAWEI-md-md1-ma-ma1] remote-mep mep-id 10 mac 0001-0300-0204

remote-mep ccm-receive enable

Function

The remote-mep ccm-receive enable command enables a MEP on the device to receive CCMs from an RMEP in the same MA or MAC tunnel.

The undo remote-mep ccm-receive enable command cancels the configuration.

By default, a MEP does not receive CCMs from an RMEP.

Format

remote-mep ccm-receive [ mep-id mep-id ] enable

undo remote-mep ccm-receive [ mep-id mep-id ] enable

Parameters

Parameter Description Value
mep-id mep-id Enables a MEP to receive CCMs from the specified RMEP. If this parameter is not specified, a MEP can receive CCMs from all RMEPs in the same MA. The value is an integer that ranges from 1 to 8191.

Views

MA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The remote-mep ccm-receive enable command enables a MEP on the device to receive CCMs from an RMEP in the same MA or MAC tunnel.

Precautions

The interval at which CCMs are sent or detected cannot be changed on the device in an MA if one of the following operations is performed:

  • The device is enabled to send CCMs using the mep ccm-send enable command.

  • The device is enabled to receive CCMs using the remote-mep ccm-receive enable command.

The undo mep ccm-send enable or undo remote mep ccm-receive enable command must be run before the interval is reconfigured.

Prerequisites

A MEP and an RMEP have been created in the MA.

Example

# Enable the device to receive CCMs from RMEP 10 in ma1.

<HUAWEI> system-view
[HUAWEI] cfm enable
[HUAWEI] cfm md md1
[HUAWEI-md-md1] ma ma1
[HUAWEI-md-md1-ma-ma1] remote-mep mep-id 10 mac 0001-0300-0204
[HUAWEI-md-md1-ma-ma1] remote-mep ccm-receive mep-id 10 enable

senderid-tlv-type

Function

The senderid-tlv-type command sets the type of the Sender ID TLV in CFM packets.

The undo senderid-tlv-type command restores the default type of the Sender ID TLV in CFM packets.

By default, the type of the Sender ID TLV is defer.

Format

senderid-tlv-type { none | chassis | manage | chassis-manage | defer }

undo senderid-tlv-type

Parameters

Parameter Description Value
none Indicates that a sent CFM packet does not contain the Sender ID TLV. -
chassis Indicates that a sent CFM packet contains the chassis ID. -
manage Indicates that a sent CFM packet contains the management address. -
chassis-manage Indicates that a sent CFM packet contains the chassis ID and management address. -
defer Indicates that the content of the Sender ID TLV is determined by the MD object. -

Views

MD view, default MD view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

You can use the senderid-tlv-type command to configure the type of the Sender ID TLV in CFM packets in the MD view or default MD view.

Example

# Set the type of the Sender ID TLV to manage.

<HUAWEI> system-view
[HUAWEI] cfm enable
[HUAWEI] cfm default md
[HUAWEI-default-md] senderid-tlv-type manage

snmp-agent trap enable feature-name eoam-1ag

Function

The snmp-agent trap enable feature-name eoam-1ag command enables the trap function for the EOAM-1AG module.

The undo snmp-agent trap enable feature-name eoam-1ag command disables the trap function for the EOAM-1AG module.

By default, the trap function is disabled for the EOAM-1AG module.

Format

snmp-agent trap enable feature-name eoam-1ag trap-name trap-name

undo snmp-agent trap enable feature-name eoam-1ag [ trap-name trap-name ]

Parameters

Parameter Description Value
trap-name trap-name
Specifies the name of a trap:
  • hwdot1agcfmexceptionalmacstatus: port exception alarm

  • hwdot1agcfmexceptionalmacstatuscleared: port exception clear alarm

  • hwdot1agcfmloc: connectivity loss alarm

  • hwdot1agcfmloccleared: connectivity loss clear alarm

  • hwdot1agcfmmismerge: alarm on MAID errors

  • hwdot1agcfmmismergecleared: clear alarm on MAID errors

  • hwdot1agcfmrdi: RDI alarm

  • hwdot1agcfmrdicleared: RDI clear alarm

  • hwdot1agcfmunexpectedmac: alarm on MAC errors

  • hwdot1agcfmunexpectedmaccleared: clear alarm on MAC errors

  • hwdot1agcfmunexpectedmeglevel: alarm on level errors

  • hwdot1agcfmunexpectedmeglevelcleared: clear alarm on level errors

  • hwdot1agcfmunexpectedmep: alarm on unexpected MEPs

  • hwdot1agcfmunexpectedmepcleared: clear alarm on unexpected MEPs

  • hwdot1agcfmunexpectedperiod: alarm on frequency errors

  • hwdot1agcfmunexpectedperiodcleared: clear alarm on frequency errors

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

You can specify type-name to enable the traps of one or more events.

Example

# Enable the frequency error clear alarm for the EOAM-1AG module.

<HUAWEI> system-view
[HUAWEI] snmp-agent trap enable feature-name eoam-1ag trap-name hwdot1agcfmunexpectedperiod

trace mac-8021ag

Function

The trace mac-8021ag command enables 802.1ag MAC trace to detect connectivity faults between a MEP and an RMEP or a MIP in an MA.

Format

All views except the MA view:

trace mac-8021ag mep mep-id mep-id md md-name ma ma-name { mac mac-address | remote-mep mep-id mep-id } [ interface interface-type interface-number | -t timeout | ttl ttl ] *

MA view:

trace mac-8021ag mep mep-id mep-id { md md-name ma ma-name { mac mac-address | remote-mep mep-id mep-id } | mac mac-address | remote-mep mep-id mep-id } [ interface interface-type interface-number | -t timeout | ttl ttl ] *

Parameters

Parameter

Description

Value

mep mep-id mep-id Specifies the ID of a MEP. The MEP must have been created using the mep mep-id command. The value is an integer that ranges from 1 to 8191.
md md-name Specifies the name of an MD. The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?).
NOTE:

When double quotation marks are used around the string, spaces are allowed in the string.

ma ma-name Specifies the name of an MA. The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?). The total length of the names of the MA and MD must be within 44 characters.
NOTE:

When double quotation marks are used around the string, spaces are allowed in the string.

mac mac-address
Specifies the MAC address of the destination node. The destination node can be a MEP or MIP. mac-address specifies the MP's MAC address. The value is in H-H-H format. An H is a hexadecimal number of 1 to 4 digits. The value cannot be a broadcast or multicast MAC address.
NOTE:
An MP's MAC address can be a bridge MAC address or the MAC address of the interface where the MP is configured. The MAC address depends on the configured MP address model:
  • If the shared MP address model is configured, an MP uses a bridge MAC address as its own MAC address.

  • If the independent MP address model is configured, an MP uses the MAC address of the interface where the MP is configured.

-
remote-mep mep-id mep-id Specifies the ID of an RMEP. The value is an integer that ranges from 1 to 8191.
interface-type interface-number Specifies the outbound interface on the local device for sending LTMs.
  • interface-type specifies the interface type.

  • interface-number specifies the interface number.

This parameter must be specified if the forwarding entry of the destination node does not exist in the MAC address table or there is more than one interface in a VLAN.
-
-t timeout Specifies the timeout interval for waiting for an LTR messages. The value is an integer that ranges from 1 to 65535, in milliseconds. The default value is 2000 ms.
ttl ttl Specifies the maximum hop of LTMs. The value is an integer that ranges from 1 to 255. The default value is 64.

Views

All views

Default Level

0: Visit level

Usage Guidelines

Usage Scenario

Similar to traceroute (tracert for short), 802.1ag MAC trace tests the path between the local device and the destination device or locates failure points by sending test packets and receiving reply packets.

A device is usually configured with multiple MDs and MAs. To locate failure points or detect connectivity of a link between one MEP to another MEP or a MIP in the same MA, perform either of the following operations:
  • Run the trace mac-8021ag command in the MA view.
    • Run the trace mac-8021ag command without md md-name and ma ma-name specified to test the actual forwarding patch and locate failure points in a specified MA.

    • Run the md md-name ma ma-name command with md md-name and ma ma-name specified to test the actual forwarding patch and locate failure points based on the configured MA and MD.

  • Run the trace mac-8021ag md md-name ma ma-name command in all views except the MA view to test the actual forwarding patch and locate failure points based on the configured MA and MD.

Prerequisites

  • The MA has been associated with a VLAN.

  • The MEP has been configured in the MA.

Precautions

A MEP initiates an 802.1ag MAC trace test to monitor reachability of the MEP's or MIP's destination address. These nodes have the same level and can be located in the same MA or different MAs.

If the outbound interface is specified, it cannot be configured with an inward-facing MEP.

Example

# Trace the MEP with the MAC address of aa99-6600-5600 from the MEP in the MA macustomer, with the TTL of 64.

<HUAWEI> system-view
[HUAWEI] cfm enable
[HUAWEI] cfm md mdcustomer
[HUAWEI-md-mdcustomer] ma macustomer
[HUAWEI-md-mdcustomer-ma-macustomer] trace mac-8021ag mep mep-id 1 mac aa99-6600-5600 ttl 64
Tracing the route to aa99-6600-5600 over a maximum of 64 hops:
-----------------------------------------------------------------------------
 Hops  Ingress Mac        Ingress Port              Ingress Action      Relay Action
       Egress Mac         Egress Port               Egress Action       Ismep
------------------------------------------------------------------------------
1       2155-2201-3302     Vlanif1/0/1     IngOK               RlyFDB       
        0018-82e2-36db     Vlanif1/0/1     EgrOK               NoMep
Table 12-74  Description of the trace mac-8021ag command output

Item

Description

Hops

Number of hops.

Ingress Mac

MAC address of the inbound interface for receiving LTMs on the intermediate node or destination node.

Ingress Port

Inbound interface for receiving LTMs on the intermediate node or destination node.

Ingress Action

Action taken by the inbound interface to process LTMs:
  • IngOK: The inbound interface forwards LTMs successfully.

  • If this field is empty, the inbound interface fails to forward LTMs.

Reply Action

Action taken by the device to process LTMs:
  • RlyFDB: The device forwards LTMs to the next hop device.

  • RlyHit: The device forwards LTMs to the destination device.

Egress Mac

MAC address of the outbound interface for forwarding LTMs on the intermediate node.

Egress Port

Outbound interface for forwarding LTMs on the intermediate node.

Egress Action

Action taken by the outbound interface to process LTMs:
  • EgrOK: The outbound interface forwards LTMs successfully.

  • If this field is empty, the outbound interface does not or fails to forward LTMs.

Ismep

Whether the mode of the outbound interface is a MEP:
  • NoMep

  • IsMep

vlan (default MD view)

Function

The vlan command creates a VLAN in the default MD.

The undo vlan command deletes a VLAN from the default MD.

Format

vlan { vlan-id1 [ to vlan-id2 ] }&<1-10>

undo vlan { vlan-id1 [ to vlan-id2 ] }&<1-10>

Parameters

Parameter Description Value
vlan-id1 Specifies the start VLAN ID. The value is an integer that ranges from 1 to 4094.
vlan-id2 Specifies the end VLAN ID. The value is an integer that ranges from 1 to 4094. The value of vlan-id2 must be greater than the value of vlan-id1.

Views

Default MD view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After you run the vlan command in the default MD view, all the interfaces in the specified VLAN can generate MIPs based on the configured MIP creation rule in the default MD.

Precautions

If the vlan command is run multiple times, all configurations take effect.

NOTE:

The specified VLAN cannot be associated with any MA.

Example

# Associate VLAN 100 to VLAN 200 with the default MD.

<HUAWEI> system-view
[HUAWEI] cfm default md
[HUAWEI-default-md] vlan 100 to 200
Related Topics
Translation
Download
Updated: 2019-04-09

Document ID: EDOC1100065659

Views: 113866

Downloads: 83

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next