ROUTE-F Clears the routing table, resulting in a solution that localhost and 127.0.0.1 cannot access

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.