Link to home
Start Free TrialLog in
Avatar of tkgj11
tkgj11Flag for United States of America

asked on

DHCP pulling multiple ip addresses for one device

Hello I created a new DHCP server and now it pulls multiple bad IP addresses inside the address lease. Can you please help assist why it would pull multiple bad IP address for one device aka phone, computer.
Avatar of Chris Lightfoot
Chris Lightfoot

first question would be really, what do you mean by bad? do you mean your client is getting a 169 address. in this case the computer is attempting to contact a dhcp and not finding one on the network, hence the apipa address.
ASKER CERTIFIED SOLUTION
Avatar of Shaun Vermaak
Shaun Vermaak
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tkgj11

ASKER

When a device is booted and goes thru DHCP, a IP address is shown in dhcp for the leases which it then shows multiple bad IP addresses. Example device goes thru dhcp at a IP 10.252.2.2 this is how it will show below:

10.252.2.2
bad ip address
bad ip address
bad ip address
bad ip address
I know exactly what you are talking about. Follow my suggestion in #a42593689
Avatar of tkgj11

ASKER

I did nothing happened. I opened powershell and put in the command Set-DhcpServerSetting -ConflictDetectionAttemps 2 and nothing happened. Was I suppose to enter anything else after that?
It applied the value. Run the second script to remove the exiting BAD_ADDRESS values
Avatar of tkgj11

ASKER

so I will put the bad IP address in of all the bad IP addresses for each bad IP address that I see?

is this how the example would be?

$DHCPBadReservations = Get-DhcpServerv4Scope -ComputerName $DHCPServer | Get-DhcpServerv4Lease -ComputerName $DHCPServer | Where-Object -FilterScript {$_.HostName -eq '10.252.1.5'}
$DHCPBadReservations | Remove-DhcpServerv4Reservation -ComputerName $DHCPServer
No, you run it as-is