20.8 C
Dubai
Tuesday, April 16, 2024

How to create an Multiple Active Directory Subnets –IP addresses don’t map to any of the existing sites

Log Name:      System
Source:        NETLOGON
Date:          11/22/2015 2:58:00 PM
Event ID:      5807
Level:         Warning

Description:

During the past 3 hours there have been 1000 connections to this Domain Controller from client machines whose IP addresses don’t map to any of the existing sites in the enterprise. Those clients, therefore, have undefined sites and may connect to any Domain Controller including those that are in far distant locations from the clients. A client’s site is determined by the mapping of its subnet to one of the existing sites. To move the above clients to one of the sites, please consider creating subnet object(s) covering the above IP addresses with mapping to one of the existing sites.  The names and IP addresses of the clients in question have been logged on this computer in the following log file ‘%SystemRoot%\debug\netlogon.log’ and, potentially, in the log file ‘%SystemRoot%\debug\netlogon.bak’ created if the former log becomes full. The log(s) may contain additional unrelated debugging information. To filter out the needed information, please search for lines which contain text ‘NO_CLIENT_SITE:’. The first word after this string is the client name and the second word is the client IP address. The maximum size of the log(s) is controlled by the following registry DWORD value ‘HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters\LogFileMaxSize’; the default is 20000000 bytes.  The current maximum size is 20000000 bytes.  To set a different maximum size, create the above registry value and set the desired maximum size in bytes.

Got below list with 500 Ips –  Got the appropriate Active Directory below Sites.

11/22 15:25:44 CARE: NO_CLIENT_SITE: CARE003868 172.0.29.45
11/22 15:25:56 CARE: NO_CLIENT_SITE: CARE033511 10.3.8.2

11/22 15:25:56 CARE: NO_CLIENT_SITE: CARE033511 172.0.29.28
11/22 15:25:57 CARE: NO_CLIENT_SITE: CARE033511 172.0.29.28

 

Created a CSV in Below Format –

image

 

Logged into a 2012 R2 Domain Controller.

Open Powershell

Import-Module ActiveDirectory
Import-Csv .\SiteDetails.csv | ForEach-Object{New-ADReplicationSubnet -Site $_.Site -Name $_.Subnet -Description $_.Description}

To Export all Active Directory Sites and Subnet Information –

Get-ADReplicationSubnet -Filter * -Properties Site,Name,Description | Sort-Object Name,Site,objectclass,Description | Export-Csv ADSites.csv
Satheshwaran Manoharan
Satheshwaran Manoharanhttps://www.azure365pro.com
Award-winning Technology Leader with a wealth of experience running large teams and diversified industry exposure in cloud computing. From shipping lines to rolling stocks.In-depth expertise in driving cloud adoption strategies and modernizing systems to cloud native. Specialized in Microsoft Cloud, DevOps, and Microsoft 365 Stack and conducted numerous successful projects worldwide. Also, Acting as a Technical Advisor for various start-ups.

Related Articles

1 COMMENT

LEAVE A REPLY

Please enter your comment!
Please enter your name here

× How can I help you?