The blank IP addresses indicate, for some reason or another, your iMac is unable to find a DHCP server when connected by wireless. However, you also mentioned that even when connected by Ethernet it is slow. Both of these would indicate a potential hardware issue still exists with your iMac. Whether or not, it was introduced when you had the graphics issue resolved is unknown at this point.
I am going to assume that Wi-Fi is your preferred network connection so we are going to try some troubleshooting along this line.
Try the following on your Mac in order, until (hopefully) resolved:
- Create a New User Account
- System Preferences > Accounts
- Click "+" to add a new account.
- Log off, and then, log back on with the new user account.
- Try connecting to your Wi-Fi network.
- If this resolves the problem, there may be something amiss with your current profile and will require further troubleshooting.
- If this does not resolve the problem, go ahead and log back into your normal account and go on to the next 3 steps.
- Delete AirPort Keychain Entries
- Launch the "Keychain Access" application located in Applications/Utilities.
- In the windows on the left side: Select login for Keychains and "Passwords" for Category.
- Click on the "Kind" filter at the top, and look for any "AirPort network password" entries...and delete them.
- Close Keychain Access.
- Delete Preferred Network(s)
- System Preferences > Network > Wi-Fi > Advanced > Wi-Fi tab
- Delete all entries under "Preferred Networks."
- Click on OK.
- Add Preferred Network(s)
- System Preferences > Network > Wi-Fi > Advanced > Wi-Fi tab
- Add the preferred network(s) using the "+" button.
- Click on OK.
- Restart or log out, and then, back in.
- If it works, then you are done.
- If not, go on to the next step.
- Move System Configuration Files
- In Finder, go to /Macintosh HD/Library/Preferences/
- Move (not copy) the entire SystemConfiguration folder to the OS X desktop.
- Restart the computer.
- Verify that you have connectivity.