LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-17-2004, 08:39 AM   #1
TruckStuff
Member
 
Registered: Apr 2002
Posts: 498

Rep: Reputation: 30
New 2.6.2 Kernel + Networking


I just finished recompiling a new 2.6.2 kernel. When I loaded it up, I found that the af_packet module needed for networking was compiled as a module and not as part of the kernel. This caused the /etc/init.d/network script to throw errors about ARP not being part of the address family. When I do a modprobe af_packet and restart the network it works fine.

The trick is getting this to work when the system boots. My solution was to just put the following at the to of /etc/init.d/network:
Code:
/sbin/modprobe -q af_packet
I found that when I reran modprobe after loading this module the first time gave an error message, hence the -q switch. Does this seem reasonable or should I do this somewhere else? TIA.
 
Old 02-17-2004, 08:52 AM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Do you have a module.autoload file in /etc? Or perhaps a modules.autoload.d directory? The way my gentoo system is setup, I add the module to the correct kernel version file in /etc/modules.autoload.d/ and it loads it before starting any of the other services.

I know my slackware system doesn't quite work this way, but on that I add it to the rc.modules file in /etc/rc.d. I am sure your distribution has some place it intends all modules to be loaded at boot (that will occur before any services need the modules).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Networking issues with 2.6.3 Kernel [ucw]prophet Linux - Hardware 2 03-07-2004 02:56 PM
How I got networking working on slack 9.1 with Kernel 2.6.1 B1TW1SE Slackware 1 01-15-2004 09:23 AM
Project in Networking/Kernel Development abhijitgaikwad Programming 1 02-04-2003 06:56 PM
Building a Kernel for networking fin Linux - Networking 1 02-02-2002 12:15 PM
want help to analyse networking in kernel cybercop12us Programming 1 10-24-2001 04:15 PM


All times are GMT -5. The time now is 08:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration