1. Check out our companion app, Forums for Android! Download from Google Play

Windows Server 2008 r2 DNS, DHCP help

Discussion in 'Computers & IT' started by pasqo83, Jan 23, 2013.

  1. pasqo83

    pasqo83 Well-Known Member
    Thread Starter

    Dec 26, 2011
    Hey, Im new to this subject. Just a quick heads up, Im doing a Microsoft course which is starting in 2 weeks, trying to get into this field. I have 10 years experience in fixing peoples computers, building computers, troubleshooting etc... but never did networking or buisness IT until now.


    Im trying to create a virtual PC to learn win server 2008 r2 and active directory etc....

    I need to create a static IP address so I can connect computers to my domain serveR. I need to setup a DNS & DHCP.

    I have a virgin modem connected to my wireless router, that is connected to my PC.

    Do I need to create a static IP on my wireless router so that when I create a static IP in my Virtual PC, other computers will find the domain server (when I go to connect them) or can I just do it direct from my Virtual PC?

    I am having trouble getting the DNS & DHCP to actually work so that it releases private static IP to new computers.

    Any help from the Gurus please. I will be at your service.

    Thanks :)


  2. Speed Daemon

    Speed Daemon Well-Known Member

    Jul 12, 2012
    For a variety of reasons I assign static IP addresses to most of the hosts on my home network. What I've learned to do is set my "router" (I hate that term since nobody uses them for routing) to offer DHCP leases for less than the entire subnet.

    Most home and "small business" Internet gateway "routers" are preset to use one of the 192.168.*.* non-routable subnets, which gives a total of 254 available IP addresses. What I do is reserve the first half, from 192.168.*.2 to 192.168.*.127, and a few IP addresses near the end (192.168.*.251-192.168.*.254) for static IP. I do this by setting the DHCP server range from 192.168.*.128 to 192.168.*.250.

    For as long as I can remember, it's been traditional to reserve a block of IP addresses at the beginning and end of a subnet for routers, bridges or other networking equipment. You'll see why as you learn more about good practices in large managed networks. For now you can trust that it's a Good Thing.

    Another tradition has been to put the servers down low in the range of IP addresses. The biggest benefit of doing it this way is that old-timers are likely to have long-standing networks arranged this way, and it makes it easy to guess the IP address of a host that you can't find by name when there's a problem with DNS and/or WINS.

    Here's an example of how my home network is arranged:


    What's up with the two gateways? A well-designed business network will have one or more alternate paths to the Internet. If one path fails, the router(s) for the alternate path(s) assume the default gateway address automatically (if they're configured that way). Since you're learning the business way, you should be prepared for stuff like that.

    I reserve easy to remember IP blocks for various host types: is my printer. (In the workplace, many printers are Ethernet connected.) is reserved for servers (file, print etc.) is reserved for desktops. is reserved for virtual machines running on the desktops. is for more VMs...and so on. is reserved for my TV, TiVos and other media devices. are DHCP-assigned addresses that is used by new machines before I've configured a static IP address for them, and for my wirelessly connected devices. is reserved by tradition. My Slingboxes take these addresses without asking, so it was good that I reserved that space!


    The above is only an example. You can assign static IP addresses and DHCP ranges that suit you. When you set up a local DNS server, you'll probably find times when it's really helpful to know (more or less) the IP address of a host when you can't reach it by name. Being able to ping an address, or a small number of IP addresses to verify that a host is up saves time.

    I've seen some Internet gateway "routers" that allow you to use DHCP to assign fixed IP addresses using DHCP. This is not the same as configuring a true static IP address! For your purposes you'll want to have an IP block that doesn't get DHCP assignments, and therefore can be used to configure your machines with a static IP address on.

    Good luck!
  3. SUroot

    SUroot Well-Known Member

    May 25, 2010
    UK Technical Lead; Desktop Support
    Riddlesden, West Yorkshire, UK
    How are you actually hosting this virtual machine? Firstly you would do well to ensure the VM Guest Network interface is NAT'd not bridged.

    Once you have done this, boot up the server. 2008 R2 is like Win 7, so go to the network icon in the sys tray, right Click > Open network and sharing centre > Change Adapter settings > double click the adapter >properties > Highlight IP V4 > Properties and set the IP here


    You can also (depending on your router) allocate the address permanently. Its not a problem if you have set the static on the server, but if the server is off, the router could easily give the ip out to another device, so best to reserve it.

    Also, make sure this domain controller is only Active Directory, DNS and DHCP. Do not promote it to handle any other roles. If you need other roles, commission other servers.

    Edit > Don't forget you'll need to turn DHCP off on the router too, otherwise you'll be getting IP Addresses assigned by the router. Really for testing this, you want wired devices on a switch, isolated from the router.
    pasqo83 likes this.
  4. pasqo83

    pasqo83 Well-Known Member
    Thread Starter

    Dec 26, 2011
    Thanks both of you, I am still new to the world of IP and sub-nets, although I have done alot on hardware and software support, I have never touched networking or learnt IP'S so this is all very foreign to me but I am starting to have a better understanding.

    SU Root - you have helped me out big time, it was really easy to understand that. I am easier to work by being shown and I know what I am doing after. I often struggle reading books as although it is good, I learn better visually (on the job) so your explanation has helped me massively :)

    I am on track now and configued - wooo hooo

Share This Page