A method for contiguous allocation of Internet Protocol (IP) addresses includes receiving, by a gateway from a network device, a request for an IP address of a plurality of IP addresses, determining, by the gateway, whether the network device is an access point, in response to determining that the network device is an access point, assigning by the gateway, the IP address to the network device from a first contiguous range of the plurality of IP addresses, in response to determining that the network device is not an access point, assigning, by the gateway, the IP address to the network device from a second contiguous range of the plurality of IP addresses, wherein the first contiguous block and the second contiguous block are separate, after assigning and by the gateway, enforcing a policy for the network device based on the IP address of the network device.
展开▼