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!
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.
How do I get the dhcp on madrake 7.1 to work. I set it up but it still doesn't work. I have a 3c509b and I cannot tell if its working properly in Mandrake. If this nic requires extra drivers how do I install them?
Old ISA NICs are a bit more of a hastle under Linux. You probably don't have to compile any drivers, they're already on there. Try the command: "lsmod"
If 3c509 isn't listed, then its no big deal. Try:
cat /proc/interrupts
Choose a number that isn't listed
modprobe 3c509 irq=x
Where X is that chosen number. If you get a pile of errors... try a different IRQ. Eventually you'll get the card to register (You'll just get another prompt and no errors). Then try:
The 3c509 is there. I did the dhcpcd eth0 as u ssuggested but it says its allrdy running if not to delte a file, and retry I did this and still not working. Its a cable modem connection if that will change anything. Since the nic showed up in lsmod does that mean it is working properly? thanx
your nic sounds like it's working alright. might wanna try a couple other things.
type "ifconfig etho up" to bring up your eth0 interface.
i'd double to make sure it's not something with your cable. a lot of cable companies restrict their networks based on mac address of your card. meaning, that if you put in a new nic, then you won't be able to access the network. my service used to be like that, and i changed nics all the time... so it was kinda irritating.
I also use the 3c509b isa. And under mandy 8.1 & 8.2 i havent had any problems with it. I just went into the control center and used the wizard. In debian i just told it to use the 3c509 driver in the kernel (2.2) and set up the /etc/network/interfaces for the network. Heres my config if you can use it:
i once had a 3c509b combo-E (or something like that) isa. And for some reason i never got that running(worked fine under win98) You can see your model on the card in the top left corner.
Okay, hopefully its not one of those grumpy cable companies... From the ground up though. First, to make sure the card is kosher. Try:
dmesg | more
and spacebar through that some. Its the list of everything the kernel recognizes as it loads (including what it recognizes from modules being loaded). In there should be some goop about 3com and eth0. Are there any errors near those lines?
If not, step 2, try:
dhcpcd eth0
ifconfig
Is there an entry for eth0 and does it have an IP address?
If so, then this is probably one of those funky cable companies that requires that you use their hostname or somesuch before their server will forward any packets. Oh, who is it?
The first command will try to get eth0 up using DHCP, the second command should show you statistics for eth0, indicating whether or not it is up and running.
If things still don't seem to be working, post the contents of /etc/sysconfig/network-scripts/ifcfg-eth0 and /etc/sysconfig/network.
Just loaded turbolinux which is quite a bit faster than mandrake 7.1. I am still having the same problem though, and
DHCPcd eth0
isn't recognized as a command. The 3c509 is there and there are no errors on boot, and wheni run the network diagnostics test it says it up and good but still, no connections. I have downloaded and printed the manual but its networking section is not that great. Any more ideas that I can do? Will posting those scripts put me at risk by showing my network settings and such? Sorry but I am linux newb. Thanx
Turbolinux may use the other popular DHCP client "pump". Also, you typed part of the command name in caps in your post; Linux is case-sensitive, so if you typed it that way at the prompt, you would have gotten an error.
You still haven't posted the output of ifconfig; please do. If ifconfig shows no stats for eth0, try ifconfig -a. The "-a" option tells ifconfig to report all cards, even those that are inactive.
Quote:
Will posting those scripts put me at risk by showing my network settings and such?
No, and it's a pretty standard request from people trying to troubleshoot networking issues. The only thing that would really be of use to anyone with malicious intent would be your IP and perhaps your hostname. Since you're using DHCP, your IP is subject to change; and as far as the hostname, you can fill some of that in with "x"s if you don't want to give us the whole thing. You can do the same for the IP if you like; all we're trying to determine from the contents of these files is the fact that you're getting valid IP/subnet/gateway/etc values from your ISP via DHCP. If the contents of one of those files shows a valid IP address, try to ping it:
ping -c 5 xxx.xxx.xxx.xxx (replace xxx.xxx.xxx.xxx with the IP; the -c 5 tells ping to send 5 requests and then quit)
For that matter, you should get positive responses from:
ping -c 5 127.0.0.1
Since you're having the same problem under two different distros, it's possible that your basic network config might actually be OK, but we're missing a piece of critical info supplied by your ISP which allows you to connect to their DHCP server. What information in terms of host name, domain name, IP addresses, etc. did they give you?
OK, that looks good (although you left out half of the important info in /etc/sysconfig/network-scripts/ifcfg-eth0).
Post the results you get from my other suggestions:
Quote:
You still haven't posted the output of ifconfig; please do. If ifconfig shows no stats for eth0, try ifconfig -a. The "-a" option tells ifconfig to report all cards, even those that are inactive.
Quote:
If the contents of one of those files shows a valid IP address, try to ping it: ping -c 5 xxx.xxx.xxx.xxx (replace xxx.xxx.xxx.xxx with the IP; the -c 5 tells ping to send 5 requests and then quit)
For that matter, you should get positive responses from: ping -c 5 127.0.0.1
If ifconfig or the contents of /etc/sysconfig/network-scripts/ifcfg-eth0 show that you've been assigned a valid IP, you should at least be able to ping that address. If so:
- try to ping the IP of the gateway (the address on the "GATEWAY=" line in /etc/sysconfig/network).
If that works, then you're getting the correct basic information from the DHCP server.
-try to ping 66.218.71.80. If that works, you can at least "see" the Internet
-try to ping www.yahoo.com. If thid fails, look in /etc/resolv.conf; it should look very similar to this:
By the way, in /etc/sysconfig/network file, the GATEWAYDEV entry doesn't look right. Open the file in a text editor and change "cable modem" to "eth0".
Remember that when you make chnges to network settings, you usually have to restart network services, or reset your NIC to have the changes take effect. Do this as root.
To restart the network service:
service network restart
To reset your NIC:
/sbin/ifdown eth0
/sibin/ifup eth0
Or:
/sbin/ifconfig eth0 down
/sbin/ifconfig/eth0 up
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.