Restore default Windows 7 routes?


Recommended Posts

i did a route -f and my routing table has been messed up. i tried ipconfig /release then /renew and it recovered som of the entries but not all......

how can i do this?

Link to comment
Share on other sites

SK[' timestamp=1343897918' post='595053313]

Just delete all your persistent routes?

route print[/CODE]

my persistent route is the one that states that everything goes thru my gateway. there isnt any other.

Link to comment
Share on other sites

SK[' timestamp=1343900913' post='595053363]

Sounds right to me then.

well it hasnt right. i shutdown my pc and started it up again and now the routing table has been restorted.

thanks for the help anwayways :)

Link to comment
Share on other sites

A bog standard config will send any IP outside its subnet to its default gateway. That is the default setup. If you have other persistent routes then this is not a default setup!

Link to comment
Share on other sites

route -f clears ALL gateways, so you would end up with

IPv4 Route Table
===========================================================================
Active Routes:
  None
Persistent Routes:
  None

vs something like this

IPv4 Route Table
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0    192.168.1.253    192.168.1.100    266
        127.0.0.0        255.0.0.0         On-link         127.0.0.1    306
        127.0.0.1  255.255.255.255         On-link         127.0.0.1    306
  127.255.255.255  255.255.255.255         On-link         127.0.0.1    306
      192.168.1.0    255.255.255.0         On-link     192.168.1.100    266
    192.168.1.100  255.255.255.255         On-link     192.168.1.100    266
    192.168.1.255  255.255.255.255         On-link     192.168.1.100    266
        224.0.0.0        240.0.0.0         On-link         127.0.0.1    306
        224.0.0.0        240.0.0.0         On-link     192.168.1.100    266
  255.255.255.255  255.255.255.255         On-link         127.0.0.1    306
  255.255.255.255  255.255.255.255         On-link     192.168.1.100    266
===========================================================================
Persistent Routes:
  Network Address          Netmask  Gateway Address  Metric
          0.0.0.0          0.0.0.0    192.168.1.253  Default
===========================================================================

A restart prob best thing, you could of disabled/enabled interface to get some of them back, or switched from dhcp to static back to dhcp, etc. Reboot prob quickest way. What I have to ask is why you would of run the command in the first place ;)

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.