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

Command Reference

CloudEngine 8800, 7800, 6800, and 5800 V200R002C50

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

NOTE:

CE6880EI does not support this feature.

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. The default value is 0 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 peer 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 3.5 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 for receiving CCMs from an RMEP is the time reserved for configuring the RMEP.

At the RMEP activation time, if the local MEP does not receive any CCMs in 3.5 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 activation time for receiving CCMs from an RMEP, the local MEP receives CCMs from the RMEP immediately after the local device is enabled to receive CCMs from the RMEP.

NOTE:

The 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 anti-jitter time during alarm restoration.

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

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

Format

alarm finish time time

undo alarm finish time

Parameters

Parameter Description Value
time time Specifies the anti-jitter time during alarm restoration. 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. The default value is 10000 ms.

Views

MA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To suppress alarm flapping, run the alarm finish time command to set the anti-jitter time during alarm restoration. 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.

Precautions

This prevents the NMS or system from being affected by frequently reported alarms. 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 interval is not smaller than the anti-jitter time.

Example

# Set the anti-jitter time during alarm restoration 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 anti-jitter time during alarm generation.

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

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

Format

alarm occur time time

undo alarm occur time

Parameters

Parameter Description Value
time time Specifies the anti-jitter time during alarm generation. 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. The default value is 2500 ms.

Views

MA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To suppress alarm flapping, run the alarm occur time command to set the anti-jitter time during alarm generation. This prevents the NMS or system from being affected by frequently reported alarms. 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.

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 interval is not smaller than the anti-jitter time.

Example

# Set the anti-jitter time during alarm generation 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 unexpected-mep detect-action enable

Function

The alarm unexpected-mep detect-action enable command enables hwDot1agCfmUnexpectedMEP alarm detection.

The undo alarm unexpected-mep detect-action enable command disables hwDot1agCfmUnexpectedMEP alarm detection.

By default, hwDot1agCfmUnexpectedMEP alarm detection is disabled.

Format

alarm unexpected-mep detect-action enable

undo alarm unexpected-mep detect-action enable

Parameters

None

Views

MA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To prevent hwDot1agCfmUnexpectedMEP alarms from being incorrectly reported, a device does not detect or report the hwDot1agCfmUnexpectedMEP alarms by default. To enable hwDot1agCfmUnexpectedMEP alarm detection, run the alarm unexpected-mep detect-action enable command. Enabling hwDot1agCfmUnexpectedMEP alarm detection is recommended in point-to-multipoint networking scenarios.

Precautions

If a device has reported hwDot1agCfmUnexpectedMEP alarms, disabling hwDot1agCfmUnexpectedMEP alarm detection triggers the device to report the corresponding clear alarms.

Example

# Enable hwDot1agCfmUnexpectedMEP alarm detection.

<HUAWEI> system-view
[~HUAWEI] cfm enable
[*HUAWEI] cfm md md1
[*HUAWEI-md-md1] ma ma1
[*HUAWEI-md-md1-ma-ma1] alarm unexpected-mep detect-action enable

ccm-interval

Function

The ccm-interval command sets the interval at which a MEP sends or detects 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 50, 100, 1000, or 10000. The default value is 1000 ms.

NOTE:

The CE5855EI, CE5850HI, and CE5810EI do not support 50-ms interval.

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.

There is the limitation on the interval at which a MEP sends or detects CCMs:

  • If the interval is 50 ms, a maximum of 10 MEPs on the switch can be enabled to send CCMs and a maximum of two interfaces on each MEP can send CCMs.

  • If the interval is 100 ms, a maximum of 100 MEPs on the switch excluding the CE5855EI, CE5850HI, and CE5810EI can be enabled to send CCMs and a maximum of two interfaces on each MEP can send CCMs.

  • If the interval is 100 ms, a maximum of 50 MEPs on the CE5855EI, CE5850HI, and CE5810EI can be enabled to send CCMs and a maximum of two interfaces on each MEP can send CCMs.

  • If the interval is 1000 ms or 10000 ms, a maximum of 1000 MEPs on the switch excluding the CE5855EI, CE5850HI, and CE5810EI can be enabled to send CCMs and a maximum of two interfaces on each MEP can send CCMs.

  • If the interval is 1000 ms or 10000 ms, a maximum of 500 MEPs on the CE5855EI, CE5850HI, and CE5810EI can be enabled to send CCMs and a maximum of two interfaces on each MEP can send CCMs.

In the SVF, the interval for sending or detecting CCMs depends on the spine node. If all MEPs are configured on the leaf node, the interval for sending or detecting CCMs depends on the leaf node.

The recommended interval for sending or detecting CCMs is at least 1000 ms. If the interval is smaller than 1000 ms, when the device load is heavy or the CPU usage is high, network flapping may occur.

Example

# Set the interval for sending or detecting CCMs within the MA ma1 to 100 ms. The device in the MA 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 100

# Set the interval for sending or detecting CCMs within the MA ma1 to 100 ms. The device in the MA 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 100

cfm default md

Function

The cfm default md command creates the default MD and displays the default MD view. If default MD has been created, this command displays the default MD view.

