In an approach to device authentication, one or more processors receive a security policy comprising at least a first media access control (“mac”) address and a corresponding time period for determining network access for a device. One or more processors receive a second mac address and a corresponding time of connection of the second mac address for authentication of the device. One or more processors determine the second mac address is the first mac address and, responsive to determining the second mac address is the first mac address, one or more processors determine to grant network access to the device based on whether the time of connection of the second mac address is within the time period.