Solved

route -f add back localhost

Posted on 2011-09-13
4
1,104 Views
Last Modified: 2012-05-12
I used "route -f" in windows command line to flush the route table. Is it possible to add the localhost back into the command line.

route add 127.0.0.0 mask 255.0.0.0 127.0.0.0 metric 10 IF 1

I get either element not found, or the parameter is incorrect.

Is there a default command that can be used to add the localhost ip address (127.0.0.0) back in, to use for troubleshooting?

0
Comment
Question by:tech-user
  • 2
4 Comments
 
LVL 1

Expert Comment

by:dragosios
ID: 36530026
Your gateway is wrong, replace it with 127.0.0.1
0
 
LVL 4

Expert Comment

by:sakman
ID: 36530080
You should not have to manually enter in the route for the loopback address.

Also, you have the network (127.0.0.0) listed twice in your command.  The second address in the route command should be the interface (127.0.0.1).
0
 

Author Comment

by:tech-user
ID: 36530254
This is my route table..

Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0      MYGATEWAY    MYIP     10
      MYSUBNET          255.255.255.0         On-link     MYIP    266
    MYIP              255.255.255.255         On-link     MYIP    266
    MYSUB.255              255.255.255.255         On-link     MYIP    266
        224.0.0.0        240.0.0.0         On-link     MYIP    266
  255.255.255.255        255.255.255.255         On-link     MYIP    266

When I try to ping localhost, can't find the name.
When I try to ping 127.0.0.0 or 127.0.0..1 transmit failure.

I can ping everything else on network, and can get on the internet, etc.

c:\windows\system32\drivers\host, i removed the comment from localhost just to see if that might be the issue to ensure that the name is not a problem.

I was creating a batch file to ensure that all network information was clean and flushed...

ipconfig /flushdns
ipconfig /release
netsh interface ip delete arpcache
route -f
PING 127.0.0.1 -n 6 
ipconfig /renew
PING 127.0.0.1 -n 6 

Open in new window


0
 
LVL 4

Accepted Solution

by:
sakman earned 500 total points
ID: 36530392
You could try this:
netsh interface ipv4 reset all
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Don’t let your business fall victim to the coming apocalypse – use our Survival Guide for the Fax Apocalypse to identify the risks and signs of zombie fax activities at your business.
PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now