Recently in the toss of the route command, a momentary preface clears the routing table, as in the following command
Route -F
Then the egg hurts, localhost and 127.0.0.1,ping can not open, finally found a command on the Internet, reset the IPv4 protocol, as follows
netsh int IPv4 reset
After execution, restarting the computer is finally normal.
/* As long as you run this line, * *
Here's how the route works, the route has three commands, add, change changes, delete delete, and the following command is to print the routing table
Route Print
We will first see a list of interfaces, preceded by a number, this is the interface index number, when setting the interface to use the index number, the following index is 19
... 94 de , aa ba ...
And then we saw the IPv4 routing table.
Network destination netmask Gateway Interface metric
0.0. 0.0 0.0. 0.0 192.168.0.1 192.168. 0.88 276
127.0. 0.0255.0. 0.0 on link < Span class= "lit" >127.0. 0.1 306
127.0. 0.1255.255. 255.255 on the link 127.0. 0.1 306
127.255. 255.255 255.255. 255.255 127.0 on the link . 0.1 306
A complete route command is as follows
Route ADD Network Destination mask netmask Gateway METRIC metric IF interface
Route ADD 0.0. 0.0 MASK 0.0. 0.0 192.168. 0.1 METRIC 1 IF
As above, we have set up a complete route command, which means that all network access requests are through the interface, sent to the gateway, the number of hops, is the router
Note, however, that a loopback address cannot be set as an interface, and after all use of route-f, only the IPv4 protocol can be reset
ROUTE-F Clears the routing table, resulting in a solution that localhost and 127.0.0.1 cannot access