Method for merging two sub-networks (20, 21) of an ad hoc network implementing the D2HCP routing protocol, a master node (N MA) being determined from among a first sub-network and a slave node (N ES) being determined from among the second sub-network, characterised in that the method comprises: - a transmitting (40, ECH2) of a first data set from the master node (N MA) to the slave node (N ES), said first set comprising: ∘ the identifiers (IDA, IDB, IDC) of all the nodes (A, B, C) of the sub-network comprising the master node (N MA). ∘ the IP addresses (IP A, IP B, IP C) of all the nodes (A, B, C) of the sub-network comprising the master node (N MA), each node (i) identifier (IDi) being associated with a single IP address, - a comparing (COMP2(@IP)) of each IP address of the first set received with the IP addresses of a second set of authentication data of the slave node (N ES), the latter set comprising the identifiers (IDj) and the IP addresses of the nodes (j) known to the slave node (N ES) of the second sub-network, in order to identify a list (LIST) of duplicate nodes corresponding to nodes of the second sub-network having the same IP addresses as the nodes of the first sub-network. - A constructing of a new set of authentication data (ID TABLE(N ES)) of the nodes of the two sub-networks (20, 21) by the slave node. - a constructing of a new routing table with all the IP addresses of the two sub-networks (20, 21) in each node of the merged network comprising the nodes of the two sub-networks (20, 21) by the slave node (N ES); - an attributing of the new identifier (ID 22) of the merged network comprising the nodes of the two sub-networks (20, 21) by the slave node (N ES); - a diffusing of the data of the new set of authentication data (ID TABLE(N ES)) from the slave node (N ES) to all the nodes (i) of the merged network. - a transmitting (40, ECH2) of a first data set from the master node (N MA) to the slave node (N ES), said first set comprising: ∘ the identifiers (IDA, IDB, IDC) of all the nodes (A, B, C) of the sub-network comprising the master node (N MA). ∘ the IP addresses (IP A, IP B, IP C) of all the nodes (A, B, C) of the sub-network comprising the master node (N MA), each node (i) identifier (IDi) being associated with a single IP address, ∘ the identifiers (IDA, IDB, IDC) of all the nodes (A, B, C) of the sub-network comprising the master node (N MA). ∘ the IP addresses (IP A, IP B, IP C) of all the nodes (A, B, C) of the sub-network comprising the master node (N MA), each node (i) identifier (IDi) being associated with a single IP address, - a comparing (COMP2(@IP)) of each IP address of the first set received with the IP addresses of a second set of authentication data of the slave node (N ES), the latter set comprising the identifiers (IDj) and the IP addresses of the nodes (j) known to the slave node (N ES) of the second sub-network, in order to identify a list (LIST) of duplicate nodes corresponding to nodes of the second sub-network having the same IP addresses as the nodes of the first sub-network. - A constructing of a new set of authentication data (ID TABLE(N ES)) of the nodes of the two sub-networks (20, 21) by the slave node. - a constructing of a new routing table with all the IP addresses of the two sub-networks (20, 21) in each node of the merged network comprising the nodes of the two sub-networks (20, 21) by the slave node (N ES); - an attributing of the new identifier (ID 22) of the merged network comprising the nodes of the two sub-networks (20, 21) by the slave node (N ES); - a diffusing of the data of the new set of authentication data (ID TABLE(N ES)) from the slave node (N ES) to all the nodes (i) of the merged network.