{"id":1367,"date":"2018-04-20T02:34:25","date_gmt":"2018-04-20T02:34:25","guid":{"rendered":"http:\/\/wiki.thomasandsofia.com\/?p=1367"},"modified":"2018-04-27T10:41:40","modified_gmt":"2018-04-27T10:41:40","slug":"dynamic-host-configuration-protocol-dhcp-server-administration","status":"publish","type":"post","link":"https:\/\/wiki.thomasandsofia.com\/?p=1367","title":{"rendered":"Dynamic Host Configuration Protocol (DHCP) Server Administration"},"content":{"rendered":"<p><a href=\"http:\/\/wiki.thomasandsofia.com\/2018\/04\/18\/microsoft-windows-server-2016\/\">Main Menu<\/a><\/p>\n<h2>Disable VirtualBox DHCP<\/h2>\n<p>17: <a href=\"https:\/\/www.udemy.com\/windows-server-2016\/learn\/v4\/t\/lecture\/7039744?start=0\">Lame<\/a><\/p>\n<h2>What is DHCP?<\/h2>\n<p>18: <a href=\"https:\/\/www.udemy.com\/windows-server-2016\/learn\/v4\/t\/lecture\/5814156?start=0\" target=\"_blank\" rel=\"noopener\">https:\/\/www.udemy.com\/windows-server-2016\/learn\/v4\/t\/lecture\/5814156?start=0<\/a><\/p>\n<p><a href=\"http:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2018\/04\/What-is-DHCP-Handout.pdf\">What-is-DHCP-Handout<\/a><\/p>\n<h2>What is DHCP<\/h2>\n<ul>\n<li>Dynamic Host Configuration Protocol\n<ul>\n<li>Windows Server Role<\/li>\n<\/ul>\n<\/li>\n<li>Allows automatic TCP\/IP configuration\n<ul>\n<li>IP<\/li>\n<li>Subnet<\/li>\n<li>Gateway<\/li>\n<\/ul>\n<\/li>\n<li>IPs are &#8216;leased&#8217;<\/li>\n<li>prevents mistakes<\/li>\n<\/ul>\n<h2>DHCP Types<\/h2>\n<ul>\n<li>DHCP Exclusion\n<ul>\n<li>Cannot issue<\/li>\n<li>No expiration<\/li>\n<\/ul>\n<\/li>\n<li>DHCP Reservation\n<ul>\n<li>Reserved for other persons or computers<\/li>\n<li>No expiration<\/li>\n<\/ul>\n<\/li>\n<li>Available\n<ul>\n<li>Leased &#8211; default 8 days.<\/li>\n<li>May get same IP after expiration (extension)<\/li>\n<li>or a new IP<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>Scope<\/h2>\n<ul>\n<li>Specify the range available\n<ul>\n<li>192.168.1.100-200<\/li>\n<li>Only 1 range per subnet!<\/li>\n<\/ul>\n<\/li>\n<li>Exclusions\n<ul>\n<li>192.168.1.105-110<\/li>\n<\/ul>\n<\/li>\n<li>Reservations\n<ul>\n<li>Based on MAC addresses<\/li>\n<li>192.168.1.10 reserved for 1F-B8-DD-92-5A-5F<\/li>\n<\/ul>\n<\/li>\n<li>Private IP address &#8211; 169.254.x.x\n<ul>\n<li>No DHCP server found on network<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>DHCP Example<\/h2>\n<ul>\n<li>Workstation configured for DHCP is not plugged into the network.\n<ul>\n<li>Assigns itself 169.254.x.x address<\/li>\n<\/ul>\n<\/li>\n<li>Plugged into the switch\n<ul>\n<li>Sends a DHCP Discover Request to entire network.<\/li>\n<\/ul>\n<\/li>\n<li>DHCP server receive request and send an &#8216;Offer&#8217;\n<ul>\n<li>Offer includes all TCP\/IP settings\n<ul>\n<li>IP<\/li>\n<li>Subnet<\/li>\n<li>DNS<\/li>\n<li>Gateway<\/li>\n<li>etc<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>Workstation sends DHCP Request\n<ul>\n<li>&#8220;I want to keep these settings&#8221;<\/li>\n<\/ul>\n<\/li>\n<li>Server replies with &#8216;Ack&#8217; saying &#8220;Okay, they are yours&#8221;<\/li>\n<li>DORA\n<ul>\n<li>Discover<\/li>\n<li>Offer<\/li>\n<li>Request<\/li>\n<li>Acknowledgement<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>Why use Static IPs?<\/h2>\n<ul>\n<li>DNS Servers\n<ul>\n<li>You would need to continually update each server&#8217;s settings!<\/li>\n<\/ul>\n<\/li>\n<li>Domain Controllers<\/li>\n<li>Printers \/ Scanners<\/li>\n<li>Any server providing a service<\/li>\n<li>DHCP Reservations same as static IP?\n<ul>\n<li>DHCP Server crashes<\/li>\n<li>Workstations with Static IP would not lose connectivity<\/li>\n<li>Workstations with Reservations will lose connectivity AFTER their lease expires<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h1>Adding the DHCP Server Role<\/h1>\n<p>19: <a href=\"https:\/\/www.udemy.com\/windows-server-2016\/learn\/v4\/t\/lecture\/5814154?start=0\" target=\"_blank\" rel=\"noopener\">https:\/\/www.udemy.com\/windows-server-2016\/learn\/v4\/t\/lecture\/5814154?start=0<\/a><\/p>\n<h2>Install the Role<\/h2>\n<ul>\n<li>Server Manager &gt; Manage &gt; Add roles and features<\/li>\n<li>Click through to &#8220;Select server roles&#8221;<\/li>\n<li>Select [X] DHCP Server<\/li>\n<li>Click through [Install]<\/li>\n<li>Notification Flag -&gt; Complete DHCP configuration<\/li>\n<\/ul>\n<h2>Access the DHCP Server Role<\/h2>\n<ul>\n<li>Tools &gt; DHCP<\/li>\n<\/ul>\n<h1>DHCP Scope and Exclustions<\/h1>\n<p>20: <a href=\"https:\/\/www.udemy.com\/windows-server-2016\/learn\/v4\/t\/lecture\/6054262?start=0\" target=\"_blank\" rel=\"noopener\">https:\/\/www.udemy.com\/windows-server-2016\/learn\/v4\/t\/lecture\/6054262?start=0<\/a><\/p>\n<h2>Scope<\/h2>\n<ul>\n<li>Each subnet can only have 1 scope with a continuous range of IP addresses\n<ul>\n<li>Example: 192.168.1.20 &#8211; 192.168.1.220<\/li>\n<\/ul>\n<\/li>\n<li>Tools &gt; DHCP &gt; server.domain.com &gt; Right click IPv4 &gt; New Scope &#8230;\n<ul>\n<li>Scope Name: Up to you&#8230;.\n<ul>\n<li>Workstations<\/li>\n<\/ul>\n<\/li>\n<li>Description: Good idea to use the IP address\/range\n<ul>\n<li>172.16.0.10 &#8211; 250<\/li>\n<\/ul>\n<\/li>\n<li>[Next &gt;]<\/li>\n<\/ul>\n<\/li>\n<li>IP Address Range\n<ul>\n<li>Start IP<\/li>\n<li>End IP<\/li>\n<li>Length &amp; Subnet Mask\n<ul>\n<li>Automatically calculated based on the IP address.<\/li>\n<li>I had to adjust mine because it automatically assumed my 172 address was a \/16 \ud83d\ude41<\/li>\n<\/ul>\n<\/li>\n<li>[Next &gt;]<\/li>\n<\/ul>\n<\/li>\n<li>Add Exclusions and Delay\n<ul>\n<li>Start and End IPs of a range of IPs to exclude.\n<ul>\n<li>You can add multiple exclusions to a range.<\/li>\n<\/ul>\n<\/li>\n<li>Delay setting was ignored and not discussed.<\/li>\n<li>[Next &gt;]<\/li>\n<\/ul>\n<\/li>\n<li>Lease Duration\n<ul>\n<li>How long to allow a device to keep the assigned IP\n<ul>\n<li>Default: 8 days<\/li>\n<\/ul>\n<\/li>\n<li>[Next &gt;]<\/li>\n<\/ul>\n<\/li>\n<li>Configure DHCP Options\n<ul>\n<li>(*) Yes, I want to configure these options now\n<ul>\n<li>This allows the server to also send the Default Gateway IP and other important address to the clients to auto-configure<\/li>\n<\/ul>\n<\/li>\n<li>[Next &gt;]<\/li>\n<\/ul>\n<\/li>\n<li>Router [Default Gateway]\n<ul>\n<li>Multiple IPs can be added..<\/li>\n<li>172.16.0.1<\/li>\n<li>[Next &gt;]<\/li>\n<\/ul>\n<\/li>\n<li>Domain Name and DNS Servers\n<ul>\n<li>Parent domain:\n<ul>\n<li>domain.com (auto populated)<\/li>\n<\/ul>\n<\/li>\n<li>IP Address\n<ul>\n<li>Also auto-populated with the IP of the Domain Controller<\/li>\n<\/ul>\n<\/li>\n<li>[Next &gt;]<\/li>\n<\/ul>\n<\/li>\n<li>WINS Servers\n<ul>\n<li>Similar to DNS<\/li>\n<li>Obsolete for the most part, so leave it blank<\/li>\n<li>[Next &gt;]<\/li>\n<\/ul>\n<\/li>\n<li>Activate Scope\n<ul>\n<li>Yes or No\n<ul>\n<li>(*) No<\/li>\n<\/ul>\n<\/li>\n<li>[Next &gt;]<\/li>\n<\/ul>\n<\/li>\n<li>[Finish]<\/li>\n<\/ul>\n<h2>Enable the Scope from the DHCP Manager<\/h2>\n<p>If you see the following folder icon with a red down-facing arrow, the scope has not been enabled<\/p>\n<p><a href=\"http:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2018\/04\/scope-not-enabled.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1375\" src=\"http:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2018\/04\/scope-not-enabled.png\" alt=\"\" width=\"174\" height=\"126\" srcset=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2018\/04\/scope-not-enabled.png 174w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2018\/04\/scope-not-enabled-150x109.png 150w\" sizes=\"auto, (max-width: 174px) 100vw, 174px\" \/><\/a><\/p>\n<ul>\n<li>Right click Scope &gt; Activate<\/li>\n<li>Address Pool\n<ul>\n<li>The full range of available addresses<\/li>\n<li>Any Exclusions<\/li>\n<\/ul>\n<\/li>\n<li>Address Leases\n<ul>\n<li>All computers that have received an IP from the DHCP server<\/li>\n<\/ul>\n<\/li>\n<li>Reservations\n<ul>\n<li>All computers\/devices that have a DHCP reservation<\/li>\n<\/ul>\n<\/li>\n<li>Scope Options\n<ul>\n<li>Display pre-configured details that are shared with any DHCP requesting devices<\/li>\n<li>Router<\/li>\n<li>DNS Servers<\/li>\n<li>DNS Domain name<\/li>\n<\/ul>\n<\/li>\n<li>Policies\n<ul>\n<li>Allows the admin to assign specific ip ranges to certain devices\n<ul>\n<li>printers<\/li>\n<li>ip phones<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h1>DHCP Reservations<\/h1>\n<p>21: https:\/\/www.udemy.com\/windows-server-2016\/learn\/v4\/t\/lecture\/6048010?start=0<\/p>\n<ul>\n<li>To set a reserved IP, you need the MAC address of the device.\n<ul>\n<li>C:\\ getmac<\/li>\n<li>02-BB-8D-44-3D-3C<\/li>\n<\/ul>\n<\/li>\n<li>On the DC:\n<ul>\n<li>Tools &gt; DHCP<\/li>\n<li>Expand IPv4 &gt; RClick Reservations &gt; New Reservation\n<ul>\n<li>Reservations name:<\/li>\n<li>IP address: This is the IP you are reserving from your scope<\/li>\n<li>MAC: (From above getmac command)<\/li>\n<li>Desc: whateva<\/li>\n<li>Supported types\n<ul>\n<li>(*) Both<\/li>\n<li>DHCP<\/li>\n<li>Bootp (Bootstrap Protocol)\n<ul>\n<li>Only works on boot and does not work after the client is running<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Main Menu Disable VirtualBox DHCP 17: Lame What is DHCP? 18: https:\/\/www.udemy.com\/windows-server-2016\/learn\/v4\/t\/lecture\/5814156?start=0 What-is-DHCP-Handout What is DHCP Dynamic Host Configuration Protocol Windows Server Role Allows automatic TCP\/IP configuration IP Subnet Gateway IPs are &#8216;leased&#8217; prevents mistakes DHCP Types DHCP Exclusion Cannot issue No expiration DHCP Reservation Reserved for other persons or computers No expiration Available Leased ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/wiki.thomasandsofia.com\/?p=1367\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[37],"tags":[],"class_list":["post-1367","post","type-post","status-publish","format-standard","hentry","category-microsoft-windows-server-2016"],"_links":{"self":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts\/1367","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1367"}],"version-history":[{"count":6,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts\/1367\/revisions"}],"predecessor-version":[{"id":1377,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts\/1367\/revisions\/1377"}],"wp:attachment":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1367"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1367"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1367"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}