编译到内核 2.4 时,如何传递绑定驱动程序的模块参数?

编译到内核 2.4 时,如何传递绑定驱动程序的模块参数?

我有一个旧的基于 2.4 内核的 Linux 设备,使用 NIC Bonding。它不是将 NIC Bonding 模块构建为模块并modprobe添加到系统中,而是直接编译到内核中。我想修改要添加的模块参数,mode=1 miimon=100以便使其不使用循环数据包发送,但我找到的所有示例似乎都假设该模块未编译到内核中,或者只是不编译似乎对我有用。

到目前为止,我已经尝试修改我的/etc/modules.conf文件以尝试添加

alias bond0 bonding
options bond0 mode=1 miimon=100
options bonding mode=1 miimon=100

基于我在网上发现的其他内容,我尝试将 bond0.mode=1 和bonding.mode=1 添加到 grub 中的内核命令行中,但无论如何,当我启动并检查“cat /proc/net/bonding/bond0”时’我总是看到这样一句话盯着我:

Bonding Mode: load balancing (round-robin)

我尝试过寻找可更改的设置sysctl/proc但一无所获。

答案1

我找到了——但不幸的是,这是个坏消息。 2.4.37.11 的文件内容如下Documentation/networking/bonding.txt

It is recommended to configure the driver as module sinceit is currently the only way to pass parameters to the driverand configure more than one bonding device.

所以无模块 = 不更改参数在这种情况下。对不起。

相关内容