eth0 is up, but still have internet and printer configuration problems
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
eth0 is up, but still have internet and printer configuration problems
In addition to trying to find out how to correct my networking problems here and elsewhere online, I also contacted the mfr. of the router I use
(with my "other" 'puter and my network printer). The information I got was that if I could not get an IP address automatically, I should try a static IP.
That worked to the extent that Mandrake reports (in its network configuration tool) that eth0 is up.
However, I cannot do anything worthwhile with this. Specifically, I need to be able to be able to configure my Internet connection and to add the printer. (Both these tasks were done easily when I had RedHat9 on my now-retired P2, so it's a Mandrake problem and not a hw problem).
Internet is via cable modem->router. The printer's exact model is listed (hp6127), and the dialog boxes are saying that it is using hpijs drivers.
I entered the gateway IP 192.168.2.1 for the Internet connection, but it still will not connect. And now I get a strange error message that my problems with an internet connection, keep Gnome from working properly (although I can't figure out what it means by that)
For the printer, whenever I print a (standard) test page, the page never comes, and it reports that the printer is "not ready" (Same printer works just fine from the XP, though).
Please advise, and thanks in advance. TudeCat
Sorry for the delay; I had to wait until this evening to look into the questions:
Just a couple of questions:
-Did you set up Mandrake as DHCP?
-Do you have a DHCP client installed?
TudeCat: I don't remember getting asked that ... the installation I had
didn't prompt me for some things that I expected.
-What do you get if your run "ifconfig" as root?
-Are the link lights on your NIC reporting OK? (i.e. good physical connection between NIC and router)
TudeCat: I don't see lights (had to get a mirror to look behind the puter); which disturbs me as Mandrake's configuration tool (GUI) reports the interface eth0 as being "up".
-Can you access your router's administration feature? (usually through web or terminal) Through Mozilla, no .. I get "connection refused"
-Is your router set to serve DHCP locally? I believe so; the email from the router company's tech support (which was not very useful) said that I should only use the static IP if DHCP did not work.
-Is your router set to get DHCP or static address from the modem? am very sure that it is set to get DHCP from the cable modem.
-How was your internet connection (on the router) configured when you were running RH?
I don't remember, would have to reconnect the 'puter to check the settings (which I hope to do Sunday ... gotta go buy another mouse)
-Are your cable modem lights reporting normal? Yes, and I'm using the cable connection on my other (XP) 'puter right now
ifconfig: (am just going to type the eth0 section)
Up running Multicast MTU: 1500 Metric: 1
RXpackets 0 errors 0 dropped 0 overruns 0 frame 0
TX packets 73 errors 0 dropped 0 overruns 0 carrier 0 collisons 0 txqueuelen 100
Rx bytes 0 (0.0 b) Tx bytes 10828 (10.5 kb)
Interrupt 19 Base address 0x8c00
I am concerned because of the Rx being 0. And even though I purchased the retail box of Power pack (instead of the dumbed-down Discoverer) version, I think that there are options that I did not get a chance to decide on during installation. TudeCat
Ok, if there is a physical connection between your NIC and router there should be an orange or green light on your NIC, depending on the model.
Try exchanging the network cable for another. Make sure the ends are properly seated in their sockets. Try reversing the cable.
Do you know the model name and number of your NIC?
You also appear to be getting something mixed up here. There are TWO DHCP addresses you have to worry about here.
One is your public internet address that your router gets from your modem.
The other is your private LAN address that your computer gets from your router.
The only one your router or ISP is going to be concerned with is your public internet one. The other address(es) are for your own personal use on your LAN.
Ok, you say your XP PC is up and running and connected to the internet. Is it connected to the router or directly to the modem?
If it is connected to the router, can you use it to access the router's admin feature and check it's current settings? Also, is it getting a DHCP address from the router?
We at least know the problem is not your modem (if it works with your XP PC)... We need to further determine if it is the Linux box or your router or your NIC.
As for DHCP on your linux box try this:
-Goto Mandrake Control Center
-Goto Network and Internet section
-From there you should be able to use the "Expert" mode to configure your NIC as DHCP (as long as your router is really serving DHCP addresses)
I didn't get to do as much today as I hoped; due to threat of t-storms -- waited till night to boot up. I do have some answers, however. Will try to do more tomorrow, if weather allows.
>Try exchanging the network cable for another. Make sure the ends are >properly seated in their sockets. Try reversing the cable.
My old Linux (the P2) used the same cable, connected to the same port on the router, and was able to use printer and internet connection. So the port on the router and the cable should be OK. I did check the RJ45's at both ends; were seated. Reversing the cable might be hard; it goes halfway around the room.
>Do you know the model name and number of your NIC?
D-Link DFE-530TX+ When I was in Mandrake's miscellaneous-HW tool, it recognized the brand of the NIC.
>Ok, you say your XP PC is up and running and connected to the internet. >Is it connected to the router or directly to the modem?
XP is connected to the router.
>If it is connected to the router, can you use it to access the router's >admin feature and check it's current settings? Also, is it getting a DHCP >address from the router?
I need to find the password to the router's admin. features.
Ok, so if your XP PC is connected to the router and it's working fine, then the problem is not the router or the modem.
Check your XP's network settings and find out if it is set up as static or DHCP IP.
Also, do a "ipconfig /all" from the command line on the XP. Compare the results with the "ifconfig" from your linux PC. Subnet masks, IP ranges etc should all match up.
What are the results from checking the networking wizard in the Mandrake Control Center? You should be able to check your static/dynamic settings from there...
Also, do a "lsmod" from root, you should have a "ne2k-pci" module loaded for the D-Link (I believe)... There might be some problems with the driver, although I find it hard to believe that Mandrake doesn't have the right driver for a D-Link...
I was unable to get to anyplace to buy a mouse to use on my retired RH9 box .... hope to do that tomorrow. However, I do have a couple of things to report:
1- Using ipconfig /all on the xp, it reports having "dhcp enabled Yes".
2 - I ran lsmod on the Mandrake, and I did NOT see the ne2k-pci .... and the result of attempting drakconnect is that now the Mandrake reports the eth0 is "down", no IP. No lights at the back where the rj-45 is connected.
Is it possible that I missed something when I was installing the OS, that should have been installed? TudeCat
Ok, so if DHCP is enabled on your XP box, it's connected to the router and can access the internet fine, then your router is working and serving DHCP addresses fine.
That means that you need to make sure that your NIC on your Linux box is configured to use DHCP as well. This would normally be done through Mandrake control center.
When you modified the config through control center did you set it to get a dynamic address?
As for things that should be installed that might not have been, if you setup networking during the install as static, then the installed might not have installed a DHCP client, but I think that is unlikely.
You should use RPMDrake to check to see if either the "pump", "dhcpcd" or "dhcp-client" packages are installed (anyone of them should work)
If none of them are installed, install one. I use "dhcp-client", but "pump" is good too.
Now, there are a couple of files to check. The config for your NIC, if you want to avoid using drakconnect is in:
Also, the scripts to bring the NIC up and down are:
Ok, you will also want to check your drivers for your card. They may be compiled into the kernel, or you may need to load a module.
It should give you an error if it is not configured as a module, or if you have IO or IRQ conflicts. If you have IO or IRQ conflicts you will need to take a look at your /etc/modules.conf file. You may need to specify specific io and IRQ values with an alias entry:
alias eth0 ne2k-pci
options ne2k-pci io=0x3e8 irq=7
That's all I can think of for now. Try checking up the man pages for the scripts and files I've mentioned, you might be able to get some more info out of that. Let me know what the results are.
1) eth0 is only up if I configure using static IP's. Even after
installing pump (see next), and using 'ifup eth0', if I went to DrakConnect, and tried to use dhcp, it would report that eth0 was now down. If I tried to click the Connect command button (for Internet connection), it knocks eth0 down. I ended up going back to terminal window and using ifup eth0 again. ifconfig then said that it was up, showed the static IP that I had entered. BTW I tried the Help choice for this section of network configuration, and (the help application) yelp crashed from segmentation! I did try the man pages for a couple of the files you indicated, but some of them did not have topics.
2) Found that none of the three dhcp-related packages you listed were installed; I installed pump.
3) modprobe ne2k-pci failed "no such device" ...
"modprobe: insmod/lib/modules/2.4.22-10mdk/kernel/drivers/net/ne2k-pci.o.gz failed"
Now ... I have a question about this: how can I tell if it failed due to not being configured as a module, or due to IRQ conflict? (ifconfig reports an interrupt of 19)
4) ifcfg-eth0 has the following regarding the device:
alias eth0 8139too
First off, thanks to everyone who posted with help. I am writing this from my new Linux computer -- but part of the problem was something that I did not expect.
Aside from discovering that I had to install packages for a dhcp client which apparently didn't get installed with the rest of the OS ... it still wasn't working. One of the earlier posts in the thread advised to recheck the connectors and cable (which I had done after shutting down for the night) .... everything looked ok. Tonight when I got home, I noticed my cat pawing behind the computer to get a toy that had rolled behind it. I decided to make sure she hadn't pulled any cables, and removed and re-inserted the RJ45 connector. When I powered the computer up later, I noticed that the LED near the connector was now lit, and was green. I then noticed that the lights for that port of my router was on for the first time since I set this computer up. After loggin in, I launched DrakConnect, and was able to use DHCP, found that my Internet connection from this 'puter was now working.
Now I have to figure out why my network printer comes up "not ready" when I try to print a test page.
It's a hp6127; worked with my old Linux (RH9) box. And I'll have to find some kind of grating to put next to the computer to keep those kitty toys (and paws) away from behind the box, without blocking the airflow. TudeCat