• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 177
  • Last Modified:

Clearing Route Table


Here's the deal.  I have a server with crazy routes that shouldn't be there.  Whent I do a route print on my Win2k Server, a crap load of IP's shoot out.  I wanna clear this all out, as it should not contain a route for each and every IP out there.  How do i do this?  I also can't reinstall the TCP/IP stack as I only have PcAnywhere access to the machine.

1 Solution
You can remove them one by one, with the command
route delete <ipaddress>

If you can't drop your ipstack, this is as far as i know the only way to clean it up. If you are unsure of which routes you can delete, you can post a ROUTE PRINT here along with an IPCONFIG /ALL, and we can tell you what is safe to delete.

I think the command you're looking for is "route -f"

If you're using a Windows NT/2000 machine as a router, it's a good practice to schedule a job to execute soon after the machine starts running the route -f command, followed by route add commands for all of your static routes.
lofuAuthor Commented:
Why do the routes stay in the tables?  We have 10 of these machines and some of the tables are 'clean' while others keep routes in.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now