With the requirement of very large data centers for cloud computing, the challenge lies in how to produce a scalable and inexpensive design to interconnect a large number of servers in data centers while providing fault tolerance and high network capacity. Internet Protocol (IP)-based data center networks (DCNs) can support a sufficiently large number of machines and dynamic multi-path routing. However, the complex and error-prone manual configuration of IP-based DCNs hinders its deployment. In this paper, we propose DCZeroconf, a fully automatic IP address configuration mechanism, to eliminate the burden of manual configurations of the IP addresses of servers and switches in data centers. We have implemented a prototype system to validate the effectiveness of DCZeroconf via extensive experiments and simulations. The evaluation results demonstrate that DCZeroconf supports different topologies, and the assigned IP addresses can be automatically adjusted upon dynamic topology changes. In addition, the entire automatic process can be completed in seconds or less.