SLES 12 Loading Module 8021q at startup (Searched)

Hi All,

I need to be able to load the 8021q module at startup. Most of the articles I have found do not apply to SLES12.

I have tried creating the /etc/sysconfig/kernel file and adding the following statement:
MODULES_LOADED_ON_BOOT=”8021q”

This did not work.

I suspect I need to modify something in /etc/modprobe.d or /etc/modules-load.d but cannot find any good documentation on what I need to do.

Here is the manual process I use to get the module loaded.

lsmod | grep 8021q

modprobe 8021q

lsmod | grep 8021q

8021q 28794 0
garp 14384 1 8021q
mrp 18778 1 8021q

Any advice will be greatly appreciated.

Regards,
WS

There was a similar post in the openSUSE forums a while back that may be
interesting:

https://forums.opensuse.org/showthread.php/502107-opensuse-13-2-load-module-at-boot

Based on that, I found that modules-load.d has a manpage. Since you said
you did not find any documentatin, you may want to try that:

man modules-load.d

From the manpage is this example:

EXAMPLE
Example 1. /etc/modules-load.d/virtio-net.conf example:

# Load virtio-net.ko at boot
virtio-net


Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below…

Thank you for steering me in the right direction. I created a 8021q.conf file in the /etc/modules-load.d/ directory rebooted and it successfully loaded the module.

#ls /etc/modules-load.d/
8021q.conf

more /etc/modules-load.d/8021q.conf

Load 8021q at boot

8021q

#After reboot

lsmod |grep 802

8021q 28794 0
garp 14384 1 8021q
mrp 18778 1 8021q

dmesg |grep 8021q
[ 18.961144] 8021q: 802.1Q VLAN Support v1.8

Great news! Thank-you for sharing your results.


Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below…