This paper introduces in the detail the applying principles of IP address and MAC address and the methods of subnet division, and analyzes the realization course of the address resolution protocol (ARP) and the reverse address resolution protocol (RARP).