plu*_*uto 3 debian linux-networking
您好,我如何在 debian 8 上通过重新启动来保留以下设置?
ethtool -K eth0 lro off
ethtool -K eth1 lro off
Run Code Online (Sandbox Code Playgroud)
我已经尝试使用以下选项将其添加到 /etc/network/interfaces.d/ifcfg-bond0 下:
ETHTOOL_OPTIONS='-K eth0 lro off'
ETHTOOL_OPTIONS='-K eth1 lro off'
Run Code Online (Sandbox Code Playgroud)
但这行不通。有人可以帮我吗?
我想到了多种可能性:
将这些行放入/etc/network/interfaces
(或您在下面使用的任何文件中interfaces.d
:
iface eth0 inet static
[...]
post-up /sbin/ethtool -K eth0 lro off
post-up /sbin/ethtool -K eth1 lro off
Run Code Online (Sandbox Code Playgroud)
(实际上也许这是最合适的地方,因为它将网络设置保存在一处。)
将这些行放入/etc/rc.local
在启动期间执行的exit 0
底部之前:
[...]
/sbin/ethtool -K eth0 lro off && /sbin/ethtool -K eth1 lro off
exit 0
Run Code Online (Sandbox Code Playgroud)将这些行放入crontab
能够运行命令的用户中,通过以下方式编辑crontab -e
:
[...]
@reboot /sbin/ethtool -K eth0 lro off && /sbin/ethtool -K eth1 lro off
[...]
Run Code Online (Sandbox Code Playgroud) 归档时间: |
|
查看次数: |
11539 次 |
最近记录: |