What router you have???
Also, you pinged google.com?? like in Dos type ping google.com
Full list of steps:
Start>Run> type cmd> type ping google.com
Ok pinged google all seems fine
i hve a Belkin Modem with wireless G router
After thinking about your problem and if it only occurs in BF2 then I see BF2 as a problem not your gear.