Results 1 to 5 of 5
I would appreciate if anyone could help me out with the following problem:
I used ssh to log into my sever that I had and I from there I ran ...
- 01-05-2010 #1Just Joined!
- Join Date
- Jan 2010
- Posts
- 3
ssh No route to host after running dhclient
I would appreciate if anyone could help me out with the following problem:
I used ssh to log into my sever that I had and I from there I ran the command “dhclient eth0” by mistake on the server but the serve had an static IP address. Unfortunately I can’t ssh back into the server anymore! It replies back with “No route not host”. Now my questions are
First of all how do I change it back into the previous setting? Secondly, can I do this remotely since the server is in another place and I don’t have access to it right now or do I have to go there and sit behind it and play around with it there?
Any help will be highly appreciated.
Oh and I can ping the server with the IP address fine!
- 01-05-2010 #2Just Joined!
- Join Date
- Jan 2010
- Location
- Montreal
- Posts
- 10
do u have any other IPs on the server.. maybe some sort of management IP. Or maybe some sort of management access I know HP servers have that.
Otherwise I am not too sure if your server is trying to pick up some sort of random IP, you will need to physically go.
Again, that is only as far as I am concerned... I am not sure if their is another way... depending on ur settings and configurations.
Mohammed Al-Mehdar
Systems and Telecom Engineer
- 01-05-2010 #3Just Joined!
- Join Date
- Jan 2010
- Posts
- 3
Thanks Mehdar for the reply.. not I don't think there is any other IPs to the server...I should mention that its running redhat... so it seems that I have to go physically there..... what should I do when I go there? if I restart the IP tables should that fix it? or do I have to do something else?
Thanks for the help...
- 01-05-2010 #4Just Joined!
- Join Date
- Jan 2010
- Location
- Montreal
- Posts
- 10
make sure you are running as root on the server ;
you should check the networks config file it should be either
can't recall in fedora;
/etc/networks
/etc/network/interfaces
content should be
loopback 127.0.0.0
localnet *.*.*.*
* should be your external IP
use vi editor to edit it if needed.
This file is usually used at startup so if it is set properly a simple reboot might do the job, i am not sure how you have it setup.
Mohammed Al-Mehdar
Systems and Telecom Engineer
- 01-05-2010 #5Just Joined!
- Join Date
- Jan 2010
- Posts
- 3
Thanks for the help.. I'll have to try that..


Reply With Quote