DHCP Flashcards

1
Q

What is DHCP?

A

DHCP (dynamic host configuration protocol) is used for dynamically assigning network addresses to hosts. DHCP operates on a client-server model, where a DHCP server sends configuration information to DHCP clients.

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

DHCP supports three types of address allocation, what are they?

A

DHCP supports three mechanisms for IP address allocation:

*Automatic allocation—DHCP assigns a permanent IP address to a client.

*Dynamic allocation—DHCP assigns an IP address to a client for a limited period of time (or until the client explicitly relinquishes the address).

*Manual allocation—The network administrator assigns an IP address to a client and DHCP is used simply to convey the assigned address to the client.

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

DHCP and its messages are based on what protocol?

A

DHCP is based on BOOTP (bootstrap protocol), which provides the framework for passing configuration information to hosts on a TCP/IP network. The main advantage of DHCP over BOOTP is that you don’t need to configure MAC addresses of all clients on the DHCP server.

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

What are the steps DHCP clients and server takes to allocate an ip address?

A
  1. The operating system on the host is configured to obtain network configuration via DHCP, so the host, acting as DHCP client, sends a DHCPDISCOVER broadcast message to locate a DHCP server.
  2. A DHCP server on the local subnet offers configuration parameters, including an IP address, to the client in a DHCPOFFER unicast message.
  3. The DHCP client returns a formal request for the offered IP address to the server in a DHCPREQUEST broadcast message.
  4. The DHCP server confirms that the IP address has actually been allocated for use by the client by returning the final DHCPACK unicast message.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a DHCP relay agent?

A

A DHCP relay agent is any host that forwards DHCP packets between DHCP clients and DHCP servers. A DHCP relay agent does more than simply forwarding DHCP packets like a router forwarding IP packets. The relay agent receives DHCP messages and then generates a new DHCP message to send on another interface. The Cisco IOS (Internetwork Operating System) running on Cisco routers includes both DHCP server and relay agent software

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

How will you configure an IOS router to be a dhcp server?

A

ip dhcp excluded-address 192.168.1.1 192.168.1.50
!
ip dhcp pool Pool_R1
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 192.168.1.1

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

What command reports IP addresses assigned and client MAC addresses associated with those addresses?

A

show ip dhcp binding

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

What command reports the number of addresses leased so far, along with some other details on current utilization of addresses in the DHCP pool ?

A

show ip dhcp pool

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

What command reports the number of DHCP messages of each type received, as well as some other statistics.

A

show ip dhcp server statistics

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

How does the dhcp server tries to minimize ip address conflict?

A

DHCP servers detect such conflicts by pinging the new IP address before assigning it to a client. But there is nothing in the world that can prevent someone from statically configuring an IP address from within the range of addresses used by the DHCP server.

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

What command can you use to see the ip address conflict in dhcp?

A

show ip dhcp conflict

The DHCP server avoids assigning the addresses from the list to any clients until the list is manually cleared using the clear ip dhcp conflict command.

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

What are the ports does DHCP use?

A

The DHCP employs a connectionless service model, using the User Datagram Protocol (UDP). It is implemented with two UDP port numbers for its operations which are the same as for the BOOTP protocol. UDP port number 67 is the destination port of a server, and UDP port number 68 is used by the client.

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

What are the phases DHCP goes to?

A

DHCP operations fall into four phases: server discovery, IP lease offer, IP request, and IP lease acknowledgment. These stages are often abbreviated as DORA for discovery, offer, request, and acknowledgment.

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

How can you enable DHCP service on an IOS router?

A

service dhcp

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