Linux - Networking This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
03-17-2004, 02:23 PM
|
#1
|
Member
Registered: Sep 2003
Distribution: Mandriva 2006,OpenSuse 10.1
Posts: 154
Rep:
|
? on not being able to ping localhost
hello,
i've been trying 2 get webmin 2 work and i came across this trouble on my machine. webmin is supposed 2 work on the localhost port 10000 but i notice when i do a netstat I get this output:
root@localhost Downloads]# netstat -l
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 *:9099 *:* LISTEN
tcp 0 0 *:10000 *:* LISTEN
tcp 0 0 *:x11 *:* LISTEN
udp 0 0 *:10000 *:*
udp 0 0 localhost:domain *:*
udp 0 0 224.0.0.251:5353 *:*
I've not seen the notation *:10000 b4. I try pinging localhost & 127.0.0.1 and i get nothing back. my dialup is working fine and i can ping this website no problem and yes my hosts file has the localhost entry. obviously what I thought was a problem w/webmin is more a problem w/my tcp/ip stack. Being a Windows person and a Linux newbie(I'm runing mandrake 9.1) I was wondering if anyone had suggestions on what might be wrong here....
alan
|
|
|
03-17-2004, 05:31 PM
|
#2
|
Member
Registered: Aug 2003
Location: Dominica
Distribution: RedHat, FC1, FC3, FC4
Posts: 266
Rep:
|
run: /sbin/ifconfig -a
if your localhost is not there then....settin it up may be as simple as (i've never had to do this myself): /sbin/ifconfig lo up 127.0.0.1
Please ....someone correct me if i'm wrong
|
|
|
03-18-2004, 08:21 PM
|
#3
|
Member
Registered: Sep 2003
Distribution: Mandriva 2006,OpenSuse 10.1
Posts: 154
Original Poster
Rep:
|
ok thanks I'll try that command when I get back to work on monday. I always thought ifconfig was part of the wireless tools set only. I just issued the command on my laptop at home and got back both the wireless adapter and "lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1"
And i could ping localhost no problem.I'm just a little confused coming from the Windows World. You're saying u have to add the local loopback port 127.0.0.1? I thought that was done automatically on installation of the tcp/ip stack? I'll try the command and give u a heads up if it works.
thanx,
alan
|
|
|
03-22-2004, 10:15 AM
|
#4
|
Member
Registered: Sep 2003
Distribution: Mandriva 2006,OpenSuse 10.1
Posts: 154
Original Poster
Rep:
|
thanx that command brought up local loopback and now Webmin comes up when I put the Localhost address in browser. One followup question. Will the local loopback always come up now on bootup or do I have to change some file etc?
thanx,
alan
|
|
|
03-26-2004, 05:02 PM
|
#5
|
Member
Registered: Aug 2003
Location: Dominica
Distribution: RedHat, FC1, FC3, FC4
Posts: 266
Rep:
|
check it out and let me know....i believe it should as long as the network service starts on boot
|
|
|
03-26-2004, 08:33 PM
|
#6
|
Member
Registered: Sep 2003
Distribution: Mandriva 2006,OpenSuse 10.1
Posts: 154
Original Poster
Rep:
|
unfortunetly the local loopback does not come up on bootup. I did some checking and i do have the ifcfg-lo file w/the proper settings in it but it is not running on boot. Any suggestions on how I would get ifcfg-lo to run on startup....
alan
|
|
|
03-27-2004, 12:02 AM
|
#7
|
Member
Registered: Feb 2004
Posts: 73
Rep:
|
Try adding the command /sbin/ifconfig lo up 127.0.0.1
to wherever your INIT starts up your network interfaces. Its possible, although unlikely, that the localhost interface may be commented out or not even in the config file.
|
|
|
03-27-2004, 06:16 PM
|
#8
|
Member
Registered: Aug 2003
Location: Dominica
Distribution: RedHat, FC1, FC3, FC4
Posts: 266
Rep:
|
Does your network service actually start up?
run: /sbin/service network status
to see if the service is running
also check in your folder containing your network-scripts
/etc/sysconfig/network-scripts/
for me...(on RedHat)
to see if theres a file sumtin like ifcfg-lo.
it nomally contains
DEVICE=lo
IPADDR=127.0.0.1
NETMASK=255.0.0.0
NETWORK=127.0.0.0
BROADCAST=127.255.255.255
ONBOOT=yes
NAME=loopback
let i know
|
|
|
03-27-2004, 06:49 PM
|
#9
|
Senior Member
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028
Rep:
|
You could also check your log file after boot to see if it encountered any problems bringing up the network.
less /var/log/messages
|
|
|
03-28-2004, 07:39 PM
|
#10
|
Member
Registered: Sep 2003
Distribution: Mandriva 2006,OpenSuse 10.1
Posts: 154
Original Poster
Rep:
|
thanx for the answers. i do have the ifcfg-lo file in etc/networking-scripts. i compared it to my home computer which is also running mandrake 9.1 and they are identical. does anyone know which script calls ifcfg-lo so i can check that out? I shoul add that my dial-up connection works fine all the time. does that mean my network services is starting ok? I also have the output from the network status command:
[root@localhost cot]# service network status
Configured devices:
lo ppp0 tr0
Currently active devices:
ppp0
Also was poking around in etc/rc.d/init.d/networking and the only line I saw that pertained 2 bringing up the Local Loopback that I could make was:
# bring up loopback interface
action "Bringing up loopback interface: " ./ifup ifcfg-lo
Does this look right? I come from windoze world so reading shell scripts is not part of my usual troubleshooting procedure....
alan
Last edited by eroica; 03-29-2004 at 03:00 PM.
|
|
|
03-29-2004, 05:55 PM
|
#11
|
Member
Registered: Aug 2003
Location: Dominica
Distribution: RedHat, FC1, FC3, FC4
Posts: 266
Rep:
|
Yes...that script is correct....
What your service network status command is retruning indicates that only ur ppp device is active. I take that to be your dial-up connection. Ensure that you ifcfg-lo file has the line
ONBOOT=yes
If your network service is starting up properly...and the logs indicate nothing....try running the "ifup lo" command on startup...
|
|
|
03-31-2004, 01:20 PM
|
#12
|
Member
Registered: Sep 2003
Distribution: Mandriva 2006,OpenSuse 10.1
Posts: 154
Original Poster
Rep:
|
hello,
here is contents of ifcfg-lo:
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
where would i put the ifup lo command? I guess what I am asking is who invokes the ifcfg-lo file. Coming from Windows I would for example be looking in the autoexec.bat file. How does ifcfg-lo or any ifcfg file get "called"? and once again I would assume if my ppp0 interface is working does that imply network services has started ok?
alan
Last edited by eroica; 03-31-2004 at 02:33 PM.
|
|
|
03-31-2004, 03:29 PM
|
#13
|
Member
Registered: Sep 2003
Distribution: Mandriva 2006,OpenSuse 10.1
Posts: 154
Original Poster
Rep:
|
hello again, in the words of emily latella "never mind". I'm sorry I didnt RTFM b4 posting. Looking closer in Mandrake CC under Draksvcs I had networking unchecked. As soon as i checked it and rebooted loopback is up on startup. But if someone still has the patience w/newbie. What does checking the Network service do? Why is ifcfg-lo now being run. And I would like to know because this computer has an old IBM token ring card that also now starts up. I would really like this not come up on every bootup. I do have ifcfg-tr0 set to bootup=no but when I do ifconfig -a I see it is up and running. In fact I think that is why I disabled networking when I first installed Linux because that token ring card was causing a hang on bootup. Thanx for every one input...
alan
|
|
|
04-01-2004, 04:58 PM
|
#14
|
Member
Registered: Aug 2003
Location: Dominica
Distribution: RedHat, FC1, FC3, FC4
Posts: 266
Rep:
|
Network is the service controlling all the network devices....
Therefore checking it i believe sets it to be run on boot. Once this service is started all configured devices are setup and some are put up dependant on whether they are to come up on boot
|
|
|
All times are GMT -5. The time now is 04:12 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|