chapter 1 DHCP Flashcards

1
Q

Describe DHCP

A

DHCP is a communication protocol that lets network administrators centrally manage and automate the assignment of Internet Protocol (IP) addresses in an organization’s network.

Basically it frees a network administrator from having to manually configure each host connected to the network.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the Purpose of DHCP

A

To deliver host-specific configuration parameters from a DHCP server to a host.

Allocation of network addresses to hosts.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Give a detailed overview of DHCP (2)

A

DHCP is an application-layer protocol in the TCP/IP model.

DHCP is a UDP Service and it runs on port 67 and 68.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Name the 3 Mechanisms DHCP supports for IP address allocation (3)

A

Automatic allocation
Dynamic allocation
Manual allocation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Describe IP Address Allocation (3)

A

Manual Allocation: The administrator assigns a pre-allocated IP address to the client and DHCP only communicates the IP address to the device.
Automatic Allocation: DHCP assigns a static IP address permanently to a device, An IP address, once associated with a MAC address, is permanently associated with it until the server’s administrator intervenes.
Dynamic Allocation: DHCP dynamically assigns, or leases, an IP address from a pool of addresses for a limited period of time chosen by the server, or until the client tells the DHCP server that it no longer needs the address.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Name the Components of DHCP (3)

A

DHCP Server

DHCP Client

DHCP Relay Agent
Used to facilitate the conversation if the DHCP server and the DHCP client are on different IP subnet.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

DHCP must: (4)

A
  • Guarantee unique network address.
  • Retain DHCP client configuration across a client reboot.
  • Allow automated assignment of configuration parameters to new clients.
  • Support fixed allocation of configuration parameters to specific clients.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
Describe DHCP Messages
DHCPDISCOVER
DHCPOFFER
DHCPREQUEST
DHCPOFFER
A

DHCPDISCOVER - Client broadcast to locate available servers.

DHCPOFFER - Server to the client in response to a DHCPDISCOVER. The server uses the DHCPOFFER message to “offer” an IP address, lease time, and network configuration parameters to the client.

DHCPREQUEST Sent by the client to the server in response to a DHCPOFFER. The “server identifier” field of the DHCPREQUEST indicates which server the client has chosen to further interact with. All servers that sent the client a DHCPOFFER receive the DHCPREQUEST. The ones that are not chosen simply use the message as notification that they have not been chosen. The server that is chosen responds to the request, either with a DHCPACK or a DHCPNAK.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Describe DHCP Messages
DHCPACK
DHCPNAK

A

DHCPACK - Server to the client in response to a DHCPREQUEST. The DHCPACK indicates that the server “acknowledges” the request, and the DHCPACK message contains fields which indicate the IP address, lease time, and network configuration parameters that the client is being configured with.

DHCPNAK - Server to the client in response to a DHCPREQUEST. The DHCPNAK indicates that the server does not acknowledge the request, and does not agree to lease the specified IP address.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Describe DHCP Messages
DHCPRELEASE
DHCPDECLINE

A

DHCPRELEASE - Client to server to give up an IP address lease. If the client knows that it no longer needs an IP address, it should send the server a DHCPRELEASE.

DHCPDECLINE - Client to server in response to a DHCPACK. If the client receives a DHCPACK, but, for some reason, is not satisfied with the lease time and/or network parameters in the message, it can send the server a DHCPDECLINE indicating that it refuses to use the IP address.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

4 steps of Dynamic allocation of a network address

Between a DCHP Client and DHCP Server.

A
  1. Discover
  2. Offer
  3. Request
  4. Acknowledge
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Even flow diagram

2 Cases

A

Client-server interaction while allocating a new network address

Client-server interaction while reusing previously allocated network address

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Describe DHCP Relay Agent (2)

A

Typically the clients and DHCP servers are not in the same network segment.

Network administrators can configure a local router to forward DHCP packets to a DHCP server from a different subnet.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Describe IP helper-address (Relay)

A

The router needs to be configured in such a way that whenever it receives a DHCP broadcast from a device that is not in the same network segment as the DHCP servers it forwards the packet to the DHCP servers.

On cisco routers you can configure the nearest interface to the device with ip helper-address command

Router(config)# interface fa0
Router(config-if)# ip helper-address 10.1.1.5

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Describe Additional DHCP Parameters

A
In addition to IP address and subnet mask information, DHCP can provide the following protocol parameters:
	• Default Gateway
	• Domain Name and DNS servers
	• Time Servers
	• WINS servers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

describe Configuring DHCP

3

A

Creating a pool:
Router(config)# ip dhcp pool MYPOOL
Router(dhcp-config)# network 192.168.1.0 255.255.255.0

Excluding specific addresses from being leased:
Router(config)# ip dhcp excluded-address 192.168.1.1
Router Router(config)# ip dhcp excluded-address 192.168.1.5 192.168.1.10

Specifying the duration of the DHCP lease:
Router(config)# ip dhcp pool MYPOOL
Router(dhcp-config)# lease 1 12

17
Q

List the Drawbacks of DHCP (6)

A

When DHCP server is unavailable, client is unable to access enterprises network

The machine name does not change when it gets a newIP address

Hard to keep information on and used IP addresses

Uses UDP, an unreliable and insecure protocol.

When connecting to a network, the user is not required to provide credentials in order to obtain a lease.

Malicious users with physical access to the DHCP-enabled network can instigate a denial-of-service attack on DHCP servers by requesting many leases from the server, thereby depleting the number of leases that are available to other DHCP clients