Solved

route -f add back localhost

Posted on 2011-09-13
4
1,119 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 SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Incredibly slow speeds while testing on server in China? 5 67
f5 Persistence 14 52
Running a 2nd company from the same location 3 44
E-mail delayed during DNS server reboot 8 39
#Citrix #Citrix Netscaler #HTTP Compression #Load Balance
Resolve DNS query failed errors for Exchange
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
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…

809 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