你好,我可以通过重新启动一个debian 8坚持以下设置?
ethtool -K eth0 lro off ethtool -K eth1 lro off
我已经尝试使用以下选项将其添加到/etc/network/interfaces.d/ifcfg-bond0下:
ETHTOOL_OPTIONS='-K eth0 lro off' ETHTOOL_OPTIONS='-K eth1 lro off'
但是这不起作用。 有人可以帮我吗?
想到多种可能性:
把行放入/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
(实际上也许这是最合适的地方,因为它将networking设置保留在一个地方。)
将行放入启动过程中执行的/etc/rc.local中,然后exit 0底部:
[...] /sbin/ethtool -K eth0 lro off && /sbin/ethtool -K eth1 lro off exit 0
将这些行放入可以运行命令的用户的crontab中,通过crontab -e编辑:
[...] @reboot /sbin/ethtool -K eth0 lro off && /sbin/ethtool -K eth1 lro off [...]