2

As you may know, if you connect your computer to LAN, you will alwasy automatically get a route like this:

IPv4 Route Table
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0     xxx.xxx.xx.1   xxx.xxx.xx.222     20

I accidentally deleted this route by this command (4 is my interface number for LAN):

route delete 0.0.0.0 if 4

Of course this is not cool, so added this route back (without persistent option -p):

route add 0.0.0.0 mask 0.0.0.0 xxx.xxx.xx.1 metric 20 if 4

Well this brings my problem, every time I restart my computer, I lose this route, but I do NOT want use persistent option (-p) because I believe there should be some automatic method to make LAN route table works, just as it used to.

So any ideas how could I fix this on Windows 10?

  • Are you sure the -p option is not the way it used to work ? What is wrong with it ? – ncenerar Dec 14 '15 at 10:32
  • -p works but it's not the default way (ugly), so I wanted a more elegant solution; but well, I just reinstalled Windows (for other reasons) and it's fine now :-D – Dennis Wong Apr 12 '16 at 6:46
1

Remove your network and re-add it

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.