Adding Ethernet to kernel without Network support configured
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.
Adding Ethernet to kernel without Network support configured
Hi,
I'm new to this forum (and Linux in general), so please let me know if I'm leaving information out.
I'm trying to add Ethernet support into a system running Mandrake 9.2, kernel 2.4.22. Network Device Support is not configured, and the Packet socket and Packet filtering options aren't either.
I have setup eth0
1.) verified that modules.conf aliases the device
/etc/modules.conf
alias eth0 8139too
2.) added ifcfg-eth0 to /etc/sysconfig/network-scripts
/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
3.) Installed dhclient
urpmi dhcp-client
I can ping localhost, but I am unable to obtain an ip address. When I try to bring eth0 up ('ifup eth0'), I get an error message indicating I need to configure Packet socket and Packet filtering in the config file. From my reading, dhcpcd requires these as well.
I want to avoid rebuilding the kernel, as there are V&V consequences for doing so.
I would like to understand what Packet Socket and Packet Filtering really provide (I'm not a networking guy), and if there is a way around rebuilding the kernel. If so,
what is it, if not, why not?
if I need to post additional information about the system, please let me know.
I think you're banging your head against a brick wall. If you leave the kernel networking code out of the kernel, you can't expect it to party. The kernel help lists dependencies, and things select & deselect each other in the Makefile. If you leave something essential out, it isn't built, and it's dependencies may not be either. Mandrake-9.2 and kernel 2.4.22 is quite old. You would probably need gcc-2.95-3, although gcc-3.3x might do it. If you have a cd/dvd you can probably grab the stock kernel from that.
Put at it's simplest, networks talk in packets. a socket is a way of communicating with a process. Filtering in this case is code for the kernel to make decisions about packets. I'm no programming guy.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.