11-09-2016 06:59 AM

Hello,
Wondering if anyone can help me to understand the issue I'm facing with the following setup
Setup a Router as DHCP server..
ip dhcp excluded-address 10.1.1.1 10.1.1.10
!
ip dhcp pool PC
network 10.1.1.0 255.255.255.0
default-router 10.1.1.1
DHCP_SERVER#sh ip int brie
Interface IP-Address OK? Method Status Protocol
GigabitEthernet0/0 10.1.1.1 YES manual up up
GigabitEthernet0/1 unassigned YES unset administratively down down
Vlan1 unassigned YES unset administratively down down
If I connect the PC to DHCP server (Router) PC gets the ip address but if I add a router between a PC and DHCP server (Router), I get the error "DHCP failed, APIPA is being used" when

Router#show ip int brie
Interface IP-Address OK? Method Status Protocol
GigabitEthernet0/0 10.1.1.2 YES manual up up
GigabitEthernet0/1 192.168.1.1 YES manual up up
Vlan1 unassigned YES unset administratively down down
interface GigabitEthernet0/1
ip address 192.168.1.1 255.255.255.0
ip helper-address 10.1.1.1
duplex auto
speed auto
Thanks in advance.
Solved! Go to Solution.
11-09-2016 11:10 PM
Hi,
so you have 2 configuration problems.
1. You have defined only pool for network 10.1.1.0/24. But PC is currently on network 192.168.1.0/24.
So at first please define pool for this network with correct gateway 192.168.1.1 on DHCP server.
2. DHCP server get request from 192.168.1.1 host, but this network is not directly connected so it doesn´t know route for this network.
Simply add ip route 0.0.0.0 0.0.0.0 10.1.1.2 on "DHCP server" router.
11-09-2016 11:10 PM
Hi,
so you have 2 configuration problems.
1. You have defined only pool for network 10.1.1.0/24. But PC is currently on network 192.168.1.0/24.
So at first please define pool for this network with correct gateway 192.168.1.1 on DHCP server.
2. DHCP server get request from 192.168.1.1 host, but this network is not directly connected so it doesn´t know route for this network.
Simply add ip route 0.0.0.0 0.0.0.0 10.1.1.2 on "DHCP server" router.
11-13-2016 05:07 PM
You are awesome. It worked.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide