There are several things that may have gone wrong here. Since a static IP address works, that eliminates a number of them.
In order of likelihood, check:
- Are "helper" addresses still configured on the router(s) that are your default gateway? Keep in mind there can be more than one, in the case of, e.g., Cisco routers configured with HSRP, helpers have to be configured on all routers for each subnet/vlan.
- Has your scope had all IP addresses used up? You can check stats with "netsh dhcp server show all" from a command line or powershell. You should also see a red /!\ alert on the DHCP MMC. Only fix here is to free up IP addresses somehow, e.g., dropping the lease time, increasing the scope size, or a more intrusive re-design.
- Has the DHCP server been de-authorized accidentally or otherwise? This will stop it from answering lease requests even while it is still running. Right-click on the server in the MMC and if there's a option to Authorize in the menu then it has been de-authorized.
- Lastly, the scope may have been deactivated. If you right-click on just the scope and there is an Activate option, the scope has been de-activated. (This one isn't always obvious in the MMC that's it is deactivated, in my experience.)
An 169.254.xx.xx suggests that your Wireless lan card was unable to obtain an IP Address from a DHCP server.
This can happen if no connection was made to a DHCP server (for example, no connection to the router because of a broken cable or faulty router) but given that you are on wireless and it says you are connected, this is not the case for you.
The second reason for this to happen, is that the DHCP server was not contacted during its route. Eg: you have a wifi accesspoint that relays the connection to the router, but the connection between the accesspoint and the router is not working properly. Wifi would still say you are connected, but the accesspoint itself can't hand out any IP addresses.
And thirdly (most likely) the DHCP server was contacted, but it could not hand out an IP address to you. This can have 2 causes.
- The DHCP server crashed, and your router needs to be restarted.
- The DHCP server reached all available IP addresses to hand out, and the DHCP scope needs to be increased.
So what you need to do is first follow the route your network travels. Look at the device that gives you wifi access. Does it still has a network?
Look at the router (or whatever provides you with IP Adresses). Is it still capable of giving out leases?
Also, just because other devices in the network get an IP Address, doesn't mean the DHCP still works. They could either still have their IP Address, and the lease just didn't expire yet, or they have a static IP Address.
If all of above is failing, the only reason I can think of that prevents your laptop from getting an IP Address is either something clientside, but a restart would rule that out (unless the wifi card is broken), or the MAC address is blocked on the router, which would've been done by someone.
Best Answer
Go to services in windows 7 via start menu or run command ,type services.msc
since you have tried all of the above i suggest
if still the problem is not solved ,this may be hardware problem and i suggest you to run a diagnostics via windows as well as via any OEM software if you have.