LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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!

Notices


Reply
  Search this Thread
Old 05-20-2004, 10:31 PM   #1
TudeCat
LQ Newbie
 
Registered: May 2004
Location: Brooklyn
Distribution: SuSe 9.2
Posts: 17

Rep: Reputation: 0
eth0 is up, but still have internet and printer configuration problems


Hello,
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
 
Old 05-21-2004, 10:14 AM   #2
JoeDuncan
Member
 
Registered: Aug 2003
Location: Ottawa
Distribution: Redhat 5.2, 6.0, 6.1, Mandrake 7.2, 8.0, 9.1, 9.2, 10.0, Gentoo, Debian 3.1r0
Posts: 224

Rep: Reputation: 30
Just a couple of questions:

-Did you set up Mandrake as DHCP?

-Do you have a DHCP client installed?

-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)

-Can you access your router's administration feature? (usually through web or terminal)

-Is your router set to serve DHCP locally?

-Is your router set to get DHCP or static address from the modem?

-How was your internet connection (on the router) configured when you were running RH?

-Are your cable modem lights reporting normal?

I know this is pretty much a shotgun approach, but you didn't give us much to work with and were pretty vague... answer these questions and we might be able to help you out...
 
Old 05-22-2004, 08:32 PM   #3
TudeCat
LQ Newbie
 
Registered: May 2004
Location: Brooklyn
Distribution: SuSe 9.2
Posts: 17

Original Poster
Rep: Reputation: 0
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
 
Old 05-22-2004, 08:46 PM   #4
TudeCat
LQ Newbie
 
Registered: May 2004
Location: Brooklyn
Distribution: SuSe 9.2
Posts: 17

Original Poster
Rep: Reputation: 0
ifconfig: (am just going to type the eth0 section)
HWaddr: 192.168.2.102
Bcaset 192.168.2.255
Mask 255.255.255.0
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
 
Old 05-23-2004, 09:25 AM   #5
JoeDuncan
Member
 
Registered: Aug 2003
Location: Ottawa
Distribution: Redhat 5.2, 6.0, 6.1, Mandrake 7.2, 8.0, 9.1, 9.2, 10.0, Gentoo, Debian 3.1r0
Posts: 224

Rep: Reputation: 30
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
-Goto DrakConnect
-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)
 
Old 05-23-2004, 10:21 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,929

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
Assuming the network cable is good.
Try configuring a static IP address:
ifconfig eth0 192.168.xxx.xxx netmask 255.255.255.0 up
(where 192.168.xxxx.xxx = your desired IP address.)

It might be a IRQ problem. Is the motherboard BIOS plug and play disabled? I would also add the noacpi option to the bootloader.
 
Old 05-23-2004, 11:30 PM   #7
TudeCat
LQ Newbie
 
Registered: May 2004
Location: Brooklyn
Distribution: SuSe 9.2
Posts: 17

Original Poster
Rep: Reputation: 0
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.

Thanks again for your assistance. TudeCat
 
Old 05-24-2004, 11:13 AM   #8
JoeDuncan
Member
 
Registered: Aug 2003
Location: Ottawa
Distribution: Redhat 5.2, 6.0, 6.1, Mandrake 7.2, 8.0, 9.1, 9.2, 10.0, Gentoo, Debian 3.1r0
Posts: 224

Rep: Reputation: 30
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...
 
Old 05-25-2004, 08:39 PM   #9
TudeCat
LQ Newbie
 
Registered: May 2004
Location: Brooklyn
Distribution: SuSe 9.2
Posts: 17

Original Poster
Rep: Reputation: 0
Hello again,
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
 
Old 05-26-2004, 10:08 PM   #10
JoeDuncan
Member
 
Registered: Aug 2003
Location: Ottawa
Distribution: Redhat 5.2, 6.0, 6.1, Mandrake 7.2, 8.0, 9.1, 9.2, 10.0, Gentoo, Debian 3.1r0
Posts: 224

Rep: Reputation: 30
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:

/etc/sysconfig/network-scripts/ifcfg-eth0

Also, the scripts to bring the NIC up and down are:

/etc/sysconfig/network-scripts/ifup
/etc/sysconfig/network-scripts/ifdown

use:

ifup eth0

to bring eth0 up etc...

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.

Try doing:

modprobe ne2k-pci

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.
 
Old 05-27-2004, 12:55 AM   #11
TudeCat
LQ Newbie
 
Registered: May 2004
Location: Brooklyn
Distribution: SuSe 9.2
Posts: 17

Original Poster
Rep: Reputation: 0
OK, this is what I was able to try this evening:

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

TudeCat
 
Old 05-28-2004, 11:45 PM   #12
TudeCat
LQ Newbie
 
Registered: May 2004
Location: Brooklyn
Distribution: SuSe 9.2
Posts: 17

Original Poster
Rep: Reputation: 0
BIG NEWS! (am writing this from the Linux!)

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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Printer Configuration: "Print file sent, waiting for printer to finish", JetDirect Ed-MtnBiker Fedora 3 02-23-2007 01:41 PM
Eth0 configuration cucolin@ Linux - Hardware 3 11-10-2003 06:07 PM
eth0 configuration iandunn Linux - Networking 4 09-03-2003 03:26 PM
internet gateway problems (iptables configuration) woranl Linux - Networking 11 08-28-2003 12:41 AM
internet configuration problems m1ke Linux - Software 5 08-08-2001 06:27 AM


All times are GMT -5. The time now is 01:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration