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

hostname RouterA
!
interface FastEthernet0/0
ip address
speed auto
duplex auto
!
interface FastEthernet0/1
ip address
speed auto
duplex auto
!
ip dhcp excluded-address
!
ip dhcp pool 0
network
domain-name
dns-server
!
ip dhcp pool 2
host
hardware-address 02c7.f800.0422
!
access-list 1 permit
!

Srv2 is a host connected to the Fa0/0 interface of RouterA. When it boots, it is assigned the IP address of . However, it can only communicate with hosts on the same subnet.

What should you do to correct the problem?

User Wumbo
by
8.0k points

1 Answer

2 votes

Final answer:

To resolve the DHCP issue where Srv2 can only communicate within its subnet, the default gateway must be configured in the DHCP pool settings on RouterA. Additionally, the DHCP pool configuration should have the correct network address and subnet mask, and the router must have proper routing setup.

Step-by-step explanation:

A student has experienced an issue where after configuring DHCP (Dynamic Host Configuration Protocol) on their router, the host Srv2 is assigned an IP address but can only communicate with hosts on the same subnet. This indicates that the default gateway is likely not configured or is incorrectly configured for DHCP clients on the network.

To resolve this issue, you must specify the default gateway within the DHCP pool configuration on RouterA. Here is an example of how you could add the default gateway:

  • Within the DHCP pool configuration, add the command default-router x.x.x.x, where x.x.x.x is the IP address of the router's interface that's connected to the subnet serving DHCP clients.

Also, ensure that the DHCP pool configuration contains the correct network address and subnet mask for the local network that Srv2 is part of. You may have placeholder text like 'network' or blank fields that should be filled in. Here's an example:

  • network 192.168.1.0 255.255.255.0

Moreover, to enable communication beyond the local subnet, ensure that the router has suitable routing configured, either via static routes or a routing protocol.

User ClaudiaR
by
7.5k points