Solved

route -f add back localhost

Posted on 2011-09-13
4
1,130 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Routing protocols 5 38
Unable to access VM console from vSphere ? 2 35
VLAN Issue 4 73
Network adapter for Windows 7 9 55
If your business is like most, chances are you still need to maintain a fax infrastructure for your staff. It’s hard to believe that a communication technology that was thriving in the mid-80s could still be an essential part of your team’s modern I…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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…
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…

749 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