Ok so I have a good friend of mine that comes to me and says I got a virus on this pc and can't get it fixed do you care to help me?
So after running a couple different tools the virus was all gone. I am going to stop here and add in that I believe that you are never certain that a virus is completely gone unless you wipe the machine and reload it but that takes time and time is money! Anyway most people want the down and dirty just get it working again like it is and I will be happy.
Virus gone but the pc still want surf it shows connected but will not even ping the gateway address. Hmm it will ping the loopback address though. So I run the following command.
C:\>route print
This gives me the current routing table for this computer. Usually your first line will be the default route to the gateway and will look like what you see below.
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.27.1 192.168.27.199 10
On the computer in question I got the following.
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 127.0.0.1 192.168.27.199 10
This routes all traffic to the loop back address. There for creating a situation where the only place you can get to is your local computer.
To fix this issue I used the following commands.
C:\>route -f
This clears the routing table of all gateway entries
Next I add in the default route that I want the computer to use.
route add 0.0.0.0 mask 0.0.0.0 192.168.27.1
In the command above replace the 192.168.27.1 with your default gateway address.
Now you have your default route back in place you should be able to surf and ping out.
No comments:
Post a Comment