LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   lost localhost (https://www.linuxquestions.org/questions/linux-newbie-8/lost-localhost-43102/)

keithturner 01-28-2003 01:02 PM

lost localhost
 
We had a power failure and my linux box has become corrupted. With both a dhcp and direct cable available, I had set it for the direct connection, but when rebooting after the blackout, the dhcp cable was inadvertently swapped out and it rewrote all my settings.

I've been trying to use the linuxconf tool, but when I do a Route, it doesn't seem to be taking my settings, and when I use route commands the information, including the default gateway (router info) doesn't seem to survive a reboot.

I had it recognizing localhost but not the internet/network, then I resolved the network problem, but now localhost has disappeared.

When I do a route -n I get 127.0.0.0 for lo, but my ifcfg-lo is:
DEVICE=lo
IPADDR=127.0.0.1
NETMASK=255.0.0.0
NETWORK=127.0.0.0
BROADCAST=127.55.255.255
ONBOOT="yes"
NAME="loopback"

As well, the route -n shows that the fourth set of numbers in the destination Column are 0 rather than what's set in the ifcgh-eth0 file.

Any help gratefully appreciated,

Keith

zeroability 01-28-2003 06:13 PM

What was the original network configuration you had (i.e. do you have cable internet, Lan, dhcp server,)?

keithturner 01-29-2003 10:43 AM

I fixed it through ignoring the linuxconf tool and directly editing the network and ifconf files. It was on a static address, but we've got both that and dhcp here, and we had a guest spend the day using the connection, and it looks like the linux machine was booted with that cable in rather than the static one, which is why the files were overwritten.

I have a follow up question. In all this there are additional entries to the routing table that I'd like to remove - they show up as errors on boot. It doesn't seem to effect anything - the correct routes are still there. I tried using the "route del" command but it says that the route doesn't exist, though it shows up using the route -n. The route man shows lots of add examples but is light in del examples.

Again any advice welcome. Thanks


All times are GMT -5. The time now is 09:33 PM.