An auto-allocation method of addresses of mobile ad hoc networks adopts an IP address stratified allocation mode based on neighbour proxy collision-free detection, address allocation information is provided with hereditary property; usable IP address control word which can become long is adopted to control the process of IP address allocation; the method comprises mobile ad hoc network address initialization configuration, an IP address auto-allocation protocol, an IP address allocation control process, an IP address trunking protocol, an IP address pool recover protocol, network merger and transformation and network partitioning and transformation; the invention adopts the IP address stratified allocation mode based on neighbour proxy collision-free detection, the address allocation information is provided with hereditary property, the usable IP address control word which can become long is adopted to flexibly control the allocation process of IP address space, thus effectively avoiding address allocation conflict, dispensing with address conflict detection, improving address allocation efficiency, reducing use of multicast or broadcast message in the process of address allocation, lowering resource consumption, and being applicable to allocation of IP addresses of multiple versions.