Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Ok, here's the problem.
I cannot ping the localhost until I issue the command 'ifconfig lo 127.0.0.1'. I may be wrong, but doesn't Linux take care of this whenever it boots? (I just noticed the problem following the installation of the CUPS interface so it must have been messed-up for a while.) I've searched the Web from front to back and have yet to know what the problem might be.
Oh yeah, please be easy on the networking jargon...networking is not my 'thing'.
Thanks!! Dennis
If your on a RedHat or a distro with equivalent files then edit
/etc/sysconfig/network-scripts/ifcfg-lo
and make sure there is a line that says ONBOOT=yes
If you don't have a file like this then put a ifconfig lo 127.0.0.1 in rc.local
Hi, thanks for your help. Still no progress though. The file already had the ONBOOT="yes" option. I've played around with a few commands and have also discovered that a stop/start of the network service gets localhost available (/etc/rc.d/init.d/network [stop/start]). Here's the contents of ifcfg-io file:
DEVICE="lo"
IPADDR="127.0.0.1"
NETMASK="255.0.0.0"
NETWORK=127.0.0.0
# If you're having problems with gated making 127.0.0.0/8 a martian,
# you can change this to something else (255.255.255.255, for example)
BROADCAST=127.255.255.255
ONBOOT="yes"
NAME=loopback
BOOTPROTO="none"
IPXNETNUM_802_2=""
IPXPRIMARY_802_2="no"
IPXACTIVE_802_2="no"
IPXNETNUM_802_3=""
IPXPRIMARY_802_3="no"
IPXACTIVE_802_3="no"
IPXNETNUM_ETHERII=""
IPXPRIMARY_ETHERII="no"
IPXACTIVE_ETHERII="no"
IPXNETNUM_SNAP=""
IPXPRIMARY_SNAP="no"
IPXACTIVE_SNAP="no"
Well, I think I found a solution to the problem. As suggested, I placed a command in the /etc/rc.d/rc.local file with the following
ifconfig lo 127.0.0.1
I'm not particularly happy with using this solution since I believe that there is a better way (does anyone else use this in their boot file?) but it's working.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.