摘要 |
A method and device for acquiring an address, comprising: acquiring, by a wireless repeater, an Internet protocol (IP) address and a subnet mask from a residential gateway, computing, according to the obtained IP address and the subnet mask, an IP address range, and initiating a dynamic host configuration protocol (DHCP) service; when the repeater receives a first discovery packet from a terminal, transmitting, by the repeater, a first offer packet to the terminal, wherein the first offer packet comprises the IP address allocated to the terminal according to the IP address range acquired from the computation. |