flushing active route table

August 16, 2011 at 18:13:59
Specs: Windows XP
how can i flush window XP active route table using command prompt?

See More: flushing active route table

Report •

#1
August 16, 2011 at 20:54:20
i have tried to use the route delete command to remove the routes in xp. However it seems unsuccessful.
The following is the route table in my pc.

Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.0.1 192.168.0.103 25
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
169.254.0.0 255.255.0.0 169.254.241.150 169.254.241.150 30
169.254.241.150 255.255.255.255 127.0.0.1 127.0.0.1 30
169.254.255.255 255.255.255.255 169.254.241.150 169.254.241.150 30
192.168.0.0 255.255.255.0 192.168.0.103 192.168.0.103 25
192.168.0.103 255.255.255.255 127.0.0.1 127.0.0.1 25
192.168.0.255 255.255.255.255 192.168.0.103 192.168.0.103 25
224.0.0.0 240.0.0.0 169.254.241.150 169.254.241.150 30
224.0.0.0 240.0.0.0 192.168.0.103 192.168.0.103 25
255.255.255.255 255.255.255.255 169.254.241.150 10005 1
255.255.255.255 255.255.255.255 169.254.241.150 169.254.241.150 1
255.255.255.255 255.255.255.255 192.168.0.103 192.168.0.103 1
Default Gateway: 192.168.0.1
===========================================================================
Persistent Routes:
None

When I try to delete the route , e.g.

route delete 192.168.0.0 mask 255.255.255.0 192.168.0.103

it always prompts the error "The route specified was not found."


Report •

#2
August 16, 2011 at 23:33:38
Try just

route delete 192.168.0.0

You can (almost) clear the routing table with

route -f


Report •

#3
August 17, 2011 at 00:01:19
hi ijack,

Try both and i am only able delete what I set in the persistent route table but active route table still remain.


Report •

Related Solutions

#4
August 17, 2011 at 00:51:13
That's what you would expect. Dynamic entries created by the Operating System will be recreated when you delete them. The only reason that this might not happen is if the entry was somehow incorrect.

Perhaps it would be more productive if you explained what you are trying to achieve by deleting routing entries. You certainly don't want to delete the 192.168.0.0 one; if you could then you would lose contact with your router and the rest of the network.


Report •

#5
August 17, 2011 at 01:09:11
hi ijack,

I am having a server with 2 lan port connection. lan 1 ip address is 192.168.1.111 and lan 2 ip address is 192.168.1.1
Lan 1 is connected to a switch connecting to other servers, lan 2 is connected to 192.168.1.2 and 192.168.1.3 only thru another switch.
Try to ping 192.168.1.2 and 192.168.1.3 but unable to get thru. did a persistent route for 192.168.1.2 and 192.168.1.3 to interface 192.168.1.1 but still unable to ping thru.
Route print and notice 192.168.1.2 and 192.168.1.3 is routing thru 192.168.1.111 at active route table, thus suspect window still routing 192.168.1.2 and .3 thru 192.168.1.111 even persistent route had been set.

That is why i trying to see if there is any command to flush active route table.
Hope it is clearer. :)


Report •

#6
August 17, 2011 at 01:36:38
I'm still unclear as to the point of your setup. If you want 192.168.1.2 and 3 to be isolated from all but 111 then surely it would be simpler to set them up as a different network - say 192.168.2.0 - or else subnet the 192.168.1.0 network; then add a static route to that network via the interface that they are connected to.

But if you want them to see the rest of the network then what's the point of the second interface?


Report •

#7
August 17, 2011 at 01:52:16
Hi ijack,

u are right to actually change the IP address of 192.168.1.2 and .3 to a different network. the problem is i am having too many of this isolated 192.168.1.2 and .3 appliance connecting to other similar server like 111 , 112 , 113. other server such as 112 and 113 is not giving me this problem but only 111.

Anyway i am trying to redo the persistent route and route change 192.168.1.2 and 3 mask 255.255.255.255 192.168.1.1
to see whether is could change the active route table wrong routing.


Report •

#8
August 17, 2011 at 02:36:22
I still can't see why it should be a problem to give the second interface a separate network. After all, you have to assign some address to it, so why not make it one that will effectively isolate the networks in the way that you require? It's much more difficult to isolate some device from others on the same network (I'd use a firewall if I had that requirement).

Having said that, I'm not sure why a specific persistant route shouldn't work, although it is more work, if you specify the appropriate interface. But it's not something that I have ever had the occasion to try; I've always found a private network for the isolated devices to be the most logical solution.

Perhaps I still don't understand your requirements.


Report •

Ask Question