# IPv6 subnets count should be retrievable

IPv6 subnets count should be retrievable. A Maester check for Active Directory, Sites and subnets.

Source: https://maester.dev/docs/tests/AD-SUB-04

<!-- This file is generated by website/scripts/generate-test-docs.mjs. Do not edit manually. -->

<div class="test-byline"><div class="test-byline-avatars"><a class="test-byline-avatar test-byline-avatar--author" href="/contributors/soulemike" title="Michael Soule · Original author"><img src="https://github.com/soulemike.png" alt="Michael Soule" width="28" height="28" loading="lazy" decoding="async" /></a></div><div class="test-byline-meta"><span class="test-byline-text">Contributed by <a href="/contributors/soulemike">Michael Soule</a></span><a class="test-byline-link" href="/contributors">All contributors →</a></div></div>

<p class="test-part">Part of <a href="/docs/tests/ad">Active Directory</a> · Active Directory · Sites and subnets · <a href="/docs/tests">All checks</a></p>

```powershell title="Run this check"
Invoke-Maester -TestId AD-SUB-04
```

## Overview

IPv6 subnet configuration is important for:

- **Future-proofing**: IPv6 adoption continues to grow
- **Dual-stack environments**: Supporting both IPv4 and IPv6 clients
- **Compliance**: Meeting IPv6 readiness requirements
- **Modern networks**: Many modern networks are IPv6-first

Understanding IPv6 subnet deployment helps assess the organization's IPv6 readiness.

#### Control Type

**Operational**

#### Security Recommendation

- Define IPv6 subnets for all locations where IPv6 is deployed
- Ensure IPv6 subnets mirror IPv4 site topology
- Document IPv6 addressing scheme
- Plan for IPv6-only client support

#### How the Test Works

This test counts subnets that use IPv6 address format (containing colons).

#### Related Tests

- `Test-MtAdSubnetIpv6CatchAllCount` - Identifies overly broad IPv6 subnets
- `Test-MtAdSubnetTotalCount` - Counts total subnets
- `Test-MtAdSubnetSiteAssociationCount` - Counts sites with subnets

## Details

<details>
<summary>Every attribute of this check</summary>

| Field | Value |
| --- | --- |
| Test ID | AD-SUB-04 |
| Severity | Info |
| Suite | Active Directory |
| Product | Active Directory |
| Feature | Sites and subnets |
| Area | Infrastructure hardening |
| Resource type | AdSite |
| MITRE ATT&CK | None |
| PowerShell test | [Test-MtAdSubnetIpv6Count](https://github.com/maester365/maester/blob/main/tests/ad/site/Test.AD-SUB-04.ps1) |
| Services | ActiveDirectory |
| Permissions | ActiveDirectory:Ldap:subnet:ReadProperty |

</details>

## Source

- Test: [`tests/ad/site/Test.AD-SUB-04.ps1`](https://github.com/maester365/maester/blob/main/tests/ad/site/Test.AD-SUB-04.ps1)
- Documentation: [`tests/ad/site/Test.AD-SUB-04.md`](https://github.com/maester365/maester/blob/main/tests/ad/site/Test.AD-SUB-04.md)
