Ch10 DHCP - Theory Flashcards
DHCP Definition
Dynamic Host Configuration Protocol
Protocol that dynamically assigns IP addresses and other network configuration information.
DHCP Address Allocation Mechanisms
- Manual Allocation
- Automatic Allocation
- Dynamic Allocation
DHCP Manual Allocation
Admin. assigns a pre-allocated IPv4 address to a client and DHCPv4 communicates only the IPv4 address to the device.
DHCP Automatic Allocation
DHCPv4 automatically assigns a static IPv4 address permanently to a device selected from a pool of available addresses.; no leases
DHCP Dynamic Allocation
Dynamically assigns (leases) an IPv4 address from a pool of addresses for a limited period of time or until the client no longer needs the address.
DHCPv4 Lease Origination Process
- DHCPDISCOVER - DHCP Discover
- DHCPOFFER - DHCP Offer
- DHCPREQUEST - DHCP Request
- DHCPACK - DHCP Acknowledgement
DHCPv4 - DHCP Discover Step
First step of lease origination where client sends out DHCPDISCOVER message over network to find DHCP servers on network using Layer 2 and Layer 3 broadcast addresses.
DHCPv4 - DHCP Offer Step
Second step of lease origination where DHCP server receives DHCPDISCOVER , reserves an available address, and sends DHCPOFFER to client system.
How is a DHCPv4 DHCPOFFER message sent?
- As a unicast message using the MAC Address of the server as the source and the MAC address of the requesting client as the destination.
DHCPv4 - DHCP Request Step
Third step of lease origination where client receives DHCPOFFER and responds with DHCPREQUEST message.
What does a DHCPv4 DHCPREQUEST Message do?
Used during Lease Origination and Lease Renewal and acts as a binding acceptance to the selected server as well as an implicit decline to any other DHCP servers that may have made an offer to the client.
DHCPv4 - DHCP Acknowledgement Step
Final step of Lease Origination where the DHCP server receives the DHCPREQUEST message from the client and responds with a DHCPACK to finalize the DHCP lease.
What 4 Things Occur during DHCPACK
- Server verifies the lease with ICMP ping to the newly assigned address to ensure it is not being used.
- Creates new ARP entry for client lease.
- Replies to client with a unicast DHCPACK message.
- Client receives DHCPACK, logs configuration information and performs ARP lookup for its new assigned address; if no reply is detected the address is considered valid and the client begins using it.
DHCPv4 Lease Renewal (2)
- DHCPREQUEST - DHCP Request
2. DHCPACK - DHCP Acknowledgement
What Protocol Do DHCPv4 Messages Use ?
UDP
Client Side Ports for Sending DHCPv4 Messsages.
UDP 68 (source) UDP 67 (destination)
Server Side Ports for Sending DHCPv4 Messages
UDP 68 (destination) UDP 67 (source)
Minimums and Maximum # of Default Gateways Definable in DHCPv4
- One minimum
2. Eight maximum.
Operation (OP) Code Message Field (3)
Specifies the type of message.
1= request message
2= reply message.
Hardware Type Message Field (4)
Identifies type of hardware used in network; same codes used in ARP messages.
1= Ethernet
15= Frame Relay
20= Serial Line