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 getting proficient at working on problems from the command line instead of using a gui, since it gives me more feedback and it's easier for me to troubleshoot. One (of many maybe) area where I'm still glued to Mdk Control Center is the network config. I just installed Mdk 10 Official on my laptop and I have no net/lan connection.
I'm running an HP Pavilion n5295 and trying to get a D-Link DFE-670TXD PCMCIA card working over DHCP. When I use mandrake's utility, it binds the card to pcnet_cs, though I can't remember if it's tulip_cs that I should be using. After I set it up via Mdk Control Center, nothing changes, and I don't know what went wrong.
How can I get my network online, and do it over the command line?
"dmesg" will show you if the drivers were loaded during bootup
"lsmod" will should you all drivers currently loaded
- check if there is one loaded for you network card
if there is not one loaded then you need to find out (search google) for the module that your card uses, then do a "modprobe " for that driver
After that do "insmod" for you driver
once the drivers are loaded you can view the connections by doing
"ifconfig"
to assign an ip address "ifconfig eth0 192.168.0.1 up"
to just check status do "ifconfig"
See which module is loaded.. and do rmmod ~ to remove it..
You may have to remove the mii module first.. if it exists..
Try loading tulip_cs first, modprobe tulip_cs
then do dmesg to see if the card is recognised correctly..
Then ifup -a & ifconfig to see if it comes up correctly.
If not, remove that module and try the other..
Whichever module works, enter that into /etc/modules.conf
eg
alias eth~ module_name
and run modprobe -a
dmesg and lsmod don't show my eth1 connection. ifconfig only shows lo, but ifconfig -a shows all of my connections, including eth1.
when i try to remove pcnet_cs, which is what is bindhing to my card right now, i get pcnet_cs is busy, and it won't unbind. i also tried removing mii, but it doesn't exist. then i tried loading tulip_cs just for fun, and it's not even found! what is going on here?
The modules load in a specific order, so you cant pull one out if it is being used by another module..
I am surprised lsmod didn't show anything..
You were logged in as root when you tried it?
If a module isn't compiled, it's a bit hard to load it
That means you may need to rebuild the kernel to make the extra modules..
Boot without the card inserted and make a note of the modules listed with lsmod
Then insert the card and start it with Mandrake Control and see what's been added to lsmod
i think the 8390 is the pcmcia card. another weird thing that happens is that whenever the card is turned on and i restart, the system turns it off on the following reboot. then when i reboot again, the card turns on. this alternating happens even when the card has just been left in. i dont know if that has anything to do with the immediate problem. i remember from previous times that i had to wrestle with this card that it uses the realtek 8390 (or something like that) drivers.
yeah this stock kernel is awesome. everything runs im pretty sure, except for net of course.
ok, i rmmod tulip and got no change. what should i check on the card? i also noticed during bootup that i get an error message when the eth0 and eth1 are starting up. the message is something like
bringing up interface eth1: cannot find dhcp client [failed]
is there a way to see boot messages like dmesg for kernel startup? i do have an onboard accton en2242 eth connection built into my lapto, but i dont use it because it super shady and hasnt really worked with any OS since i chucked winME as far as i could :P It looks like maybe theres something wrong with my dhcp client itself from that message.
We're getting into some laptop specific areas here and I think you would be better served if you make a new post in the Laptop Forum.
That way you'll get a better group of geeks to help..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.