The cfm md command creates an MD and displays the MD view. If an MD already exists, the command directly displays the MD view.
The undo cfm md command deletes an MD.
By default, no MD is created.
Parameter | Description | Value |
---|---|---|
md-name |
Specifies the name of an MD. |
The value is a string of 1 to 43 case-sensitive characters. Question marks (?) are not supported. The name of an MD is used to identify an MD. Names of different MDs on a device must be different. |
format |
Specifies the format of a sent packet. |
- |
no-md-name |
Indicates that the MA ID field of a sent packet does not contain an MD name. |
- |
dns string-md-format-name |
Specifies a DNS MD name to be carried in packets. |
The value is a string of 1 to 43 case-sensitive characters. Question marks (?) are not supported. |
mac-address string-md-format-name |
Specifies an MD name carried in packets, in the format of H-H-H:U<0-65535>, for example, 00e0-fc12-7890:1. |
The value is a string of 1 to 43 case-sensitive characters. Question marks (?) are not supported. |
string string-md-format-name |
Specifies an ASCII MD name. |
The value is a string of 1 to 43 case-sensitive characters. Question marks (?) are not supported. |
level level |
Specifies the level of an MD. |
The value is an integer ranging from 0 to 7. A larger value indicates a higher priority. The default value is 0. |
Usage Scenario
CFM is used for link connectivity monitoring, fault diagnosis, and fault locating. A properly planned MD helps a network administrator rapidly locate a fault. All devices managed by an Internet service provider (ISP) are deployed in the same MD.
An MD is an area in which connectivity fault detection is enabled. The boundary of the MD is determined by MEPs configured on interfaces. An MD is identified by an MD name. To help locate faults, MDs are separated into different levels. You can specify the level parameter to set a level for an MD. MDs are divided into levels 0 through 7. The larger the value, the higher the level and the larger an area the MD covers. An MD can be tangential to or nest another MD, but these MDs cannot cross each other. An MD can only nest another MD with a lower level. After 802.1ag packets in a lower-level MD enter a higher-level MD, the 802.1ag packets will be discarded. 802.1ag packets in a higher-level MD can travel to a lower-level MD. 802.1ag packets in an MD of a specified level cannot travel the MD with the same level.Prerequisites
CFM has been enabled globally using the cfm enable (system view) command.
Configuration Impact
If an MD is deleted using the undo cfm md command on a device, the device automatically deletes all configurations about the MD.
Precautions