WindowsServer2016-Notes-Part2-DHCP and DNS
WindowsServer2016-Notes-Part2-DHCP and DNS
WindowsServer2016-Notes-Part2-DHCP and DNS
> MAC Address: Media Access Controller; Unique identity of NIC assigned by manufacturer of NIC
Ex:
d0-23-bc-8c-f8-6a
d0:23:bc:8c:f8:6a
d023bc8cf86a
100.10.10.202
192.9.7.102
190.150.28.16
168.150.31.12
190.160.40.13
159.160.13.7
198.152.130.19
150.150.150.150
8.8.8.8
123.88.77.66
1.1.1.2
254.254.254.254 (invalid; but in range)
0 0 0 0
to to to to -> Full Range of IPv4 = more than 4.2 billion
255 255 255 255 Full Range cannot be assigned
___.___.___.___
256x256x256x256 = 2^32 => 429,49,67,296
2^8x2^8x2^8x2^8
00000000 = 0
....
11111111 = 255
0.0.0.0
0.0.0.1
.....
0.0.0.255
0.0.1.0
0.0.1.1
......
0.0.1.255
0.0.2.0
...
...
...
0.0.255.255
0.1.0.0
....
....
....
0.2.255.255
...
...
...
0.255.255.255
1.0.0.0
....
....
2.0.0.0
....
....
255.255.255.255
Valid Range of IPv4 Addresses:
1 0 0 0
to to to to -> Valid Range of IPv4 = more than 3.7 billion
223 255 255 255
___.___.___.___
223x256x256x256 => 374,13,19,168
--------------------------------------------
0 not valid at all
1 to 255 => 5 Classes
1 to 223 => Class A, B, C => Valid & Assignable
224 to 255 => Class D, E
=> Class D & E are not valid to assign; Used in MultiCast Communications
--------------------------------------------
1.4.52.64
255.0.0.0
10.10.10.203/8
125.255.255.201/8
140.24.11.251
255.255.0.0
172.160.13.199/16
180.1.1.11/16
Class C: From 192.0.0.0
.....
To 223.255.255.255
192.168.0.1
255.255.255.0
200.200.200.200/24
220.1.1.151/24
Subnet Mask is the division of 32-bits IPv4 Address into two sections:
NW ID bits and Host ID bits
IPv4 Address with subnet mask that matches its class default is called "Classful IP Address"
Ex:
16.21.11.141/8
IPv4 Address with subnet mask that does not match its class default is called "Classless IP Address"
Ex:
200.10.10.24/14
DHCP Server assigns IP Address and related information to the requesting client NIC.
Procedure by which Client System NIC requests & obtains IP Address from DHCP Server:
D -> Discover Packet broadcasted by NIC of Client System
O -> Offer Packet returned by DHCP Server to Client System
R -> Request Packet sent by Client System NIC to DHCP Server
A -> Acknowledgement Packet sent by DHCP Server to confirm assigned IP Address
DHCP Scope:
* > Scope Name
* > Range of IP Addresses to be distributed
* > Subnet Mask
* > Lease Duration
> Exclusions & Delay
> Default Gateway (Router's IP Address)
> Domain Name for Network
> DNS Server IP
> WINS Server IP (Windows Information Name Server: Used for Name Resolution, with manual
creation of records)
APIPA:
169.254.0.0
... -> APIPA (Automatic Private IP Address)
169.254.255.255 assigned to a NIC when it is setup for obtaining
IP Address automatically from a DHCP Service,
but no DHCP Service responded before 'timeout' period
DNS Service: Domain Name System: DNS Server is used for "Name Resolution"
DNS Server replies with the corresponding IP Address of a
Hostname/URL/FQDN/DomainName sent to it (Forward Lookup)
DNS Server replies with the corresponding Hostname/URL/FQDN/DomainName
of an IP Address sent to it (Reverse Lookup)
DNS Records:
A (Host) Hostname-IPv4
AAAA (Host) Hostname-IPv6
NS (Name Server -> DNS Servers)
SOA (Start Of Authority -> DC Servers)
MX (Mail Exchange Server)
CNAME (Alias -> Short name to identify long FQDN)
PTR (Pointer Records for "Reverse Lookup")
Suppose 'xyz' Company has below list of IT Infra Computing Systems in the Network:
105 Servers (2 DC; 1 DNS; 2 Mail Servers; 100 Member Servers)
50 NW Printers
5,000 PCs
BitLocker can be used to encrypt a Hard Disk Volume to protect data in case of
lost/stolen Disks from PCs or Servers
==============================================
Practice of the day:
** Practice:
> Numeric to Binary Conversion
> Binary to Numeric Conversion
> Slash Value to Subnet Mask Calculation
> Find IP Range & Total Count for an example IP Address
> Find IP Range & Total Count for an example IP Address with Slash Value other than 8, 16 or 24
> Find Network Address & Broadcast Address of a Range of IP Address
> Install Windows Server 2016 -> Standard Edition (Desktop Experience with GUI)
> Partition Size -> 40960 MB
-> Right-Click 'FQDN of DHCP Server' in DHCP Tool -> All Tasks -> Restart
-> Check & Explore 'Address Pool', 'Address Leases', 'Scope Options'
** Go To Windows 10 PC -> Login as any Local Admin or Domain User with Admin Rights
-> ncpa.cpl -> Right-Click NW Adapter -> Disable
-> Right-Click NW Adapter -> Properties -> IPv4 Properties
-> 'Obtain an IP Address automatically' & 'Obtain DNS Server Address automatically'
-> OK -> Close
-> Right-Click NW Adapter -> Enable
-> Right-Click NW Adapter -> Status -> Details
-> Check if PC has received a dynamic IP Address from the new DHCP Server
** DHCP Reservations:
-> Go To Windows 10 PC -> Login as any Local Admin or Domain User with Admin Rights
-> ncpa.cpl -> Right-Click NW Adapter -> Status -> Details
-> Make a note of MAC Address from Details "Physical Address"
-> Go To DHCP Server -> Login as 'dhcpadmin' -> Server Manager -> Tools -> DHCP Tool
-> Expand Server Name -> Expand 'IPv4' -> Expand Scope
-> Right-Click 'Reservations' -> 'New Reservation'
-> Give Reservation Name, Reservation IPv4 Address from same range
-> Mention the MAC Address of the NIC Card of Win 10 PC -> OK
-> Go To Windows 10 PC -> Login as any Local Admin or Domain User with Admin Rights
-> ncpa.cpl -> Right-Click NW Adapter -> Disable -> Refresh -> Enable
-> Right-Click NW Adapter -> Status -> Details
-> Check if PC has received Reserved IP Address from the DHCP Server
** DHCP Scope Exclusions:
-> Go To DHCP Server -> Login as 'dhcpadmin' -> Server Manager -> Tools -> DHCP Tool
-> Expand Server Name -> Expand 'IPv4' -> Expand 'Scope'
-> Right-Click 'Address Pool' -> 'New Exclusion Range'
-> Give 'Start' and 'End' of an Exclusion Range of IP Addresses
that should not be distributed to client NICs
-> Go To Windows 10 PC -> Login as any Local Admin or Domain User with Admin Rights
-> ncpa.cpl -> Right-Click NW Adapter -> Disable -> Refresh -> Enable
-> Right-Click NW Adapter -> Status -> Details
-> Check if PC has received next available IP Address from the DHCP Server
and not from Exclusion Range
** DNS Server:
> Open Server Manager in DC Server -> Tools -> DNS
-> Expand DNS Server Hostname -> Forward Lookup Zones -> 'ctrls.com' Domain
-> Check 'DNS Records' created by DNS Server in the Domain
Host (A)
Start of Authority (SOA)
Name Server (NS)
==============================================