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. |
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.
|
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? |
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. |
That's good advice. Thank you.
Will let you know how it goes. |
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 07:38 PM. |