How do I change cmd to default settings?


  1. Posts : 2
    Windows 7 Home Premium 64bit
       #1

    How do I change cmd to default settings?


    Hi,

    Recently my computer's internet gliched and I can no longer connect to any webpage. I think it might have somthing to do with me deleting route 0.0.0.0 on cmd. this is what I wrote:

    route delete -p 0.0.0.0

    Is there any way i can restore the deleted route?
      My Computer


  2. Posts : 5,440
    Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
       #2

    Hi and welcome to the Forum
    Can you do a system restore to a point behind when you did the deletion? It would also beg the question why did you delete it?
      My Computer


  3. Posts : 4,049
    W7 Ultimate SP1, LM19.2 MATE, W10 Home 1703, W10 Pro 1703 VM, #All 64 bit
       #3

    route ADD?


    Can't you just replace the missing entry?

    You should create a backup system image before you start (in case of disaster).

    To display the IPv4 Route Table use:
    route print -4
    To replace the missing route use:
    route ADD 0.0.0.0 MASK 0.0.0.0 <Gateway IP> METRIC <metric> IF <interface>
    You can get the <Gateway IP> by using:
    ipconfig
    You should be able to work out the METRIC and IF by examining the IPv4 Route Table.
    How do I change cmd to default settings?-ipconfig.png How do I change cmd to default settings?-route-print.png
    For example my info:

    • <Gateway IP> 192.168.1.127
    • <metric> 266
    • <interface> 11

    Therefore my command would be:
    route ADD 0.0.0.0 MASK 0.0.0.0 192.168.1.127 METRIC 266 IF 11
    Note:
    I have a static IP address (not DHCP provided IP address).
    Last edited by lehnerus2000; 16 Feb 2013 at 09:37.
      My Computer


  4. Posts : 2
    Windows 7 Home Premium 64bit
    Thread Starter
       #4

    wait, doesn't matter now, I've fixed it. But thanks for the help anyway.
    Last edited by boyzy; 16 Feb 2013 at 15:07.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 11:21.
Find Us