49.5k views
0 votes
You have configured DHCP on your router. A partial configuration is shown below:

hostname RouterA
!
interface FastEthernet0/0
ip address [IP Address]
speed auto
duplex auto
ip access-group 1 in
!
interface FastEthernet0/1
ip address [IP Address]
speed auto
duplex auto
!
ip dhcp excluded-address [IP Address]
ip dhcp excluded-address [IP Address]
!
ip dhcp pool 0
network [Network Address]
domain-name [Domain Name]
dns-server [DNS Server]
default-router [Default Router]
!
ip dhcp pool 1
network [Network Address]
domain-name [Domain Name]
dns-server [DNS Server]
default-router [Default Router]
!
ip dhcp pool 2
host
hardware-address 02c7.f800.0422
!
access-list permit [Access List]
!

Srv2 is a host connected to the Fa0/1 interface of RouterA. Its MAC address is 02c7.f800.0422. Srv2 is configured to use DHCP to request an IP address.

When Srv2 boots, it is configured with an IP address of [Current IP Address]. It needs to be assigned the address of [Desired IP Address]. What should you do to correct the problem?

1 Answer

0 votes

Final answer:

To assign the desired IP address to Srv2, a DHCP reservation should be created on RouterA using its MAC address. Ensure the desired IP address is within an appropriate DHCP pool configuration, not excluded or already in use, and then save the changes. Reboot Srv2 to obtain the newly assigned IP address.

Step-by-step explanation:

To assign the desired IP address to Srv2, you should create a DHCP reservation within the DHCP pool configuration on RouterA using Srv2's MAC address. First, identify which DHCP pool you want Srv2 to receive an IP address from. Based on the partial configuration provided, it seems that dhcp pool 2 is meant for a host with a specific MAC address. Since dhcp pool 2 has not been fully configured, you need to complete its configuration. Assuming the desired IP address is not part of the excluded addresses, the command to configure the reservation would be:



router(config)# ip dhcp pool 2
router(dhcp-config)# host [Desired IP Address] 255.255.255.0
router(dhcp-config)# hardware-address 02c7.f800.0422
router(dhcp-config)# client-identifier 02c7.f800.0422



After entering these commands, save the configuration by running write memory or copy running-config startup-config. Make sure that the desired IP address is available and not excluded or assigned to another device. Reboot Srv2 to obtain the new IP address.

User Adam Holmes
by
7.8k points