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?

2
  • Are you sure the -p option is not the way it used to work ? What is wrong with it ?
    – ncenerar
    Dec 14, 2015 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 Apr 12, 2016 at 6:46

1 Answer 1

1

Remove your network and re-add it

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .