Method for detecting a merger situation of two ad hoc sub-networks implementing the D2HCP addressing protocol, the first sub-network comprising a plurality (p) of nodes (A, B, C) and the second sub-network comprising a plurality (q) of nodes (E, F), each node (i) of each sub-network comprising a data set comprising: • an identifier of said node (IDi); • identifiers of known nodes (IDj) of an authentication data set of said node (Ni); • the IP address associated with the identifier (IDj) of each node (Nj) referenced in the authentication data set; • at least one identifier (ID 20 , ID 21 ) of the sub-network to which said node (Ni) belongs, the method comprising: • a discovery (DEC) of a second node (F) of the second sub-network by a first node (A) of the first sub-network , by the receiving by the first node (A) of a data frame, referred to as discovery, issued by the second node (F) making it possible to determine a situation that requires the merger of two sub-networks ; • a data exchange (ECH1), referred to as initialisation data, between the first node (A) and the second node (F), comprising: ∘ the identifiers of each node (IDA, IDF) ∘ the size of each sub-network (p, q) ∘ the identifier of each sub-network (ID 20 , ID 21 ); • a comparison (COMP) of the sizes (p, q) of each sub-network and a definition of a master node (NMA) and of a slave node (NES) among the first (A) and the second node (F) based on the comparison (COMP) of the sizes (p, q) of each sub-network and a rule, the slave node (NES) retrieving a set of identifiers of the nodes of the sub-network of the master node (NMA) as well as the IP addresses associated with each one of said identifiers, the determination of the slave node (NES) and of the master node (NMA) making it possible to initialise a merger of the two sub-networks into a single network. • an identifier of said node (IDi); • identifiers of known nodes (IDj) of an authentication data set of said node (Ni); • the IP address associated with the identifier (IDj) of each node (Nj) referenced in the authentication data set; • at least one identifier (ID 20 , ID 21 ) of the sub-network to which said node (Ni) belongs, • a discovery (DEC) of a second node (F) of the second sub-network by a first node (A) of the first sub-network , by the receiving by the first node (A) of a data frame, referred to as discovery, issued by the second node (F) making it possible to determine a situation that requires the merger of two sub-networks ; • a data exchange (ECH1), referred to as initialisation data, between the first node (A) and the second node (F), comprising: ∘ the identifiers of each node (IDA, IDF) ∘ the size of each sub-network (p, q) ∘ the identifier of each sub-network (ID 20 , ID 21 ); ∘ the identifiers of each node (IDA, IDF) ∘ the size of each sub-network (p, q) ∘ the identifier of each sub-network (ID 20 , ID 21 ); • a comparison (COMP) of the sizes (p, q) of each sub-network and a definition of a master node (NMA) and of a slave node (NES) among the first (A) and the second node (F) based on the comparison (COMP) of the sizes (p, q) of each sub-network and a rule, the slave node (NES) retrieving a set of identifiers of the nodes of the sub-network of the master node (NMA) as well as the IP addresses associated with each one of said identifiers, the determination of the slave node (NES) and of the master node (NMA) making it possible to initialise a merger of the two sub-networks into a single network. <EOS>