The invention discloses a CFD (
connectivity fault detection) protocol configuration method and a device thereof. The method comprises the followings steps: when maintenance domains with the same maintenance domain levels are configured for devices in a VLAN (virtual
local area network), a primary device and each slave device respectively receive configuration orders of maintenance
domain level, and the maintenance
domain level of the device is configured according to the orders; the primary device in the VLAN transmits CC (continuity check) massages with the maintenance
domain level, each slave device returns to the LT (link trace)
massage after receiving the CC massages, wherein an intermediate device which receives the LT
massage returns an LTR (link trace reply)
massage to a transmitting party device of the LT massage; the primary device configures an outbound maintenance end point on a port which transmits CC massages, ports of slave devices which receive maintenance intermediate points and reply LTR massage exist, the maintenance
intermediate point is configured on the port, and maintenance intermediate points are configured on other ports which have the same maintenance domain levels with the maintenance intermediate points; and other slave devices configure outbound maintenance end points on ports which receive CC massages and do not reply the LTR massages. By adopting the method and device provided by the invention, the
auto configuration of CFD protocol can be realized.