Setting up Active directory on a home network

8,658

Solution 1

I think the IP assigned by my router should be static.

That makes no sense. If an address is assigned by the router to another device then its not static. To give a computer a static address, you need to edit the operating system's network configuration and assign it a static IP address.

So when I turn off the router's DHCP and enable the DHCP Server in Windows, do all my computers (I have 3) automatically receive their IP from the server? How does that work?

Yes. DHCP, on a simple network works using the DORA principle.

  • Discovery - the client broadcasts a message on the local network segment its connected to, to discover available DHCP servers.
  • Offer - a suitably configured DHCP server receives a request from a client, and offers it an address from its pool of available addresses.
  • Request - The client replies to the offer, requesting the address received in the Offer.
  • Acknowledgement - The server acknowledges the request, marking the address as used in its pool of addresses, and informs the client of how long the address lease is valid for, and any other information needed.

As such, any device on a network segment can be a DHCP server, it doesn't have to be the router or any other "special" device on the network. When the devices on your network reach the end of their leases (or you reboot them, which will force them to check their lease is still valid) they will simply broadcast a request for a DHCP server and will find the new server instead of the old, inactive one.

The domain for the AD should be 'home.internal'.

Ok. If you're trying to learn AD then that's not a "best practice" address, but fair enough.

I also have IIS running that needs to be accessible from within and the internet. I don't think that has anythign to do with it?

Not as such. Though if you're promoting the server running IIS to be your domain controller, this may well change your IIS configuration (As "local" accounts aren't available on a domain controller, the accounts used by IIS and any web applications you're running will change).

Also, with wireless clients, how would they get their IP automatically if the DHCP in the router is turned off? They won't, right?

Yes, they will, unless your wireless router is configured in a very odd way. The wired and wireless networks typically appear as one network to the devices on that network.

I also have not understood why I need the DNS server.

DNS is a central component of Active Directory. See this: How DNS Support for Active Directory Works

Solution 2

I've got the same setup at home. I'll setup the AD DHCP to start giving out addresses from x.x.x.10 e.g. 192.168.0.10. Assign these non-DHCP addresses them to the router and the AD servers e.g. 192.168.0.1 gets assigned to the router, 192.168.0.2 for the first AD server, etc.

For the web server most router allow port forwarding. So assign a static MAC DHCP to the web server so the IP address doesn't change and forwar ld port 80/443 to this IP address.

The router will need to be switched on 24/7 for the clients to revived DHCP addresses.

DNS is an integral part of AD and is required for it to work. Is it not optional.

Share:
8,658

Related videos on Youtube

John
Author by

John

Updated on September 18, 2022

Comments

  • John
    John over 1 year

    I'm trying to set up AD on my Windows Server 2008 R2.

    I think the IP assigned by my router should be static. So when I turn off the router's DHCP and enable the DHCP Server in Windows, do all my computers (I have 3) automatically receive their IP from the server? How does that work?

    The domain for the AD should be 'home.internal'.

    I also have IIS running that needs to be accessible from within and the internet. I don't think that has anythign to do with it?

    Also, with wireless clients, how would they get their IP automatically if the DHCP in the router is turned off? They won't, right?

    I also have not understood why I need the DNS server.

    Forgive my ignorance. If you know of articles and questions related to this one please link to them. Somehow answers seem hard to come by.

    • Admin
      Admin about 12 years
      If you dont know how DHCP and DNS works you shouldnt be messing with AD>
    • David W
      David W about 12 years
      John - Unfortunately, I don't think your question is going to get a lot of traction here, because technically its off topic. I don't mean to jump on this and be the bad guy, but the FAQ explicitly states that items related to home environments is off topic. Please see serverfault.com/faq#questions for more info... I'm going to vote to move it to Super User or somewhere else. Then I MIGHT take a stab at answering it!
  • Rob Moir
    Rob Moir about 12 years
    When your computers are plugged into your router, they are using the DHCP server of the router. - You're kinda implying that they have to use the DNS server on the router just because they're plugged into it. That's totally not the case.
  • Bryan
    Bryan about 12 years
    @MilesErickson +1 as I'm a .local lemming.
  • kobaltz
    kobaltz about 12 years
    DNS servers do not assign nonroutable IP addresses or a gateway to internet connectivity. You can use other services like OpenDNS. I was mentioning DHCP servers, not DNS.
  • Rob Moir
    Rob Moir about 12 years
    Sorry, I typed DNS but meant DHCP. If you substitute 'DHCP' for 'DNS' my point stands - you don't need to use the router DHCP server just because you're plugged into the router
  • InterLinked
    InterLinked over 7 years
    .local is bad practice as it can cause problems. You should ALWAYS use your web domain or a subdomain for your AD setup. Even if you buy a domain just for AD - you will save yourself from a ton of problems later