Is there a way to refresh the current configuration used by modprobe
with an updated modules.conf
file at the command line for Red Hat Linux 9.0?
2 Answers
If you're just testing modules out, you should be able to use modprobe <module>
and modprobe -r <module>
to insert and remove modules from the linux kernel, respectively. insmod
and rmmod
should also perform the same functions (inserting and removing).
EDIT:
It sounds like you're looking for the mapping
directive in /etc/networking/interfaces
. See man interfaces
for details on how to alias networking devices. Note that terminology-wise, an "alias" is a second, third, or otherwise additional IP for an IP device, resulting in an interface with multiple IPs. A "mapping" is used to map logical interface names (ifconfig LOGICAL_INTERFACE up
) to real interface names.
-
Thanks, I already know how to do that. The problem that I am having though is when I have the line <i>alias eth1 rt61</i>, it loads the modules on boot, but when I try to bring up the interface using <i>ifconfig eth1 up</i>, it returns <i>eth1: unknown interface: No such device</i>. So I've been trying to play around with the alias and options in modules.conf to try to get the interface up. Jun 20, 2010 at 8:10
-
@xolstice The alias options in modprobe.conf do not have anything to do with ethernet interfaces, and the configuration file is always used by modprobe with whatever latest edits you've made. If you're trying to make your system re-detect your network card (and re-attempt to load kernel modules for it), then you need to look into hardware detection (recent distros use udevd, but RHL9 is far from recent). If you're trying to alias the name of your interface (to use
ifconfig eth1
instead ofifconfig rt61
, then check out networking (/etc/network/interfaces, orman interfaces
). Jun 20, 2010 at 10:06 -
Old question but I think it can help someone who find an answer. In systemd modules loads with service systemd-modules-load
. You can check status with command:
sudo systemctl status systemd-modules-load.service
or reload modules with command:
sudo systemctl restart systemd-modules-load.service
modprobe
d?