I have had a few instances of having to remove TCP/IP and reinstall it in Win2K (usually when adding/removing from a domain), not XP though.
Netsh has some built in guidance, but for the full SP I think it's time to look up in an MS press book. It's also covered in the 2000 and 2003 version of the 'Implementing a Microsoft Windows Network' course ...