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.
Very interesting. Have you tried looking at your configuration scripts for the NIC card? Try looking into the script for the "localloopback" in the network scripts folder of your OS, if there is one. Since you didn't list your distribution this may not help you much but if you are using Red Hat/Fedora, try this folder:
"/etc/sysconfig/network-scripts/"
Edit the file that resembles the loopback interface accordingly. If you don't have this folder or file, manually enter the information for the lo interface as root and see if that works. If it does, you can make a script of that command and have it run on startup.
I cant see any called "loopback" (i have tried ls -al).
I have just ran:
""ifconfig lo 127.0.0.1 netmask 255.0.0.0"
And i can now ping 127.0.0.1.
I think my origional post does not show a subnet mask for the lo interface...
Could you just go over how i can fix this permenantly.
Many thanks for the help.
*EDIT
i have just looked in ifcfg-lo, it seems correct:
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
Ok this is where my true newbie colors show. I haven't played with startup scripts in a while so it may help id you back this up with a little more research.
It would be best to isolate this problem but a patch can work until you have time .
Here is what I have for the script:
Code:
#!/bin/bash
#
#description: lo startup script
#name: /etc/rc.d/init.d/lo
#run ifconfig command
ifconfig lo 127.0.0.1 netmask 255.0.0.0
Make this file in the /etc/rc.d/init.d/ folder under the name of lo.
If it doesn't work, post saying so. I'm not at home at the moment and can't try it out but I can later on when I get off.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.