cfd md
Use cfd md to create an MD.
Use undo cfd md to delete an MD.
Syntax
cfd md md-name [ index index-value ] level level-value [ md-id { dns dns-name | mac mac-address subnumber | none } ]
undo cfd md md-name
Default
No MD is created.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
md md-name: Specifies the name of an MD, which is a string of 1 to 43 characters that can contain letters, numbers, and special characters such as tilde (~), exclamation mark (!), at sign (@), number sign (#), dollar sign ($), percent (%), caret (^), ampersand (&), asterisk(*), brackets ({ }, ( ),[ ], < >), hyphen (-), underscore (_), plus (+), equal sign (=), vertical bar (|), backslash (\), colon (:), semicolon (;), quotation marks (", '), comma (,), period (.), and slash (/).
index index-value: Specifies an MD index in the range of 1 to 4294967295. If this option is not specified, the system automatically assigns the smallest index number that is not in use. As a best practice, use the index automatically assigned by the system.
level level-value: Specifies an MD level in the range of 0 to 7.
md-id: Specifies the MD name carried by packets sent by the MEP. If you do not provide the keyword, the MD name is represented by md-name.
dns dns-name: Specifies an MD name in the format of DNS name, where dns-name represents the DNS name.
mac mac-address subnumber: Specifies an MD name comprising the MAC address and an integer, where mac-address represents the MAC address of the MD, and subnumber is in the range of 0 to 65535.
none: Specifies that no MD name is carried in the packets sent by the MEP.
Usage guidelines
An MD name must be in compliant with the specifications in table 21-19 in IEEE802.1ag-2007.
You can create only one MD with a specific level. MD cannot be created if you enter an invalid MD name or an existing MD name or the MD index is in use.
When deleting an MD, you will also delete the configurations related to that MD.
Examples
# Create an MD named test_md1, with its level being 3.
<Sysname> system-view [Sysname] cfd md test_md1 level 3
# Create an MD named test_md2, and the MD name carried in the packet sent by the MEP comprises the MAC address 1-1-1 and integer 1.
<Sysname> system-view [Sysname] cfd md test_md2 level 5 md-id mac 1-1-1 1