摘要 |
Disclosed are a packet sending method and a device. An access device receives an access request from a terminal device; and if an Internet Protocol (IP) address used by the terminal device is a static IP address, the access device acquires the IP address, a media access control (MAC) address and access location information of the terminal device, generates by simulation a Dynamic Host Configuration Protocol (DHCP) packet according to the IP address, the MAC address and the access location information, and sends the DHCP packet to a gateway device. By means of the present invention, the gateway device can conveniently acquire access location information of a user with a statically configured IP address by acquiring a DHCP packet, so as to implement precise policy control such as authentication of the user with the statically configured IP address. |