cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3583
Views
0
Helpful
2
Replies

Cisco Router as a DHCP server - PC can't get the ip address

lgkhan
Level 1
Level 1

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.

1 Accepted Solution

Accepted Solutions

Milos Megis
Level 3
Level 3

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.

View solution in original post

2 Replies 2

Milos Megis
Level 3
Level 3

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.

You are awesome. It worked.