---
title: Adding Devices with IP Regex
slug: reference-guide-3-0-0/adding-devices-with-ip-regex
description: Learn how to use IP Regex patterns to conveniently classify devices into groups and effectively manage AAA requests. This document provides step-by-step instructions on adding IP Regex patterns to device groups, enabling automated membership detection bas
docTags: 
createdAt: 2022-08-01T13:02:29.000Z
---

Instead of adding devices one by one, you can add IP Regex to Device Groups to assume every device with a matching IP address as the member of this Device Group. Similarly, some IP Regex Patterns can be added with the Deny rule, which makes the system deny all AAA requests coming from this IP.
To add an IP Regex Pattern to a Device Group:

1. Navigate to **Device Management&#x20;**> **Device Groups**.
2. Right-click on the desired device group, and select **Add/Edit IP Regex Pattern**.

::Image[]{src="https://api.archbee.com/api/optimize/g9cApVza9NIhSh0pjZYtA/e-4LEJQrXel7ktD8FoGYN_image.png" size="70" width="689" height="236" caption="Add/Edit IP Regex Pattern Option" position="center" showCaption="true"}

- Set the allowed/denied IP regex.

::Image[]{src="https://api.archbee.com/api/optimize/g9cApVza9NIhSh0pjZYtA/yUGQMvzkkOml2TATsxtBk_image.png" size="70" width="474" height="303" caption="IP Regex Patterns" position="center" showCaption="true"}

