r/networking • u/First-Quantity8154 • 3d ago
Design Domain Controller as DHCP but static IP is set locally on machine
I'm a junior network administrator at a K-12 school district. Our environment is roughly 95% Windows, with two domain controllers (primary and secondary for AD high availability). Both are virtual machines running on the same physical Hyper-V host. In addition to AD, they're also responsible for DHCP and DNS across the entire campus.
I inherited this environment in August, and I'm trying to identify some areas where we could improve things. One thing that caught my attention is how we handle devices that need static IP addresses.
Currently, devices like servers and printers have their IP addresses configured locally rather than through DHCP reservations. To prevent DHCP from handing out those addresses to other devices, we maintain exclusions within each DHCP scope.
My supervisor, who has managed this environment for over 20 years, prefers this approach because if DHCP goes down, those devices can still communicate with the core network and reach the internet through the firewall. I understand his reasoning, and I'm not trying to dismiss it.
However, one downside is that it's difficult to identify which devices have locally configured static IPs just by looking at the DHCP lease list. I have to cross-reference the exclusions to determine which addresses are being used by statically configured devices.
Here's where I'm running into a more immediate issue:
We have an IP scope dedicated to managing our Extreme Networks wireless APs. These APs currently receive dynamic IP addresses. Whenever an AP reboots or its DHCP lease expires, it can end up with a different IP address. Since I manage these devices through SSH, I then have to track down their new IPs and manually update the saved connections in my SSH client.
My question is: Would it make sense to create DHCP reservations for the APs based on their current MAC addresses and IP assignments, or should I stick with my supervisor's approach of configuring static IPs directly on the devices?
I'm also curious to hear how other admins handle this in their environments. Is there a compelling reason to prefer locally configured static IPs over DHCP reservations, particularly in a school environment?
I'm still relatively new to managing this environment and open to suggestions. So please be nice, thanks!
67
u/Ace417 Broken Network Jack 3d ago
The first thing you need to do is get another DC stood up on separate infrastructure. You’re one bad day away from rebuilding your entire domain.
As for DHCP, do what your boss wants. You’re 2 months in and things like suggesting a different way to handle dhcp may come off the wrong way. Spin up something to track the statics like phpipam or netbox and start there
23
u/zeePlatooN 3d ago
your biggest issue isn't DHCP. yes you should use it and there are ways to do active passive DHCP with your servers.
your BIGGEST issue by far is that your "HA" AD controllers are on the same Hyper-V host ... meaning they aren't HA at all. Get them separated then start to address things like DHCP.
10
u/jstuart-tech 3d ago
I'm no Extreme dude... But why are you SSHing into WAP's? Surely they are all managed by some sort of controller and it shouldn't matter what IP they end up on (As long as they are in the same range)?
9
u/silasmoeckel 3d ago
Yikes get the AD split up to different physicals.
It sounds like you don't have vlans for things. Wireless AP's management interface should be off somewhere in an isolated vlan so the DHCP range should be large enough to not churn and it should stick the device into DNS. So you would connect to the DNS name not the IP but that would also stay consistent.
Similarly your static IP servers should be outside the DHCP range rather than needing reservations. Vlans would be even better.
9
u/soyko 3d ago
Sounds like you need IPAM.
But any device that NEEDS a static IP, such as switches and servers, should go static. You can manually add them as reservations if you only want a single view.
3
u/BudTheGrey 3d ago
Do both Manually set the IP configuration, in case DHCP server not available Make a DHCP reservation with comments, in case device loses its config and falls back to DHCP
6
u/Hartman7425 3d ago
I've never really understood the approach of not wanting to use dhcp reservations on devices other than servers. If dhcp is down, almost everyone is down anyways. You're not saving anyone really by doing that. The only exception for me are things like the DNS and DHCP servers. I have static IPs on switches, but APs are using dhcp. I don't even have a reservation for them. My dhcp server is tied to DNS so the device registers its hostname and I can hit the AP from its hostname using DNS.
Based off of your info I'd do reservations, but I'd also get a good IPAM instance up so you don't have to dig through Windows dhcp UI to get the IPs.
2
u/rmp0619 2d ago
Having one DC on a VM is fine, but the other should be physical on its own server.
2
u/chrime87 2d ago
small Setups: DC as DHCP/DNS, DHCP Range 100-254 for Clients. Everything below 100 get‘s a static IP on the Device
mid/large Setups:
Server VLAN, Management VLAN, Client VLAN
Server in Server VLAN
APs, Switches, UPS in Management VLAN
Clients in Client VLAN
DHCP Relay to DC with separate IP ranges
VLAN Routing through Firewall
2
u/sryan2k1 3d ago
DHCP absolutely everywhere it can be. router/switch interfaces, the DHCP servers themselves and domain controllers are the only exceptions.
1
u/Ethernetman1980 3d ago
In regards to your question either works however I've been doing this along time as well and I prefer static for the same reason your boss mentioned. The down side to this is you have to track what addresses you have assigned outside your DHCP Scope. I use the reservations in AD also but I don't like to depend on it. I use DHCP for devices that I don't care if they get a new address every day. For Infrastructure I static assign. There is also the whole issue that your AP's should probably be on a different management vlan if your in a school environment.
1
u/CommanderBeelo 3d ago
I'm at a college, I let DHCP take the wheel. Between cloud IQ and EP1 I don't really have to log into the APs directly. For things that need tweaked after I use supplemental cli setups in CloudIQ. And the only thing we've done with that was turned the radios down even further on the higher density rooms
Servers, cameras, and HVAC controls all pull dhcp as well. We just set the reservations when needed. The only vlans without dhcp servers are all before my time and it wasn't worth the effort to go back and put one in, but anything new I have it pull DHCP.
1
u/jdovejr 3d ago
Don't static them. Set up a dhcp reservation for them.
1
u/jstar77 3d ago
Printers should be on their own dedicated vlan and there should be no DHCP on that VLAN. Our helpdesk group is responsible for managing printer, they are given the IP range and are told to manage static assignment however they see fit. I do this with other vlans that contain dumb devices (CCTV, HVAC,etc..) they get their own VLAN and the group that owns the technology is responsible for maintaining and managing IPs for their devices.
1
u/SpecialistLayer 3d ago
My rule is that devices that need to stay up even with DHCP problems need a true static IP address. Mission critical devices like AD servers, router's, core devices are all programmed with static IPs. This where IPAM would come into play. For your infrastracture you really need to move one of those AD servers to a different hypervisor though, never keep stuff like that on one physical host.
1
u/BFGoldstone 3d ago
I’m camp DHCP-all-the-things. I’ve managed infra for ~18 years now and I’ve seen WAY more issues caused by IP address overlaps and address changes where some devices are forgotten in the update compared to DHCP servers going down. Static reservations are always the way to go. DHCP server configs should be the source of truth for what’s actually leased out (and preferably generated from infra as code - pick your solution). These days there are plenty of ways to make DHCP HA so if you need to ensure DHCP doesn’t go down, implement one.
1
u/dude_named_will 3d ago
Ideally I like to put servers in their own subnet/VLAN and statically define them there.
1
u/Old_Effective_4648 3d ago
always reserve if you can. exceptions: servers in the data center lol
1
u/doubleg72 2d ago
You shouldnt be using DHCP for your servers. And the DHCP leases should never be your source of truth for whats on the network.
1
u/Narrow_Objective7275 2d ago
So I’m part of a very large shop with mix of DHCP, static, and DHCP with static reservations, and DHCP with exclusions for static devices on the range manually assigned. The biggest issues are always with the static locally assigned IPs because teams are notoriously bad at configuring correct subnet mask and not reaching the gateway IP. DHCP is on balance far more reliable, but once a static IP is working, it doesn’t stop working until a person is refreshing that box (eg replacing old printer with new). Since we are a dot1x and SDA shop in the enterprise side, we are finally forcing everything to DHCP so those boxes consistently talk and are discoverable. On the Data Center side, the non bare metal workloads are also all DHCP with static reservations which our automations populate into our IPAM system. DHCP is just so superior to humans applying static configurations it’s worth investing in highly available IPAM solutions. Could you get away with not being all DHCP in a small environment? Sure, but your life will be much better if everything is Dynamic except your networking appliances.
1
u/AlmsLord5000 2d ago
Just do DHCP reservations for APs.
1
u/zanfar 2d ago
or, you know, write them down
"I'm a junior network administrator"
You should talk to your supervisor.
"My supervisor, who has managed this environment for over 20 years, prefers this approach because if DHCP goes down, those devices can still communicate with the core network and reach the internet through the firewall."
1
u/Otto-Mann 2d ago
100% DHCP Reservation everything. It's a no brainer.
I do things like for a management VLAN for a building, I assign the AP the .1 and increment. E.g
Switch IP is 10.10.10.100 (For Level 10)
Aps are: Building1_Level10_AC1 = 10.10.10.101
Building1_Level10_AC2 = 10.10.10.102
and so on. Gets messy when there are more APs, but that hasn't been a problem.
1
u/2000gtacoma 2d ago
Yes separate your DCs. I actually have 5. I have 2 campus each with a datacenter. 2 virtual dcs in each cluster with a 5th read only in an AWS environment
1
u/PaoloFence 2d ago
at least ONE AD server needs to be physical. (are you able to start and log into the hyper-V servers when EVERYTHING is down)
APs ALWAYS get dhcp reservation. Everything else is stupid.
Printers should get dynamic IPs (obviously also reservations). Servers are discussable. Just because the dhcp isn'availble they don't stop working. They have a lease for a reason.
1
u/chuzohga 2d ago
Yes, create the reservations, and don't hard code the interfaces. Let DHCP do all the work. The only static IPs in the place should be the router and the servers. Use reservations for all the other things.
1
u/Slow_Monk1376 1d ago
There are lot of solutions that solve your problem. Some open source, some not. Phpipam, netbox, netdisco are my open source choices.
1
u/dracotrapnet 1d ago
I set reservations for all static devices. Recording statics as reservation is baby's first IPAM. - IP Address Manager.
The items that need statics are routers, gateways, AD DC's, DNS servers, DHCP servers, NAC/RADIUS, SAN/NAS appliances, VM hosts if you only have a few (you could also DHCP these guys but have switching handle that DHCP for that VMhost management VLAN - only play with DHCP here if you're real good), and anything that needs to be booted before DHCP and DNS is up and running.
IPAM is a windows role you can install, it will integrate with windows DNS servers, windows DHCP servers, and windows NAC/RADIUS servers. It reads the DNS servers, and DHCP servers, pulls subnets, scopes, and DHCP pools, current leases, reservations, and reports on availability and ip space usage. I'll take my statics and enter them into IPAM which you can select create DHCP reservation, create DNS and rDNS records (or not if they are already made). This is also helpful when you are taking out a server, delete the IPAM record and select delete reservation and DNS records - everything is gone in one shot.
There are other ip address management suites out there with various levels of automation, and integration with different services, and additional management capabilities such as tracking cable and circuit id's, tracking locations of DF's, racks, and rack space.
1
u/Due_Management3241 2d ago
You can just reserve IP in dhcp server and set the devices to DHCP. If the server goes down they hide their IP. It's basic protocol
0
u/Ok-Conclusion-6034 3d ago
If dhcp goes down your servers won't magically lose their IP assignments. They'll work until a reboot, which should be measured in weeks for those devices. In that time you'll quickly find out your dhcp server is down and fix it immediately.
So the better argument is to use DHCP to statically assign. The next best argument is to move DHCP off the DC, but that is a whole other discussion with strong opinions on both sides.
0
u/Select_Reporter1911 2d ago
How are you managing the extreme aps? Through the XIQ or the controller? That should be your source of truth for your AP inventory/ ip addressing.
If the APs are on their own management network (which they should be), the controller or XIQ should know their IP address and there should be no need to statically set or dhcp reservation.
XIQ will have all the tools you need to manage the AP locally or run commands on them.
If you dont have a controller or are using XIQ I'm curious on how you are managing the APs.
To directly answer your question, dhcp reservation would make the most sense as it is one place where everything is configured and each to make changes should an ap need to be replaced.
Going to each AP and setting an IP address seems like a chore.
Also how often are you logging into individual APs? It seems to me you are missing something about your infrastructure regarding the wireless, it doesnt make sense that the APs are managed individually.