Method for detecting a merger situation of two ad hoc sub-networks (20, 21) 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 of a second node of the second sub-network by a first node of the first sub-network, by the receiving by the first node of a data frame, referred to as discovery, issued by the second node making it possible to determine a situation that requires the merger of two sub-networks (20, 21); • a data exchange, referred to as initialisation data, between the first node and the second node, 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 (20, 21) and a definition of a master node and of a slave node among the first and the second node based on the comparison (COMP) of the sizes (p, q) of each sub-network (20, 21) and a rule, the slave node retrieving a set of identifiers of the nodes of the sub-network of the master node as well as the IP addresses associated with each one of said identifiers, the determination of the slave node and of the master node 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 of a second node of the second sub-network by a first node of the first sub-network, by the receiving by the first node of a data frame, referred to as discovery, issued by the second node making it possible to determine a situation that requires the merger of two sub-networks (20, 21); • a data exchange, referred to as initialisation data, between the first node and the second node, 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 (20, 21) and a definition of a master node and of a slave node among the first and the second node based on the comparison (COMP) of the sizes (p, q) of each sub-network (20, 21) and a rule, the slave node retrieving a set of identifiers of the nodes of the sub-network of the master node as well as the IP addresses associated with each one of said identifiers, the determination of the slave node and of the master node making it possible to initialise a merger of the two sub-networks into a single network.