Linux - Newbie This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
02-05-2005, 01:03 PM
|
#1
|
Member
Registered: Jun 2003
Location: Thames Valley, UK
Distribution: RedHat from 4 -9, Fedora, Ubuntu, Centos 3 - 7, Puppy Linux, and lots of raspberry pi
Posts: 142
Rep:
|
Where to load a module ??
I have three nic's in my server, one of which is a legacy ISA nic (non plug and play) and can get it working using:
modprobe ne irq=5 io=0x300
and then
ifconfig eth2 192.168.0.1 netmask 255.255.255.0
This works fine. Then if I put the above into /etc/rc.d/rc.local sure enough it loads, but because it is one of the last things to load, it upsets everything else, such as firewall configuration.
Basically, I have to re-run the firewall config (I use guarddog). It then works OK.
Can I add the above lines to another place which will get them to be loaded much sooner in the startup process?
I've looked at modules.conf, but I'm not sure whether that would work or not (plus the syntax looks different).
Thanks - hopefully there is an easy answer.
|
|
|
02-05-2005, 01:08 PM
|
#2
|
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290
|
In Fedora, you would add the module to your /etc/modprobe.conf file. Some distros use /etc/modules.conf for this purpose. You can read the man pages on these two files for more information.
|
|
|
02-05-2005, 01:24 PM
|
#3
|
Member
Registered: Jun 2003
Location: Thames Valley, UK
Distribution: RedHat from 4 -9, Fedora, Ubuntu, Centos 3 - 7, Puppy Linux, and lots of raspberry pi
Posts: 142
Original Poster
Rep:
|
Thanks.
This is RH 7.3 - and there is no modprobe.conf file.
I have looked at the man page, but I am confused. I could load the module I guess (example of syntax would be very helpful), however I don't think I could load the ifconfig line in there.
What would be ideal is if it would set eth2 up when it sets up eth0 and eth1. BUT how do I get it to do that?
|
|
|
02-05-2005, 02:11 PM
|
#4
|
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290
|
OK, sorry, it's /etc/modules.conf in the RH 7.x series, and you can do man modules.conf to get some sense of the syntax. I think what you'd have to do is add a line to /etc/modules.conf as follows:
alias eth2 ne
options ne irq=5
options ne io=0x300
although to be honest, I'm not sure about this, since it's been awhile since I had to do this on a Red Hat box. You'll also want to make sure you have an /etc/sysconfig/network-script/ifcfg-eth2 file with the setup params for the device. Based on my quick read, the ifup script modprobes the device based on the /etc/modules.conf entry when it sets up the device.
At any rate, hopefully this will get you pointed in the right direction.
|
|
|
02-06-2005, 11:25 AM
|
#5
|
Member
Registered: Jun 2003
Location: Thames Valley, UK
Distribution: RedHat from 4 -9, Fedora, Ubuntu, Centos 3 - 7, Puppy Linux, and lots of raspberry pi
Posts: 142
Original Poster
Rep:
|
That's good advice. Thank you.
Will let you know how it goes.
|
|
|
02-07-2005, 07:15 AM
|
#6
|
Member
Registered: Jun 2003
Location: Thames Valley, UK
Distribution: RedHat from 4 -9, Fedora, Ubuntu, Centos 3 - 7, Puppy Linux, and lots of raspberry pi
Posts: 142
Original Poster
Rep:
|
Sadly, it didn't work.
I changed the modules.conf and included:
alias eth2 ne
options ne io=0x300 irq=5
I then added the config file for eth2 to the /etc/sysconfig/network-scripts/
It all boots up OK and it makes no mention of any problem with the modules.conf. It sets up all three nic's - but when it is finished all it has done is assign eth2's settings to eth1 and eth2 does not exist in the route.
Perhaps I have done something wrong, but I don't know what. It's like it sets eth2 but hasn't recognised that there is actually a card for it.
Just a thought, but is there another place I could put the original lines from rc.local that would be actioned much earlier in the startup?
I would prefer to do the modules.conf way if poss as it is much neater.
|
|
|
All times are GMT -5. The time now is 01:55 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|