Basic DHCP Setup on Windows Server 2012

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello again as you know I am Eli the computer guy in today's class is basic DHCP setup on Windows Server 2012 so we are going to do our first configurations for DHCP server on Windows Server 2012 now it's very important to understand if you are watching this video class this is not an introductory level video class if you don't understand DHCP or tcp/ip or Windows Server 2012 or any of that you're going to be completely lost you can follow along but just realize that this is another class in the Windows Server 2012 track and at this point you need a fairly decent understanding of how a CP IP networking works and if you don't you're probably going to get lost and confused so I did a class on introduction to DHCP where we talked about some of the basic concepts that you need to know for DHCP and in this class today we are going to set up a basic DHCP server on Windows Server 2012 now it's very important to understand once you get into the enterprise world what you get into the Windows Enterprise world you can start doing lots and lots of fancy complicated convoluted things that most of us frankly will never do so this is a basic DHCP setup class basically what we're going to do today is we are going to set up the scope for the DHCP server we are going to set up the options so basically we're going to set to tell the DHCP clients what the DNS servers are what the default gateways are basically so our Windows Server 2012 server can give out basic DHCP IP addresses now we're not going to go into to fault tolerance and super scopes and multi casting scopes and all that today just because that will take a long time we're just basically we're just getting up to basic implementation of DHCP on your Windows Server 2012 box now at this point you should have already installed DHCP on your windows 2012 server so we that in a different class now when we're thinking about setting up DHCP this is where we start to get to the point where we start to get into things being as much an art as there are a science or a technology so so what I'm going to show you today is how to configure the DHCP server but you you are going to have to figure out what your own IP addressing scheme is so this is something for you to think about is what kind of IP addresses do you want how many subnets do you need how many hosts on the network do you need so I'm going to use a 10.1 10 dot X on network today but what you decide to use it is is completely up to you so this is one of the things that you have to think about you know we've had a class on tcp/ip and subnet masking this is where you have to start to think how many hosts do you need on the network so how big does the subnet have to be therefore what type of IP addresses should you be giving out now if you are just in a lab environment or if you are in just a normal computer environment the address scheme that I'm using today should work fine for you but again this is just something that you're going to have to think about so before we dive in the computer I want to go over to my little digital whiteboard just to make sure that we're on the same page with a few things so that you guys don't get lost so first I just want to explain a little bit about about the network again just to make sure that we are on the same page so we are thinking about all of our little client computers that are going to be receiving dynamic IP addresses from our DHCP server whenever they request them so if they do an IP config forward slash renew the DHCP server will give them the the information now with us today as I've talked about before DHCP and DNS and Active Directory can be on entirely different servers on entirely different boxes but in a simple world in the world that most of you guys are going to be dealing with DHCP and DNS and Active Directory will be on the same server this is one thing just to keep in mind these things may be in separate places but many times they'll be on the same box the other device on the network that we need to keep in mind for today is the modem or ISP router that gets you out on to the Internet the reason that you should keep this in mind is that router or modem has DNS configurations installed or set up onto it the DNS configurations for this modem or router connect to internet-based DNS and this is what will allow you to find websites such as cnn.com or Eli the computer guy comm now normally whenever we're talking about the this this modem or this router this will be our default gateway and normally this is going to have the dot one IP address for the network so today it will be considered ten dot one dot ten dot one so this would be the default gateway and it would also be a DNS server now our server the server that has a DHCP and DNS and active directory now you can you can make this any IP address within the address scheme but I generally make it the dot two of the this network so I would make this 10.1 10.2 so the the modem the default gateway would be 10.1 dot 10.1 and the DHCP server will be 10.1 10.2 now the important thing to also realize is that we are talking about DNS so one of your DNS servers will be 10.1 10.1 and your your local server will be 10.1 10.2 why this is important is remember what DNS DNS is what resolves host names and domain names to IP addresses so when I set up the DHCP configurations what I will do is I will make 10 110 to the primary DNS server and 10.1 10.1 the secondary DNS server so when a computer tries to find a hostname it will first go to our primary server and if it doesn't find it there it will go up to that ISP modem or the router if it's trying to go off to cnn.com this is one of the things that you have to think about before you actually start setting up you or your DHCP scopes is you have to get an idea of what IP addresses you want to give out what the what different devices on the networks what IP addresses they should have so on and so forth so if you have a lot of networking equipment that needs their own static IP address you need to keep that in mind before you set up your your DHCP cease DHCP scopes so this is the first thing that we have to think about so you have your you have your router your your your ISP modem that is your default gateway that's what gets the the local computers off of the local area network and out into the cloud out into the Internet and then you have your server that today and generally will have DHCP and Active Directory and DNS and that is there to provide those services again I always put dot 1 as your default gateway and then this primary server I generally put is dot 2 you can choose whatever you want that bad that's what that's what I personally choose but you should start to come down with a pattern for for how you address different devices that need static IP addresses so for me I always made the dot 1 address was the default gateway and then between dot 2 and dot 10 I always made those the servers on the network dot 11.20 was the networking equipment 21 2.30 were generally the printers and network printers so in a small environment in a business with less than 100 users those were the static addresses that I would use again this is just something that you have to think about so now that we have that in our head let's actually go over to the computer so I can show you how to do these configurations so the first thing that we need to do is we need to make sure that the server itself already has a static IP address so if there's one thing on the network that needs a static IP address it is the server itself so what we're going to do is in Windows 2012 world it's all convoluted so we go up to the right hand corner and we hover and we hover over area until the search thing shows up I click on search and then what I'm going to type in is I want to type in network then I will go to settings and then I go to what shows here it says you network connections so this will show us our network connections now as we can see I have the Ethernet connection on here and so what I can do is I can right-click this I can go to properties I can go down to TCP IP version 4 so today we're only worrying about version 4 I know everybody says tcp/ip 6 is right on the horizon it's gonna be here tomorrow you should be deploying network systems for tcp/ip 6 tomorrow because it's going to be here and I can tell you they've been saying that for for 15 years so so TCP IP version 6 will be here at some point but we are not messing with it today we are only dealing with TCP IP version 4 so we're going to go to properties and we can see that I've already set up the static information for this particular server so the IP address is 10 dot one dot ten dot - I gave it to fifty-five dot 0 dot 0 dot 0 subnet default gateway 10.1 10.1 then the DNS server so remember I actually have to set these DNS servers up on this server so 10.1 10.2 we haven't done the class yet but I will configure DNS on this server when we do that class so I want the preferred DNS to be this server itself and then the alternate DNS server will be that router so if this server is trying to find a local computers let's say PC - it will look to itself to find the IP information for that computer if this this server is trying to get out - let's say cnn.com it will look to the to the ISP modem or to the router for that information so you just put in the static information here whatever it is that I said ten dot one dot ten is just an easy one to use and you get a whole bunch of IP addresses if you want to use so then you hit ok and you get close and then you get close now from here what we're going to do is we're going to go down to lower left-hand corner and click on server manager so server manager is where we're going to be able to do a lot of things on our server now what we're going to do is we can see over in the left hand corner it says DHCP but if we click on this it's not going to really give us much that we can do anything with right now but it will say configuration required for DHCP server at the server so this this servers name is in fact server so what we need to do is this is telling us we need to configure the DHCP information for the server so what we do is we go up to tools click on Tools and this gives us all the tools in order to configure our server with the services that are currently installed on it so what we're looking for is DHCP since we've already installed DHCP we now have this management console that will allow us to manage DHCP now we click on that and we get one of the beautiful MMC's Microsoft management consoles so these are things that if you're not used to well you'll get used to pretty quick so these are the consoles that we use to administer all these these type different types of services we'll see it's DHCP and then we'll see that we have one server here so server et Cie t-dot-com so again the computer's name this servers name is server and I set this up to be the domain of eat ECG comm you can now see you also have the tcp/ip version for information and version six information again we're not going to mess with version six because I don't know will mess with it once it comes now you'll see that there are a lot of there there are a couple of different options here so we have server options we have policies we have filters so on and so forth again these go into complicated things that we are not going to deal with today we are going to just deal with setting up a basic DHCP server so in order to do that what we can do is we go up to where it says IP version 4 and then we right right click on it and then from here we can see that there's an option for a new scope so as we talked about in the introduction to DHCP class the scope is is is that the pool of IP addresses that this server will be able to automatically assign so all we're going to be doing is doing the new scope again as I've said you see there's a whole bunch of stuff here and we are just going to ignore all that I'm just going to go to new scope and this will send us to through a wizard so all we do is we click Next and then it's going to say what is the name of this scope so this is just a basic scope the generic scope so I will call it basic you can call it whatever you like and then you click Next now it's asking you what is the scope so we have to remember what our IP addresses so 10.1 10.1 10.1 dot 10.2 so if I'm doing a scope let's say do ten dot one dot ten dot 100 and then the end of the scope is 10.1 10 dot 200 so I'm basically allowing this to give out a hundred 100 different IP addresses between 10 dot one dot ten dot 110 dot one dot 200 so it may give out ten dot one dot ten dot 100 or 105 or 125 but it will not give out a dot ten and it will not give - ten will only give out addresses between 100 and 200 then it's going to ask you for the subnet mask length again this goes back to what you decide I would say right now just leave it as it is and click Next now what is going to be asking you is what is there a range in here of IP addresses you want to exclude from the pool for like whatever reason are there addresses that you at the IP addresses that you want to exclude that's up to you again I generally would make sure that all the the IP addresses that need to be excluded would simply not be within the scope to begin with but you know again this is art you decide what you do I'm just going to not put anything here and click Next now again as I talked about the introduction to DHCP class when IP addresses are given out they're given out leased out for a certain amount of time again art and science so it defaults to eight days depending on what environment you are in you may want this to be longer or shorter if you are in an environment such as a call center environment you may put this eight days as frankly fine even if in the hit call center but let's say it's a call center environment we have a thousand computers that are always basically just sitting there they never leave the premises you might be able to put this up to thirty days on the other hand if you have an internet cafe or in an enterprise environment let's say you have an office where a lot of salespeople are continuously coming in and out so a lot of businesses have salespeople they may have hundreds or thousands of sales people that may stream in and out of a headquarters office so they're continuously pulling IP addresses so that they can get on the network in an environment like that you may want to put this down two hours you may want to put this down to like six hours to make sure all of those people that are coming in and out they don't eat up all of your IP addresses but again at the end of the day that's all an art what you decide to do I will leave it at eight days and click Next now it's going to say do you want to configure the options so the options are where you tell it where the and s servers are that type of stuff so I would say yes configure the options now but next so now it's asking you for what is the default gateway hopefully you guys know what the default gateway is you know that's the router that's the ISP modem so as I said 10.1 10.1 is the default gateway so in the windows world you can actually give it more default gateways but in a small environment I only have one so this is how you would get off the network and click Next so it's asking the parent domain so that's eat ECG comm and then it's asking to add a DNS servers and these are the DNS servers that will be given out with a DHCP addresses so I already have the DNS servers in here so 10.1 10.2 is a primary 10.1 10.1 it is the secondary just to show you if I wanted to add one so I can remove a server or I can type in the address and add it now since the DNS server hasn't actually been set up on this particular server yet this is actually going to fail out but if the DNS server was set up on the server then it would recognize that and we'll be fine so you can move these up or down I will move 10.1 10.2 so that is this server up as the primary because this will be a DNS server in the future and I want it to be the primary then we go next then we've got wind servers do you have wins who uses wins um if in fact you have wins set up for some reason for some legacy really old legacy client you can set up that information here again I haven't seen wins in quite a long time but if you do you can set that up here and now finally you get to the end and it says do you want to activate this scope now so we can't really say yes so you just say yes and finish now as you can see we have the scopes we have the scope basic and then we have some additional things so it says the address pool it says address leases it's the reservations scope options policies that we'll get into later all of this information is here so basically we have set up a basic scope now so if we go down and we click on address leases and I go over to one of my other computers and do renew oops there we go it renewed and I do refresh and so you can see I have a client computer on the network that just pulled an IP address from this DHCP server 10.1 dot ten dot 100 and this is the name of it lease expiration type unique ID so on and so forth so if you had a hundred or a thousand or just more computers on the network pulling DHCP addresses you would start to see all of that information here now up on the DHCP server on the server itself we can right-click and under tasks again sometimes in the windows world or any server world you have to restart services now what I found with DHCP server on Windows Server 2012 is it's pretty responsive basically you set it up and you don't have to restart the service but for some reason if you had to start stop or restart the DHCP server service you would right-click on the server you would go to all tasks and then you would you know stop pause restart so you can do that here so some of you guys some of the quote unquote pros always like to restart services whenever they change configurations you know you can do that that's up to you and that's basically all there is to setting up the DHCP server on a Windows 2012 server so so I basically I had I had this server connected into a switch I had a different computer and you saw all I had to do was renew the IP address and all of a sudden you know the IP address was pulled from the scope on the server now the very important thing I have talked about this like 500 times by this point but I will at fight for the 500 and first time is remember if you are using a small office/home office router that you turn off DHCP on this router remember if you have multiple DHCP servers on your local area network that are not communicating with each other you will create a horrendous mess especially in the Microsoft world so before you set up the DHCP server on your on your server Windows 2012 server make sure you turn it off and in your router so whether it's the ISP modem whether it's your router whatever you have make sure that DHCP server is turned off essentially all you normally do is you go in through the web interface you find the DHCP component you click off you click save settings and then it's off but you have to make sure that the DHCP server is off on this thing or it will cause all kinds of problems again this was a simple basic class for DHCP on Windows Server 2012 and this is what most of you guys will have to know and will allow us to move forward to set up DNS to set up Active Directory and start building things out again once you get into the enterprise world there are very complicated things that you can do but as I have said that's why you go out and buy a book like this Windows Server 2012 unleashed by Sam's and this will give you all the information on all the fancy things that you can do with Windows 2012 server DHCP service but for now this gives us the scope so we create the scope of IP addresses so the server can give out those IP addresses we tell that scope what the default gateway is what the DNS servers should be so all of that information is given out to the clients now I will tell you having actually done this for a while if you set up your DHCP server and then all the client computers on the network are having wacky communication problems it's probably because you fat-fingered something you messed up the IP information when you were plugging it in either you put in the wrong default gateway or you put in the wrong DNS settings if you go back and change those settings everything should work out pretty good for you and the final thing just to remember is again since your server is giving out VA ACP addresses you have to make sure that it has a static IP address for itself so you set up the static IP address in the DHCP server then you set up the scopes so on and so forth when it goes in to actually coming up with your your TCP IP structure that's that that's all up to you I mean you can use 10.1 10x with a 255.0.0.0 subnet mask you can use a 192.168.1.2 555 5.25 5.0 subnet those are the types of things that you'll just you kind of have to figure out on your own you have to side you know that that's where it gets into a bit of the art but it will tell you if you're creating your network 192.168.1.0 five five dot 255 dot 255 dot zero that will give you 254 IP addresses that you can deal with it should be good if you use the the 1010 dot X dot X dot X with a 255 a Class A subnet then that gives you I don't know a lot millions I think of different IP addresses you can use again that goes into you understanding tcp/ip and I die P address schemes that's way beyond the scope of this class so as you know I'm Eli the computer guy this was basic basic DHCP setup on Windows Server 2012 again if you have no clue what the hell I just talked about I have an introduction to T a DHCP class that I did before we have the whole series on Windows Server 2012 before this you know we have classes on tcp/ip again this is definitely definitely definitely definitely not a beginner course so so if you don't understand what I talked about go learn tcp/ip and a bit about Windows Server and then maybe you understand what's going on so as always I enjoy teaching this class and I look forward to the next book
Info
Channel: Eli the Computer Guy
Views: 738,074
Rating: 4.9319649 out of 5
Keywords: Eli, the, Computer, Guy
Id: ZfsXh_LSkgE
Channel Id: undefined
Length: 26min 49sec (1609 seconds)
Published: Thu Mar 14 2013
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.