The ping mac-8021ag mep command allows the system to monitor the connectivity between the local MEP and the MEP or MIP at the same maintenance level on other devices. The detection mode is called 802.1ag MAC ping.
Parameter | Description | Value |
---|---|---|
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 ranging from 1 to 8191. |
mac mac-address |
Specifies the MAC address of the destination node. The destination node can be a MEP or a MIP. An MP's MAC address can be a bridge MAC address or the MAC address of the interface on which the MP resides, depending on the configured MP address model:
|
Expressed as a 12-digit hexadecimal number, in the format of H-H-H. Each H is 4 digits. It cannot be a broadcast MAC address or a multicast MAC address. |
remote-mep mep-id |
Specifies the ID of a destination RMEP. The destination RMEP must have been created using the remote-mep command, and the bridge MAC address of the device where the REMP resides must have been specified. |
The value is an integer that ranges from 1 to 8191. |
-c count |
Specifies the number of sent ping packets. |
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 period for waiting for a reply packet. |
The value is an integer ranging from 1 to 65535, in ms. The default value is 2000 ms. |
-p priority-value |
Specifies the priority of ping packets. |
The value is an integer ranging from 0 to 7. The default value is the same as 802.1p priority of the 802.1ag packets which was specified in MA view. |
Usage Scenario
Similar to the ping operation, 802.1ag MAC ping checks whether the destination device is reachable by sending test packets and receiving response packets. In addition, the ping operation time can be calculated at the transmitting end for network performance analysis. Run this command to test the connectivity of links in current MA.
Prerequisites
When implementing 802.1ag MAC ping, ensure that:
Precautions
802.1ag MAC ping is initiated by a MEP in the MA and destined for a MEP or a MIP at the same maintenance level on other devices. The source node and the destination node can be within different MAs.
<HUAWEI> system-view [~HUAWEI] cfm enable [*HUAWEI] cfm md md1 [*HUAWEI-md-md1] ma ma1 [*HUAWEI-md-md1-ma-ma1] map vlan 100 [*HUAWEI-md-md1-ma-ma1] mep mep-id 1 interface GigabitEthernet0/1/0 outward [*HUAWEI-md-md1-ma-ma1] mep ccm-send mep-id 1 enable [*HUAWEI-md-md1-ma-ma1] remote-mep mep-id 2 [*HUAWEI-md-md1-ma-ma1] remote-mep ccm-receive mep-id 2 enable [*HUAWEI-md-md1-ma-ma1] commit [~HUAWEI-md-md1-ma-ma1] ping mac-8021ag mep mep-id 1 remote-mep mep-id 2 Pinging 00e0-fc12-3456 with 95 bytes of data: Reply from 00e0-fc12-3456: bytes = 95, time = 11ms Reply from 00e0-fc12-3456: bytes = 95, time = 2ms Reply from 00e0-fc12-3456: bytes = 95, time = 3ms Reply from 00e0-fc12-3456: bytes = 95, time = 3ms Reply from 00e0-fc12-3456: bytes = 95, time = 2ms Packets: Sent = 5, Received = 5, Lost = 0 (0% loss) Minimum = 2ms, Maximum = 11ms, Average = 4ms
Item | Description |
---|---|
Reply from 00e0-fc12-3456: bytes = 95, time = 11ms | Size and response time of ping packets sent by the destination device. (When the response time is less than 1 ms, "time < 1ms" is displayed.). |
Packets: Sent = 5, Received = 5, Lost = 0 (0% loss) | Number of sent ping packets, number of received reply packets, and number and percentage of discarded packets. |
Minimum | Minimum RTT response. |
Maximum | Maximum RTT response. |
Average | Average RTT response. |