Transcript for:
Understanding DHCP Server Configuration

in a previous video we described the dhcp process as seen from the perspective of the workstation but what are the configuration settings that we need to make inside of the dhcp server itself well first we'll need an ip address range we'll need to understand exactly what ip addresses will be assigned by this particular dhcp server and we'll need the associated subnet mask for that ip address range we'll also need to determine how long a workstation can hold on to the same ip address will make that configuration setting under the lease duration and we'll also want to configure the dhcp server with dns server settings so that your in stations can be configured with an appropriate dns server ip address a default gateway setting and if you're using things like voice over ip servers be nice to include the options for that along with all of the other ip configurations when the dhcp server assigns an ip address to a device it's choosing an available address from a pool of addresses that you've previously configured inside of the dhcp server for example you might have one subnet pool that is 192.168.1.0.20 which means anything in that subnet can be assigned as an ip address from the dhcp server these ip scopes are usually a very large contiguous range of ip addresses and your dhcp server simply pulls from any available address inside of that range but there may be times when you'd like to set a dhcp reservation or exclude certain ip addresses from that range and you can certainly create those exceptions within the dhcp server here's a dhcp server that's running on a windows server device this specifies the scope of 165.245.44.0 and underneath that scope we have a series of address pools so we know what ip addresses will be assigned we have address leases so we can view what i p addresses have previously been assigned we can configure ip reservations so if a certain device should always receive the same ip address we can configure that in that section of the dhcp server and we have scope options which allow us to configure additional parameters for example we might want to add the ip address of a voice over ip gateway so that all of the devices on your network would know exactly what ip address to contact if you're using dhcp at home or in a small office your dhcp server may not be on a windows device it may be on an embedded router this is the web front end to an embedded router that shows that the dhcp server is enabled the start address on this network is 10.10.10.2 and the end address is 10.10.10.100 so we can expect this dhcp server to assign addresses starting with the dot 2 all the way up to dot 100 this dhcp server specifies the address lease time in seconds which is a bit unusual but if we know that 86 400 seconds is the same as 24 hours this configuration works just fine the gateway is configured as 10.10.10.1 and we have dns configurations that will also be assigned to our local devices so any device on your network that needs an ip address when it starts up will receive an address from this dhcp server with these specific configuration values for most devices connecting to a network and receiving a dhcp address they're receiving a dynamic assignment this means they could receive any ip address from that large pool of ip addresses that we've previously configured and after your lease period has timed out those addresses will be available for another person who connects to the network many dhcp servers will also have an automatic assignment where they will keep a list of everyone who's previously connected to the network and if you happen to connect to the network again after a short period of time away it will remember your previous assignment and if that ip address is still available it will assign you the same ip address you had originally you can also take this one step further by configuring a dhcp address reservation which means that a device connecting to the network will always receive that same ip address and that ip address will never be given to a different device on the network this is usually configured based on the mac address or media access control address which is the burned in address on a network interface card every device has a unique mac address and that allows us to associate a device with a particular ip address you might also see this referred to as a static dhcp assignment static dhcp a static assignment or an ip reservation here are some dhcp reservations in my dhcp server on a soho network you can see a mac address is listed along with an ip address and the host name for this device is prometheus i have another device listed by mac address you can see that is a different mac address in the original it gets a different ip address and the host name for that device is odyssey this means that when prometheus starts up it will always receive the ip address of 192.168.1.6 and that ip address will never be assigned to another device on this network when a device is dynamically assigned a dhcp address it's a temporary assignment after a certain amount of time that device must check in again to the dhcp server to let it know that it is still working with that same ip address or the lease will timeout and that ip address will be available for others the amount of time in that lease is determined by the configuration within your dhcp server we saw on my dhcp server the lease times are 24 hours but you can administratively configure that to be any value you'd like there's also a reallocation process that can occur if you reboot a device or you leave the network and then return to the network it will renew that lease and continue using the same ip address and there may be times when you would like to administratively or manually release that ip address hand it back to the dhcp server and then either leave the network or request a new address from the dhcp server when a device receives an ip address from a dhcp server there's a timer that starts that is the length of the lease time that's configured for that dhcp server we mentioned earlier that once that lease timer has expired that ip address is returned to the dhcp server and it can be assigned to others but during that lease process there are other timers you should know about one is called the t1 timer this checks in with the dhcp server halfway through the lease time so if your lease time was eight days this t1 timer which is 50 percent of the lease time by default will check in after four days and let the dhcp server know that we would like to keep this ip address for another lease duration at that point the timer resets to eight days and we start counting down again there may be times though that a dhcp server is unavailable and you're not able to check in with that t1 timer after four days if that dhcp server never returns to the network then the lease time continues to count down and once you get to 7 8 of that lease time or 87 and a half percent of that lease time it will try rebinding with any other dhcp server that you might have on the network so that it can retain that ip address this is the t2 timer and it gives every device on the network a chance to keep its ip address by rebinding with a redundant dhcp server let's look visually at how this dhcp process might occur let's say in this particular network the lease time is 8 days in length that means your t1 timer if it's 50 percent of that time would be four days and a seven eighths timer of t2 would be seven days in length so let's look at this device which has been given an ip address and each one of these blocks is a single day somewhere after the fourth day or after 50 percent of this time has gone by and the t1 timer has gone off it will want to renew this ip address by contacting the dhcp server and letting it know that it would like to renew that particular lease once that process is complete the timer restarts and we have another dhcp lease process that will occur however during the second lease process our original dhcp server is no longer available so we're not able to check in after that t1 timer has completed this means that we'll go all the way into the rebinding period with the t2 timer or in this particular case after seven days have elapsed once we're able to contact that redundant dhcp server after the t2 timer has expired the process then begins again starting at day one and we have another eight days in our lease you