Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
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.
|
|
|
01-31-2003, 03:55 PM
|
#16
|
LQ Guru
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700
Rep:
|
if its an ne2000 and its not using the ne module, which one is it using? What's in /sbin/lsmod
Cheers,
Finegan
|
|
|
02-01-2003, 03:17 AM
|
#17
|
LQ Newbie
Registered: Jan 2003
Location: Sweden
Distribution: Ubuntu Server
Posts: 27
Rep:
|
/sbin/lmod result..
Module Size Used by Not tainted
ide-cd 31432 0 (autoclean)
cdrom 30976 0 (autoclean) [ide-cd]
via82cxxx_audio 21304 0 (autoclean)
uart401 8068 0 (autoclean) [via82cxxx_audio]
ac97_codec 12136 0 (autoclean) [via82cxxx_audio]
sound 70196 0 (autoclean) [via82cxxx_audio uart401]
soundcore 6180 4 (autoclean) [via82cxxx_audio sound]
autofs 12228 0 (autoclean) (unused)
pcnet_cs 13952 0 (unused)
8390 7788 0 [pcnet_cs]
ds 8136 1 [pcnet_cs]
yenta_socket 12320 1
pcmcia_core 51168 0 [pcnet_cs ds yenta_socket]
ipt_REJECT 3448 6 (autoclean)
iptable_filter 2316 1 (autoclean)
ip_tables 14456 2 [ipt_REJECT iptable_filter]
mousedev 5236 1
keybdev 2688 0 (unused)
hid 20836 0 (unused)
input 5664 0 [mousedev keybdev hid]
usb-uhci 24524 0 (unused)
usbcore 71680 1 [hid usb-uhci]
ext3 64224 2
jbd 48180 2 [ext3]
----
I don't know if it's a ne-card or whatever that is, sorry
The only thing that I know about this card is that it is a
D-link DFE650 TX that's plugged in via a PCMCIA-port.
Cheers
//CG
Last edited by anon187; 02-01-2003 at 08:10 AM.
|
|
|
02-01-2003, 05:44 PM
|
#18
|
LQ Guru
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700
Rep:
|
pcnet_cs, okay I'm on crack, this is a laptop, duh, that was in there 7 posts ago...
ifconfig eth0 up brings back nothing, good, the ethernet card is there and recognized, I've been a bit of a fool with this whole ISA debacle.
ifconfig eth0 192.168.1.12 up
ping 192.168.1.1
If you can get to the router, and I'm assuming you're using a home router when I shouldn't be.... how does this thing connect to the outside world?
Cheers,
Finegan
|
|
|
02-01-2003, 07:53 PM
|
#19
|
LQ Newbie
Registered: Jan 2003
Location: Sweden
Distribution: Ubuntu Server
Posts: 27
Rep:
|
ok...
I changed the NIC's ip to 192.168.1.12 as you said, then I sent a ping request to the router (192.168.1.1).
I got this response: Destination Host Unreachable
This is my network:
2 hubs
1 router
1 ADSL-modem (2,5 mbit/s downstream and 780 kbit/s upstream)
Linux-comp >>
hub1 >>
Router (192.168.1.1 local) >>
Router (217.215.92.211 global) (static) >>
217.215.92.1 (ISP's Gateway) >>
The Net
And well yes, this is my home-network.
Is there more to do about this or am I doomed?
Plz, if there's more that you have to know about my comp/network plz ask me, I want to have my Linux-comp to run as a DNS/IRC/FTP/WWW-server...
|
|
|
02-01-2003, 10:35 PM
|
#20
|
LQ Guru
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700
Rep:
|
If the NIC was up and had an IP address, there would be an entry in the route table, so even if something was kazoo, there would be something else than Network unreachable... are you sure you're bringing the device up after giving it the IP:
ifconfig eth0 192.168.1.22 up
Cheers,
Finegan
|
|
|
02-02-2003, 04:00 AM
|
#21
|
LQ Newbie
Registered: Jan 2003
Location: Sweden
Distribution: Ubuntu Server
Posts: 27
Rep:
|
I'm not really so sure about what you mean with "bringing up" but after I write "ifconfig eth0 192.168.1.22 up" I just gets a new line,
After that I checked just "ifconfig eth0" and saw that it got the new ip.
Then I sent off the ping request to the router and got "Destination Host Unreachable".
One thing that I've tried is to activate a connection in the Network config (In the graphic interface) but it always fails...
-.-.-.-.-.-
Last edited by anon187; 02-02-2003 at 05:09 AM.
|
|
|
02-03-2003, 02:53 AM
|
#22
|
LQ Guru
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700
Rep:
|
If after bringing up the device with:
ifconfig eth0 192.168.1.22 up
and then checking to see if its up with:
ifconfig
Then the device is up and aware... and I was asuming your house runs on 192.168.1.x, so if I'm wrong, hit me with a stray cat alright... or possibly its one of those abnoxious ones that ignores IPs beneath its dhcp range, or ignores anything it hasn't assigned a lease to, but those are rare.
Also, check in "dmesg" to see if there were any errors when it initialized the card, the words "bad" and "error" will appear a lot, so there's little chance of any ambiguity, don't worry.
Cheers,
Finegan
|
|
|
02-03-2003, 04:38 AM
|
#23
|
Member
Registered: Jun 2002
Location: UK
Distribution: Used many over the years, main ones now "CentOS", Slackware and Arch
Posts: 31
Rep:
|
Let me go back to basics a bit, please.
You are using a kernel that supports modules and the kmod loader (your .config file in /usr/src/linux has CONFIG_MODULES=y and CONFIG_KMOD=y) ?
You are using a kernel that supports the NE2000 ISA card as a module (CONFIG_NETDEVICES=y, CONFIG_NET_ISA=y and CONFIG_NE2000=m)
If so then I must say the only way I ever got this to work with my venerable Kingston NE2000 ISA clones over the past few years was to set up the io and irq addresses in an options entry in the /etc/modules.conf file.
The details are in the Ethernet Howto
In brief,
Find out what your ethernet card io and irq address is set to. This MAY mean booting in DOS and using whatever software came with the cards to SET IO and IRQ addresses - this is what I had to do.
With that information in front of you, edit file /etc/modules.conf and make sure it has a couple of lines like this
alias eth0 ne
options eth0 ne-0 io=0x300 irq=3
The first of those forces the kernel to load the ne.o module as an alias for device eth0. The second forces the kernel to use the values supplied there for the io and irq addresses. The values I have put in there are the ones for MY gear here. You must, of course, insert whatever YOU need. Look I know it soulds siully to say that, but .....
IF you do that, and reboot, and then log in and run the command dmesg | more, you SHOULD be rewarded by seeing a line a bit like THIS
"eth0: NE2000 found at 0x300, using irq3."
Once you get THAT far, we can proceed a few steps further !
|
|
|
02-03-2003, 04:26 PM
|
#24
|
LQ Newbie
Registered: Jan 2003
Location: Sweden
Distribution: Ubuntu Server
Posts: 27
Rep:
|
Ping! Pong!
Ok, I understand if you're getting tired of me..
But this time I got so far (even without changing the files!) That I can ping my router and get a pong from it
One thing that I noticed while booting up this time was that it tries to activate the eth0 before it activates PMCIA, well, that won't work...
But later when I've logged in to KDE I started Xterm and wrote the command dmesg | more
I get almost exacly the line you posted, even with the IO and IRQ.
Later then I set the IP 192.168.1.2 as my other computer has got from the lease (they share the NIC because of that I haven't bought a new one yet) and then I sent off the ping to my router 192.168.1.1 and got a reply from it! =)
Ok, so far so good, at least I think so...
When I try to get a lease from the router instead it says that it tries to get it from 255.255.255.255 and when I ping that ip from another computer in my network I realize that there's nothing at that IP.
Why does it try to get something out of that ip? and how do I make it to get a lease?
Well, I hope you're going to tell me that later on in your own pace.
I'm just a excited newbie that wants to get on trying out the features in Linux and RedHat.
I do really, really appreciate your help!
|
|
|
02-03-2003, 04:50 PM
|
#25
|
LQ Guru
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700
Rep:
|
Maybe there's just something goofy about how your device is grabbing leases, regardless, you can ping the router, you're good:
ifconfig eth0 192.168.1.3 up
route add default gw 192.168.1.1
Then edit the file /etc/resolv.conf
and put in there some nameservers, for instance:
nameserver 216.200.176.4
Just like that, one line per nameserver... that IP actually is a nameserver, any will do, but for politeness's sake you should use your ISPs, although no one will notice otherwise really. Now you should be able to ping out.
johnvoisey,
Dude, you made the same mistake I did earlier, that little dmesg read with ne2000 listed, he's actually got the pcmcia card that uses pcnet_cs, heck I've got one of those, my money is on it being a Linksys PCM100.
Cheers,
Finegan
|
|
|
All times are GMT -5. The time now is 05:58 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
|
|