The undo cfm default md command deletes the default MD.

By default, the default MD is not created on device. The default MD is created at level 7 by default. Level 7 is the highest level.

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.

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, the 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. Deleting the default MD will delete all information about the MIPs associated with the default MD.

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 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 the MD, MA, MEP, MIP, and RMEP.

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

All information about the MD will be deleted if CFM is disabled.

Example

# Enable CFM globally.

<HUAWEI> system-view
[~HUAWEI] cfm enable

cfm md

Function

The cfm md command creates an MD and displays the MD view. If an MD exists, this command displays the MD view.

The undo cfm md command deletes an MD.

By default, MD is not created on the device. An MD is created at level 0 by default. Level 0 is the lowest level.

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, hyphen (-), and question mark (?). Names of different MDs on a device must be unique. 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, hyphen (-), and question mark (?). When double quotation marks are used around the string, spaces are allowed in the string.

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, hyphen (-), and question mark (?). When double quotation marks are used around the string, spaces are allowed in the string.

string string-md-format-name

Specifies an ASCII MD name.

The value is a string of 1 to 43 case-sensitive characters without spaces, hyphen (-), and question mark (?). When double quotation marks are used around the string, spaces are allowed in the string.

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

NOTE:

802.1ag packets in low-level MDs cannot pass through high-level MDs, whereas 802.1ag packets in high-level MDs can pass through low-level MDs. 802.1ag packets with the same level of the MD cannot traverse the MDs.

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 MD that already exists but cannot change the name format and level of the MD that already exists. To change the name format and level of the MD that already exists, delete the MD and then use the cfm md command to create a new MD.

A maximum of 64 MDs can be created on a device.

When an MD is deleted, a device automatically deletes all the configurations of the MA, MEP, MIP, and RMEP within the MD.

The MA, MEP, and RMEP must be created within an MD. Therefore, 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, MIP is not created on the device.

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, 10GE interface view, 25GE 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. If a MIP receives a packet carrying a level higher or lower than its own, the MIP does not process the packet and loops it along the reverse path. If a MIP receives a packet carrying a level equal to its own, it processes the packet.

If a MIP is created and an MP performs loopback or linktrace, 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 difficult to manage. The configuration may be incorrect.

  • 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] cfm enable
[*HUAWEI] interface 10ge 1/0/1
[*HUAWEI-10GE1/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 devices 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 data communications devices, to interwork with devices running different versions, configure local to specify the interface name type in Huawei proprietary format.

Example

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

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

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 md-name must already exist.

ma ma-name

Specifies the name of an MA.

The ma-name must already exist.

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, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When detecting a fault, the CFM module notifies the OAM management module of the fault. The OAM management module searches the CFM 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.

Prerequisites

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

Example

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

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

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, Ethernet CFM is not associated with an interface.

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 md-name must already exist.

ma ma-name

Specifies the name of an MA.

The ma-name must already exist.

remote-mep mep-id mep-id

Specifies ID of an RMEP.

The value is an integer ranging from 1 to 8191.

Views

GE interface view, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After the cfm trigger if-down command is run, when a MEP in a specified MA detects a connectivity fault on the network between the MEP and the specified RMEP, the OAM management module shuts down and then turns on the interface after 7s.

If CFM detects a link fault in active and standby links, the CFM module instructs the OAM management module to run the shutdown command and 7 seconds later run the undo shutdown command automatically on the interface associated with the CFM module to allow services to be restored.

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.

Prerequisites

To associate 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.

Example

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

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

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

Parameters

Parameter Description Value
vlan 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 more than once, all configurations take effect.

Example

# Configure the device to clear the 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 VLAN list 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 15-37  Description of the display cfm 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

ID of the VLAN associated with the default MD.

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 information about MAs 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 md-name must already exist.

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 MD specified by md-name is displayed.

The ma-name must already exist.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

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            : --
 MEP Number         : 1
 RMEP Number        : 1
Table 15-38  Description of the display cfm ma command output

Item

Description

MD Name

Name of the MD.

MD Name Format

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

Level

MD level. The value ranges from 0 to 7.

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

MA Name

Name of the MA.

MA Name Format

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

Interval

Interval at which CCMs are sent in an MA.

Priority

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

VLAN ID

ID of the VLAN associated with an MA.

MEP Number

Number of MEPs in an MA.

RMEP Number

Number of RMEPs in an MA.

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 name of an MD must already exist.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can use the display cfm md command to view information about MDs, 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
Table 15-39  Description of the display cfm md command output

Item

Description

MD Name

Name of the MD.

MD Name Format

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

Level

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

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

MA list

Information about MAs in the MD.

MA Name

Name of the MA.

MA Name Format

Format of the MA name:
  • icc-based

  • string

Interval

Interval at which CCMs are sent.

VLAN ID

ID of the VLAN associated with an MA.

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 md-name must already exist.
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 in a specified MD is displayed. The ma-name must already exist.
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

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 within 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            : --
 Interface Name     : 10GE1/0/1
 CCM Send           : enabled
 Direction          : outward
 MAC Address        : 0002-0003-0161
 Alarm Status       : LOC
 Alarm RDI          : enabled
Table 15-40  Description of the display cfm mep command output

Item

Description

MD Name

Name of the MD.

MD Name Format

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

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.

MEP ID

ID of the MEP.

VLAN ID

ID of the VLAN associated with an MA.

Interface Name

Interface where a MEP is configured.

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.

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.

MAC Address

MAC address of the MEP.

Alarm Status

Type of the alarm:
  • unexpectedMEGLevel: The MEP receives CCMs with incorrect level.

  • unexpectedMEP: The MEP receives CCMs with 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 RDI.

Alarm RDI

Whether the remote defect indication (RDI) alarm function is enabled.

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 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 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                 Config Type
-------------------------------------------------------------------
10GE1/0/1                     0     0018-82e2-377f      Manual
Table 15-41  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.

MAC

MAC address of the MIP.

Config Type

MIP generation mode.

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 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. -
raw Indicates the raw packet encapsulation. -
tagged Indicates the tagged packet encapsulation. -

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 MEP 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 packets cannot be sent correctly.

Example

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

<HUAWEI> display cfm mp-info interface 10ge 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            : --
 Interface Name     : 10GE1/0/1
 CCM Send           : enabled
 Direction          : outward
 MAC Address        : 0002-0003-0161
 Alarm Status       : LOC
 Alarm RDI          : enabled
Table 15-42  Description of the display cfm mp-info command output

Item

Description

MD Name

Name of the MD.

MD Name Format

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

Level

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

MA Name

Name of the MA.

MEP ID

ID of the MEP.

VLAN ID

ID of the VLAN associated with an MA.

Interface Name

Name of the interface.

CCM Send

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

Direction

Type of the MEP:
  • inward
  • outward

MAC Address

MAC address of the MEP or MIP.

Alarm Status

Type of the alarm:
  • unexpectedMEGLevel: The MEP receives CCMs with incorrect level.

  • unexpectedMEP: The MEP receives CCMs with 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 RDI.

Alarm RDI

Whether the remote defect indication (RDI) alarm function is enabled.

display cfm remote-mep

Function

The display cfm remote-mep command displays information about RMEPs in a specified MD and MA, 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

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 RMEPs 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 md-name must already exist.
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 ma-name must already exist.
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

After an RMEP is configured or CFM cannot work properly, use the display cfm remote-mep command to check the RMEP configuration.

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            : --
 MAC                : --
 CCM Receive        : enabled
 Trigger-If-Down    : enabled
 Trigger-If-Link    : disabled
 CFM Status         : down
 Alarm Status       : LOC
Table 15-43  Description of the display cfm remote-mep command output

Item

Description

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.

MAC

MAC address of the RMEP.

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.

Trigger-If-Down

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

  • enabled: 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.

For details, see cfm trigger if-down.

Trigger-If-Link

Whether the CFM associated with the interface's Down function is configured on the interface:
  • disabled: indicates that the CFM associated with the interface's Down function is disabled on the interface for the RMEP.

  • enabled: indicates that the CFM associated with the interface's Down 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 OAM module disables the interface's Down.

For details, see cfm trigger if-link-down.

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.

  • disabled: 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.

  • 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.

display cfm statistics lblt

Function

The display cfm statistics lblt command displays 802.1ag packet statistics.

Format

display cfm statistics lblt

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

When the test initiated using the ping mac-8021ag or trace mac-8021ag command fails, run the display cfm statistics lblt command to check statistics about the 802.1ag packets sent, received, forwarded, and replied by the local device. The command output helps determine whether the test failure is caused by a device or link fault.

Example

# Display 802.1ag packet statistics.

<HUAWEI> display cfm statistics lblt
PTU LBM send:  5
PTU LBR recv:  5
PTU LTM send:  0
PTU LTR recv:  0
RU  LBM recv:  0
RU  LBR send:  0
RU  LTM recv:  0
RU  LTR send:  0
RU  LTM fwd :  0
PTU LDM recv:  5
Table 15-44  Description of the display cfm statistics lblt command output
Item Description
PTU LBM send Number of LBM packets sent by the initiate end
PTU LBR recv Number of LBR packets received by the initiate end
PTU LTM send Number of LTM packets sent by the initiate end
PTU LTR recv Number of LTR packets received by the initiate end
RU LBM recv Number of LBM packets received by the respond end
RU LBR send Number of LBR packets sent by the respond end
RU LTM recv Number of LTM packets received by the respond end
RU LTR send Number of LTR packets sent by the respond end
RU LTM fwd Number of LTM packets forwarded by the respond end
PTU LDM recv Number of LDM packets received by the initiate end

display oam global configuration

Function

The display oam global configuration command displays the global configuration of Ethernet OAM, including:

  • Whether CFM is enabled globally

  • Whether GMAC ping is enabled

  • Whether GMAC trace is enabled

  • Whether EFM is enabled globally

  • CFM version information on the device

  • MP address model

Format

display oam global configuration

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can use the display oam global configuration command on devices running different 802.1ag versions to check whether Ethernet OAM is globally enabled.

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 15-45  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.

Ping MAC Status

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

  • enabled: GMAC ping is enabled.

Trace MAC Status

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

  • enabled: GMAC trace is enabled.

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.

EFM Status

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

  • enabled: EFM is enabled globally.

CFM Protocol

Ethernet CFM protocol number.

CFM MP-address-model

MP address model:
  • bridge: shared MP address model

  • individual: independent MP address model

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 network management standard widely used on the TCP/IP network. It uses a central computer (a network management station) that runs network management software to manage network elements. 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 a network element abnormality.

  • 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. See snmp-agent.

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 : 14                                                                                                                    
------------------------------------------------------------------------------                                                      
Trap name                      Default switch status   Current switch status                                                        
hwDot1agCfmLOC                 off                     off                                                                          
hwDot1agCfmLOCCleared          off                     off                                                                          
hwDot1agCfmMismerge            off                     off                                                                          
hwDot1agCfmMismergeCleared     off                     off                                                                          
hwDot1agCfmRDI                 off                     off                                                                          
hwDot1agCfmRDICleared          off                     off                                                                          
hwDot1agCfmUnexpectedMAC       off                     off                                                                          
hwDot1agCfmUnexpectedMACCleared                                                                                                     
                               off                     off                                                                          
hwDot1agCfmUnexpectedMEGLevel  off                     off                                                                          
hwDot1agCfmUnexpectedMEGLevelCleared                                                                                                
                               off                     off                                                                          
hwDot1agCfmUnexpectedMEP       off                     off                                                                          
hwDot1agCfmUnexpectedMEPCleared                                                                                                     
                               off                     off                                                                          
hwDot1agCfmUnexpectedPeriod    off                     off                                                                          
hwDot1agCfmUnexpectedPeriodCleared                                                                                                  
                               off                     off                     
Table 15-46  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 a trap on the Ethernet OAM-1AG module:

  • hwdot1agcfmloc: connectivity loss alarm

  • hwdot1agcfmloccleared: connectivity loss clear alarm

  • hwdot1agcfmmismerge: MD or MA name inconsistency alarm

  • hwdot1agcfmmismergecleared: MD or MA name inconsistency clear alarm

  • hwdot1agcfmrdi: RDI alarm occurrence

  • hwdot1agcfmrdicleared: RDI clear alarm

  • hwdot1agcfmunexpectedmac: MAC error alarm

  • hwdot1agcfmunexpectedmaccleared: MAC error clear alarm

  • hwdot1agcfmunexpectedmeglevel: level error alarm

  • hwdot1agcfmunexpectedmeglevelcleared: level error clear alarm

  • hwdot1agcfmunexpectedmep: unexpected MEP alarm

  • hwdot1agcfmunexpectedmepcleared: unexpected MEP clear alarm

  • hwdot1agcfmunexpectedperiod: period error alarm

  • hwdot1agcfmunexpectedperiodcleared: period error clear alarm

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. If the MA already exists, this command displays the MA view.

The undo ma command deletes an MA.

By default, MA is not created on the device.

Format

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

undo ma [ ma-name ]

Parameters

Parameter

Description

Value

ma-name

Specifies the name of an MA. Names of MAs in an MD are unique.

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

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 name is a string of 1 to 13 case-sensitive characters without spaces, hyphen (-), or question mark (?).

string ma-format-name

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

The name is a string of 1 to 43 case-sensitive characters without spaces, hyphen (-), or question mark (?).

Views

MD view

Default Level

2: Configuration level

Usage Guidelines

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.

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 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 cancel the association between the MA and the VLAN, and then use the map command to associate the MA with another 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 alarm disable

Function

The mep alarm disable command disables alarm reporting for a MEP.

The undo mep alarm disable command enables alarm reporting for a MEP.

By default, alarm reporting is enabled for MEPs.

Format

mep mep-id mep-id alarm rdi disable

undo mep mep-id mep-id alarm rdi 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 reporting of remote defect indication (RDI) 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 alarms. To reduce such alarms, you can disable alarm reporting for some MEPs. After reporting of RDI or AIS alarms is disabled for a MEP, AIS, or RDI alarms of this MEP are no longer sent to the NMS. This reduces the loads of the NMS and local device.

Prerequisites

MEP has been created using the mep mep-id command.

Example

# Disable RDI alarm reporting for MEP 1 in the MA ma1 of the MD md1.
<HUAWEI> system-view
[~HUAWEI] cfm enable
[*HUAWEI] cfm md md1
[*HUAWEI-md-md1] ma ma1
[*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

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

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

mep mep-id

Function

The mep mep-id command creates a MEP.

The undo mep mep-id command deletes a MEP.

By default, MEP is not created on the device.

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 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 based on the destination where 802.1ag packets are sent.

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

  • The inward-facing MEP and the outward-facing MEP 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 10GE1/0/1 in MA ma1 of MD md1 and set the MEP ID to 15.
<HUAWEI> system-view
[~HUAWEI] vlan 100
[*HUAWEI-vlan100] port 10ge 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 10ge 1/0/1 inward
Related Topics

mip create-type (MA view)

Function

The mip create-type command configures an MIP creation rule in an MA.

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

By default, the defer MIP creation rule is used in an MA. MIPs in an MA are created using the rule configured in an MD.

Format

mip create-type { default | explicit | none | defer }

undo mip create-type [ default | explicit | none | defer ]

Parameters

Parameter Description Value
default Indicates the default MIP creation rule in an MA. A MIP can be created on an interface in an MA if no MEPs with higher or lower levels are configured on the interface. Using the default MIP creation rule, an interface can create a MIP even though no MEP is configured on this interface. -
explicit Indicates the explicit MIP creation rule in an MA. MIPs can be created on an interface with a lower level MEP but without a higher level MEP or a lower level MIP. Using the explicit MIP creation rule, an interface can create MIPs only after a MEP of a lower level is configured on the interface. -
none Disables an interface from automatically creating MIPs. -
defer

Indicates the defer MIP creation rule in an MA. MIPs in an MA are created using the rule configured in an MD.

-

Views

MA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

MIPs are located on a link between two MEPs within an MD, facilitating management. The more MIPs there are, the easier it is to manage and control the network. Carriers set up more MIPs for important services than for regular services.

The mip create-type command sets the MIP creation rule in the MA. The created MIPs can respond to Loopback Messages (LBMs) or Linktrace Messages (LTMs) sent by a non-MEP in the same MA. A device uses the configured rule to automatically create MIPs.

After a generation rule is configured in a specific MA, all interfaces in the MA use the rule to create MIPs.

Precautions

Only a device with IEEE Std 802.1ag-2007 enabled supports the mip create-type command in the MA view.

Example

# Configure the none MIP creation rule in an MA named ma1.

<HUAWEI> system-view
[~HUAWEI] cfm enable
[*HUAWEI] cfm md md1 level 1
[*HUAWEI-md-md1] ma ma1
[*HUAWEI-md-md1-ma-ma1] mip create-type none

mip create-type (MD view)

Function

The mip create-type command sets the MIP generation rule in the MD or default MD.

The undo mip create-type command restores the default MIP generation rule.

By default, the MIP generation rule in an MD or default MD is none, indicating that no MIPs are generated.

Format

mip create-type { default | explicit | none }

undo mip create-type

Parameters

Parameter Description Value
default Indicates that MIPs can be generated on the interface without a MEP of a higher level or a MIP of a lower level. Under the default MIP generation rule, MIPs can be generated when no MEPs are configured on an interface. -
explicit Indicates that MIPs can be generated on the interface with a MEP of a lower level but without a MEP of a higher level or a MIP of a lower level. Under the explicit MIP generation rule, MIPs can be generated only after a MEP of a lower level is configured on an interface. -
none Indicates that MIPs are not generated automatically. -

Views

MD view or default MD view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

MIPs are located on a link between two MEPs within an MD, facilitating management. The more MIPs there are, the easier it is to manage and control the network. Carriers set up more MIPs for important services than for regular services.

The mip create-type command can be used to set the MIP generation rule in an MD or default MD. The created MIPs can respond to LBMs or LTMs sent by a non-MEP in the same MA. A device uses the configured rule to automatically create MIPs.

After a creation rule is configured in a specific MD or a default MD, all interfaces in the MD use the rule to create MIPs.

NOTE:

The mip create-type command can be used only on Layer 2 interfaces to which a specific MD or a default MD belongs.

Example

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

<HUAWEI> system-view
[~HUAWEI] cfm enable
[*HUAWEI] cfm md customer level 1
[*HUAWEI-md-customer] mip create-type none
# Set the MIP generation rule to default in the default MD.
<HUAWEI> system-view
[~HUAWEI] cfm enable
[*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, bidirectional transmission of fault messages between Ethernet CFM and BFD is not configured.

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 md-name

Specifies the name of an MD.

The md-name must already exist.

ma ma-name

Specifies the name of an MA.

The ma-name must already exist.

bfd-session bfd-session-id

Specifies the ID of a BFD session.

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

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 BFD based on the association. When detecting a fault, BFD reports the fault to the MA based on the association.

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, bidirectional transmission of fault messages between Ethernet CFMs at both sides is not configured.

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 md-name1 Specifies the name of an MD. The value is a string of 1 to 43 case-sensitive characters without spaces, hyphen (-), and question mark (?).
NOTE:

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

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

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

ma ma-name1 Specifies the name of an MA. The value is a string of 1 to 43 case-sensitive characters without spaces, hyphen (-), and question mark (?). 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 ma-name2 Specifies the name of an MA. The value is a string of 1 to 43 case-sensitive characters without spaces, hyphen (-), and question mark (?). 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, bidirectional transmission of fault messages between EFM and Ethernet CFM is disabled.

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 md-name Specifies the name of an MD. The md-name must already exist.
ma ma-name Specifies the name of an MA. The ma-name must already exist.
interface interface-type interface-number Specifies the type and number of an interface.
  • interface-type specifies the interface type.

  • interface-number specifies the interface number.

The interface must have been enabled with EFM.
-

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:

Choose the preceding commands in different scenarios according to Table 15-47.

Table 15-47  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

Choose 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 10GE1/0/1.

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

oam-bind cfm md ma vrrp vrid

Function

The oam-bind cfm md ma vrrp vrid command configures Ethernet CFM and VRRP to report faults to each other.

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

By default, bidirectional association between CFM and VRRP is disabled.

Format

oam-bind cfm md md-name ma ma-name vrrp vrid vrid interface interface-type interface-number

undo oam-bind cfm md md-name ma ma-name vrrp vrid vrid interface interface-type interface-number

Parameters

Parameter Description Value
md md-name Specifies the name of an MD. The md-name must already exist.
ma ma-name Specifies the name of an MA. The ma-name must already exist.
vrid vrid Specifies the ID of a VRRP backup group. The value is an integer ranging from 1 to 255.
interface interface-type interface-number Specifies the type and number of an interface.
  • 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 improve network reliability, associate CFM with VRRP. With this association, when CFM or VRRP detects a link fault, it instructs the MGR module to notify the other mechanism of the fault.

The association between CFM and VRRP can be bidirectional.

  • If the VRRP module detects a link fault, it instructs the CFM module to notify the remote end of the fault.
  • If the CFM module detects a link fault, it instructs the VRRP module to perform a link switchover.
The following commands are used when CFM is associated with VRRP:

Table 15-48 describes CFM and VRRP association configurations.

Table 15-48  CFM and VRRP association configurations
Scenario Configuration Solution 1 Configuration Solution 2

Bidirectional association between CFM and VRRP

Run the oam-bind cfm md md-name ma ma-name vrrp vrid command to configure the bidirectional association between CFM and VRRP.

NOTE:
If you have run the oam-bind cfm md md-name ma ma-name vrrp vrid command, the configuration file contains the following commands:
Perform the following operations:
  • Run the oam-bind ingress vrrp vrid egress cfm md md-name ma ma-name command to enable VRRP to instruct the MGR module to notify CFM of a fault.

  • Run the oam-bind ingress cfm md md-name ma ma-name egress vrrp vrid command to enable CFM to instruct the MGR module to notify VRRP of a fault.

Unidirectional association between CFM and VRRP

Perform either of the following operations:
  • Run the oam-bind ingress vrrp vrid egress cfm md md-name ma ma-name command to enable VRRP to instruct the MGR module to notify CFM of a fault.

  • Run the oam-bind ingress cfm md md-name ma ma-name egress vrrp vrid command to enable CFM to instruct the MGR module to notify VRRP of a fault.

None

Prerequisites

CFM and VRRP have been configured.

Example

# Configure the bidirectional association between CFM and VRRP.

<HUAWEI> system-view
[~HUAWEI] oam-mgr
[*HUAWEI-oam-mgr] oam-bind cfm md mdcustomer ma customer vrrp vrid 1 interface 10ge 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 does not send fault messages 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 md-name Specifies the name of an MD. The md-name must already exist.
ma ma-name Specifies the name of an MA. The ma-name must already exist.
bfd-session bfd-session-id Specifies the ID of a BFD session. The value is an integer that ranges from 1 to 16384.

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 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 does not send fault messages 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 md-name Specifies the name of an MD. The md-name must already exist.
ma ma-name Specifies the name of an MA. The ma-name must already exist.
bfd-session bfd-session-id Specifies the ID of a BFD session. The value is an integer that ranges from 1 to 16384.

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 BFD based on the association.

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 does not send fault messages 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 md-name1 Specifies the name of an MD. The md-name1 must already exist.
md md-name2 Specifies the name of an MD. The md-name2 must already exist.
ma ma-name1 Specifies the name of an MA. The ma-name1 must already exist.
ma ma-name2 Specifies the name of an MA. The ma-name2 must already exist.

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 MA based on the association.

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.

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

By default, Ethernet CFM does not send fault messages to EFM.

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 md-name Specifies the name of an MD. The md-name must already exist.
ma ma-name Specifies the name of an MA. The ma-name must already exist.
interface interface-type interface-number Specifies the type and number of an interface.
  • interface-type specifies the interface type.

  • interface-number specifies the interface number.

The interface must have been enabled with EFM.
-

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:

Choose the preceding commands in different scenarios according to Table 15-49.

Table 15-49  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

Choose 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 10GE1/0/1.

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

oam-bind ingress cfm md ma egress vrrp vrid

Function

The oam-bind ingress cfm md ma egress vrrp vrid command configures Ethernet CFM to report faults to VRRP.

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

By default, Ethernet CFM does not send fault messages to VRRP.

Format

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

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

Parameters

Parameter Description Value
md md-name Specifies the name of an MD. The md-name must already exist.
ma ma-name Specifies the name of an MA. The ma-name must already exist.
vrid vrid Specifies the ID of a VRRP backup group. The value is an integer ranging from 1 to 255.
interface interface-type interface-number Specifies the type and number of an interface.
  • 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 improve network reliability, associate CFM with VRRP. With this association, when CFM or VRRP detects a link fault, it instructs the MGR module to notify the other mechanism of the fault.

The association between CFM and VRRP can be bidirectional.

  • If the VRRP module detects a link fault, it instructs the CFM module to notify the remote end of the fault.
  • If the CFM module detects a link fault, it instructs the VRRP module to perform a link switchover.
The following commands are used when CFM is associated with VRRP:

Table 15-50 describes CFM and VRRP association configurations.

Table 15-50  CFM and VRRP association configurations
Scenario Configuration Solution 1 Configuration Solution 2

Bidirectional association between CFM and VRRP

Run the oam-bind cfm md md-name ma ma-name vrrp vrid command to configure the bidirectional association between CFM and VRRP.

NOTE:
If you have run the oam-bind cfm md md-name ma ma-name vrrp vrid command, the configuration file contains the following commands:
Perform the following operations:
  • Run the oam-bind ingress vrrp vrid egress cfm md md-name ma ma-name command to enable VRRP to instruct the MGR module to notify CFM of a fault.

  • Run the oam-bind ingress cfm md md-name ma ma-name egress vrrp vrid command to enable CFM to instruct the MGR module to notify VRRP of a fault.

Unidirectional association between CFM and VRRP

Perform either of the following operations:
  • Run the oam-bind ingress vrrp vrid egress cfm md md-name ma ma-name command to enable VRRP to instruct the MGR module to notify CFM of a fault.

  • Run the oam-bind ingress cfm md md-name ma ma-name egress vrrp vrid command to enable CFM to instruct the MGR module to notify VRRP of a fault.

None

Prerequisites

CFM and VRRP have been configured.

Example

# Enable CFM to instruct the MGR module to notify VRRP of a fault.

<HUAWEI> system-view
[~HUAWEI] oam-mgr
[*HUAWEI-oam-mgr] oam-bind ingress cfm md mdcustomer ma macustomer egress vrrp vrid 1 interface 10ge 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 to report faults to Ethernet CFM.

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

By default, EFM does not send fault messages 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 md-name Specifies the name of an MD. The md-name must already exist.
ma ma-name Specifies the name of an MA. The ma-name must already exist.
interface interface-type interface-number Specifies the type and number of Ethernet interface.
  • interface-type specifies the interface type.

  • interface-number specifies the interface number.

The interface must have been enabled with EFM.
-

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:

Choose the preceding commands in different scenarios according to Table 15-51.

Table 15-51  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

Choose 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 10GE1/0/1.

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

oam-bind ingress vrrp vrid egress cfm md ma

Function

The oam-bind ingress vrrp vrid egress cfm md ma command configures VRRP to report faults to Ethernet CFM.

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

By default, VRRP does not send fault messages to Ethernet CFM.

Format

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

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

Parameters

Parameter Description Value
vrid vrid Specifies the ID of a VRRP backup group. The value is an integer ranging from 1 to 255.
interface 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 md-name must already exist.
ma ma-name Specifies the name of an MA. The ma-name must already exist.

Views

OAM management view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To improve network reliability, associate CFM with VRRP. With this association, when CFM or VRRP detects a link fault, it instructs the MGR module to notify the other mechanism of the fault.

The association between CFM and VRRP can be bidirectional.

  • If the VRRP module detects a link fault, it instructs the CFM module to notify the remote end of the fault.
  • If the CFM module detects a link fault, it instructs the VRRP module to perform a link switchover.
The following commands are used when CFM is associated with VRRP:

Table 15-52 describes CFM and VRRP association configurations.

Table 15-52  CFM and VRRP association configurations
Scenario Configuration Solution 1 Configuration Solution 2

Bidirectional association between CFM and VRRP

Run the oam-bind cfm md md-name ma ma-name vrrp vrid command to configure the bidirectional association between CFM and VRRP.

NOTE:
If you have run the oam-bind cfm md md-name ma ma-name vrrp vrid command, the configuration file contains the following commands:
Perform the following operations:
  • Run the oam-bind ingress vrrp vrid egress cfm md md-name ma ma-name command to enable VRRP to instruct the MGR module to notify CFM of a fault.

  • Run the oam-bind ingress cfm md md-name ma ma-name egress vrrp vrid command to enable CFM to instruct the MGR module to notify VRRP of a fault.

Unidirectional association between CFM and VRRP

Perform either of the following operations:
  • Run the oam-bind ingress vrrp vrid egress cfm md md-name ma ma-name command to enable VRRP to instruct the MGR module to notify CFM of a fault.

  • Run the oam-bind ingress cfm md md-name ma ma-name egress vrrp vrid command to enable CFM to instruct the MGR module to notify VRRP of a fault.

None

Prerequisites

CFM and VRRP have been configured.

Example

# Enable VRRP to instruct the MGR module to notify CFM of a fault.

<HUAWEI> system-view
[~HUAWEI] oam-mgr
[*HUAWEI-oam-mgr] oam-bind ingress vrrp vrid 1 interface 10ge 1/0/1 egress cfm md mdcustomer ma macustomer

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

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.

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.

By default, the default 802.1p priority of 802.1ag packets in an MA is 7.

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

The 802.1ag packets with different 802.1p priorities are served differently on networks. You can use this command to change QoS 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 the system to monitor connectivity between a MEP and an RMEP or MIP in an MA. This detection is called 802.1ag MAC ping.

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 | -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 | -s packetsize | -t timeout | -p priority-value ] *

Parameters

Parameter Description Value
mep mep-id mep-id Specifies the ID of a MEP. The MEP has 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 md-name must already exist.
ma ma-name Specifies the name of an MA. The ma-name must already exist.
mac mac-address

Specifies the MAC address of the destination node. The destination node can be a MEP or a MIP. mac-address specifies the MP 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.
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.
-s packetsize Specifies the size of a ping packet. The value is an integer that ranges from 64 to 2000, 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 sends test packets and waits 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 is 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 within different MAs.

Example

# Ping the MIP with a bridge MAC address of 0001-0300-0204 twice on the MEP in ma1. The size of a ping packet is 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 = 5ms
Packets: Sent = 2, Received = 2, Lost = 0 (0% loss)
Minimum = 5ms, Maximum = 9ms, Average = 7ms
Table 15-53  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 returned from the destination device.

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

Packets: Sent = 2, Received = 2, Lost = 0 (0% loss)

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.

By default, RMEP is not created on the device.

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.

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

  • If one MEP exists in an MA, one MEP corresponds to one or more RMEPs when one or more RMEPs are configured.

Example

# Configure RMEP 10 in ma1. The bridge MAC address of the device on which the RMEP is configured is 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 the RMEP in the same MA or MAC tunnel.

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

By default, a local 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 the RMEP in the same MA or MAC tunnel.

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

reset cfm statistics lblt

Function

The reset cfm statistics lblt command clears 802.1ag packet statistics.

Format

reset cfm statistics lblt

Parameters

None

Views

User view

Default Level

2: Configuration level

Usage Guidelines

When the ping mac-8021ag or trace mac-8021ag command is run to test the network connectivity or rectify a network fault, run the display cfm statistics lblt command to check 802.1ag packet statistics. Performing such tests for multiple times generates a lot of test packet statistics, adversely affecting test result analysis. To clear 802.1ag packet statistics, run the reset cfm statistics lblt command. You can also clear useless 802.1ag packet statistics before performing a test, so that the display cfm statistics lblt command displays the packet statistics of only the current test.

Example

# Clear 802.1ag packet statistics.

<HUAWEI> reset cfm statistics lblt

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:
  • hwdot1agcfmloc: connectivity loss alarm

  • hwdot1agcfmloccleared: connectivity loss clear alarm

  • hwdot1agcfmmismerge: MD or MA name inconsistency alarm

  • hwdot1agcfmmismergecleared: MD or MA name inconsistency clear alarm

  • hwdot1agcfmrdi: RDI alarm occurrence

  • hwdot1agcfmrdicleared: RDI clear alarm

  • hwdot1agcfmunexpectedmac: MAC error alarm

  • hwdot1agcfmunexpectedmaccleared: MAC error clear alarm

  • hwdot1agcfmunexpectedmeglevel: level error alarm

  • hwdot1agcfmunexpectedmeglevelcleared: level error clear alarm

  • hwdot1agcfmunexpectedmep: unexpected MEP alarm

  • hwdot1agcfmunexpectedmepcleared: unexpected MEP clear alarm

  • hwdot1agcfmunexpectedperiod: period error alarm

  • hwdot1agcfmunexpectedperiodcleared: period error clear alarm

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

You can specify trap-name to enable the trap function for one or more events of the EOAM-1AG module.

Prerequisites

SNMP has been enabled. See snmp-agent.

Example

# Enable the connectivity loss alarm for the EOAM-1AG module.

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

trace mac-8021ag

Function

The trace mac-8021ag command locates a connectivity fault between the MEP and the RMEP or MIP in the same 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 } [ -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 } [ -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, hyphen (-), and question mark (?).
ma ma-name Specifies the name of an MA. The value is a string of 1 to 43 case-sensitive characters without spaces, hyphen (-), and question mark (?). 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 a MIP. mac-address specifies the MP 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.

-
remote-mep mep-id mep-id Specifies the ID of an RMEP. The value is an integer that ranges from 1 to 8191.
-t timeout Specifies the timeout interval for waiting for an LTR. 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 a 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

When implementing 802.1ag MAC trace, ensure that:

  • 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 a MEP or MIP destination address. These nodes have the same level and they can share an MA or be in different MAs.

Example

# Trace the MEP with the MAC address as aa99-6600-5600 from the MEP in the MA macustomer. The maximum hop is 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     10GE1/0/1                 IngOK               RlyFDB       
       0018-82e2-36db     10GE1/0/1                 EgrOK               No
Table 15-54  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 forward LTMs or the forwarding fails.

Ismep

Whether the mode of the outbound interface is a MEP:
  • No

  • Yes

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.

By default, no VLAN is created in 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 according to the configured MIP creation rule in the default MD.

Precautions

If the vlan command is run more than once, 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 enable
[*HUAWEI] cfm default md
[*HUAWEI-default-md] vlan 100 to 200
Related Topics
Translation
Download
Updated: 2019-03-21

Document ID: EDOC1000166501

Views: 56372

Downloads: 345

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next