4.6 DHCP Client and Relay Flashcards

Configure and verify DHCP client and relay. (26 cards)

1
Q

Define:

Dynamic Host Configuration Protocol (DHCP) client

A

A device that receives IP settings from a DHCP server.

DHCP clients automatically request IP configurations, reducing manual setup.

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

What is DHCP relay?

A

A router feature that forwards DHCP requests to a server.

DHCP relay is used when clients and servers are on different subnets, forwarding client requests to a centralized DHCP server.

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

How does a DHCP client obtain an IP address?

A

By sending a DHCP Discover message.

The client searches for DHCP servers to request an IP address and other network settings.

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

What command configures an interface as a DHCP client?

A

ip address dhcp

This command configures the interface to obtain an IP dynamically.

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

Fill in the blank:

The command ip address dhcp is used to configure a device as a ______ ______.

A

DHCP client

This makes the device request an IP from a DHCP server rather than using static configuration.

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

What are two commands to verify DHCP client configuration?

A
  1. show ip interface brief
  2. show ip dhcp binding

These commands help verify whether an interface has successfully obtained an IP address through DHCP and the status of the lease.

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

Which command checks the IP address assigned to VLAN 1 via DHCP?

A

show interfaces vlan 1

This command shows the interface’s assigned IP, its status, and other relevant information, including if it obtained the IP via DHCP.

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

What happens if a DHCP client cannot reach a DHCP server?

A

It assigns itself an APIPA address (169.254.x.x).

This occurs when the client cannot obtain an IP address from a DHCP server, leading it to self-assign an address in the APIPA range.

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

Why would a router be configured as a DHCP client?

A

To receive an IP from an upstream ISP.

Routers often use DHCP to obtain an IP address for WAN interfaces, simplifying configuration and reducing administrative effort.

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

What command is used to renew a DHCP-assigned IP on a Cisco router?

A

ip dhcp renew

This command initiates the DHCP renewal process for the interface, allowing the router to request a new IP lease from the DHCP server.

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

What command enables DHCP relay on a router?

A

ip helper-address <server-IP></server-IP>

This command configures the router to forward DHCP requests from clients to a specific DHCP server located on a different subnet.

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

How does ip helper-address help DHCP clients?

A

It forwards broadcast DHCP requests to a DHCP server.

DHCP broadcasts do not traverse routers, so this command ensures that DHCP messages from clients on one subnet are forwarded to a server on another subnet.

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

What are two commands to verify DHCP relay configuration?

A
  1. show running-config | include helper-address
  2. show ip dhcp relay

These commands confirm that the DHCP relay function has been properly configured and whether the ‘helper-address’ command is active.

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

Why does a router need an IP address on an interface to act as a relay?

A

To forward DHCP packets correctly.

The router uses the IP address of its interface to ensure that DHCP messages are routed and can reach the appropriate DHCP server.

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

Fill in the blank:

The command **ip helper-address <server-IP>** is configured on the \_\_\_\_\_\_ interface.</server-IP>

A

client-facing

This ensures the router forwards DHCP requests from client subnets to the server.

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

What command checks the status of DHCP relay traffic on a router?

A

debug ip dhcp server packet

This command provides real-time logs for diagnosing problems with DHCP request forwarding and responses.

17
Q

What could cause a DHCP client to fail to obtain an IP address?

A

Misconfigured relay or incorrect helper address.

If the relay agent or helper address is misconfigured, DHCP requests won’t be forwarded correctly, preventing clients from getting an IP.

18
Q

Why is DHCP relay required in multi-subnet networks?

A

Routers block DHCP broadcasts, so relay is necessary to forward requests.

Without relay, clients in different subnets would be unable to communicate with a centralized DHCP server.

19
Q

True or False:

The ip helper-address command only forwards DHCP packets.

A

False

In addition to DHCP, the ip helper-address forwards other types of UDP broadcasts such as TFTP, DNS, and NetBIOS.

20
Q

Fill in the blank:

A DHCP relay agent forwards requests using the IP address of its ______ interface.

A

incoming

The relay uses the source IP address of the incoming request to forward it to the correct DHCP server.

21
Q

What is the purpose of the show ip dhcp binding command?

A

It displays active DHCP leases on the router.

This command allows network administrators to check which IPs have been assigned to DHCP clients.

22
Q

Why should a router not have multiple ip helper-address entries?

A

It could cause multiple DHCP servers to respond, leading to conflicts.

Multiple helper addresses may lead to unpredictable IP assignments, so only one helper address per subnet should be configured.

23
Q

What are two signs of a DHCP relay misconfiguration?

A
  1. No IP addresses are assigned to clients.
  2. Relay logs show no forwarded requests.

These issues often stem from incorrect or missing relay configuration.

24
Q

What command shows DHCP relay statistics on a router?

A

show ip dhcp relay statistics

This command provides information about how many DHCP requests have been relayed and successfully forwarded.

25
# True or False: A router with DHCP relay **must also be configured** as a DHCP server.
False ## Footnote A router can act as a *DHCP relay* without being configured as a DHCP server, forwarding requests to an external server.
26
What command shows **real-time** DHCP relay packet forwarding?
debug ip dhcp relay ## Footnote This **command** is used for *troubleshooting* and *verifying* that DHCP relay packets are being forwarded correctly.