Linux - NetworkingThis 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.
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.
I'm trying out Mandrake 9.1 and am trying to configure Internet access using a CNet PCI 10/100mbps PRO200 davicom DM9102AF NIC or a Nforce2 MCP networking adapter. The Cnet is a PCI card and the other the onboard port. I not concerned with which one I end up using. I have heard the Nforce is difficult to configure though. I have run the Drakconnect wizard for both, it seems to see the card and onboard, but does not connect to the net. I tried a couple things to troubleshoot. Pinging 127.0.0.1 was successful. /sbin/ifconfig gave the following. (retyped so it may not be exact spacing)
Appears you need to install dhcpcd packages. They should be on the CDs if you installed from them. I'm sort of suprised it didn't install them when you configured the connection.
I'm sort of stuck on dial-up so never installed to much networking stuff but you can go to install software and search for dhcpc and it should list the ones available. Just check them off and install them.
I haven't ran Mandrake for a while, so bear with me...
I believe that card's chipset uses the "dmfe" driver. Type, as root, "lsmod | grep dmfe" to see if it's been loaded. If not, type "modprobe dmfe". Then try to bring up your interface by typing "ifconfig eth0 up 192.168.0.1". That will bring your ethernet card online and assign it the (arbitrary) IP address of '192.168.0.1'. Try this last step even if the first two don't work; I may be mistaken about the module required. If the ifconfig command doesn't give any errors, check that the interfaces is up by typing, "ifconfig eth0". This should tell you a whole bunch of stuff about the interface if it's up, or simply output an error if it's not. Post the results of these commands and that'll give us a better idea of where the problem lies.
Also try the commands with each nic. Both might not be active or up. What are you connecting the nic to? Some cable modems require a reboot if you change nics. I think with Mandrake you can hit esc during boot up to see what's getting loaded. Look for your nic or dhcpcd or an ip address or a fail
root@localhost rightcoast]# lsmod | grep dmfe
[root@localhost rightcoast]# modprobe dmfe
/lib/modules/2.4.22-10mdk/kernel/drivers/net/dmfe.o.gz: init_module: No such device
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
You may find more information in syslog or the output from dmesg
modprobe: insmod /lib/modules/2.4.22-10mdk/kernel/drivers/net/dmfe.o.gz failed
modprobe: insmod dmfe failed
[root@localhost rightcoast]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:08:A1:xxxxxxx
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:10 Base address:0x9000
another command you could use is lspci This will list your pci devices. It looks like eth0 is loaded. Did you get any errors or fails at boot up? dhcpcd -r should try to pick up an ip from your router. Have you tried both nics? The Mandrake control centre wizard thing should let you configure the nic for dhcp/automatic or manual/static. You could try netconfig from a terminal as root. Not sure if Mandrake has netconfig but can't hurt to try. You could also try a static or manual ip instead of dhcp.
btw I don't think it makes much difference what distro you use. If you have knopix handy you could boot it and see what driver it uses for your nic. I hear it's good at detecting hardware. Otherwise the main difference with distros is the way they update and install programs
It looks like your kernel isn't compiled with support for this network card. Don't worry; this isn't too hard to fix if you don't mind taking the time. The first thing you need to do is make sure you've installed the kernel source RPMs from the installation CDs. Next, go to the directory with your kernel source in it (/usr/src/linux-xxx) and type "make xconfig". (Note that you have to be in X Windows for this to work.) Now look in the device drivers section, under 10/100 networking (or something like that) and start looking for your card and chipset. When you find anything at all that might have something to do with your network card click on its box until it's filled with a dot. (This will create the module for it.) It won't really hurt anything to compile extra modules for networking hardware, so when in doubt do so. If you can't find anything that says "Davicom" you'll probably want to compile the "tulip" driver family.
When you've got everything selected how you want it, save the configuration, exit xconfig, and type the following:
Code:
make
make modules
make modules_install
make bzImage
make install
This will take a while to complete.
Once that's done, verify that you've got the new kernel image copied into /boot by doing "ls -l /boot" and looking for something with today's date. It'll probably be called "vmlinuz". If everything looks OK reboot and try the aforementioned commands again; you'll probably be able to get it working without much trouble after that.
The driver for that is "Davicom DM910x/DM980x support". I have the card and it works with that driver. Now if I can just figure out how to get my network to share the internet.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.