On 04/05/2011 06:09 PM, Bill Nottingham wrote:
carlopmart ([email protected]) said:
On 04/04/2011 08:02 PM, Bill Nottingham wrote:
carlopmart ([email protected]) said:
I need to add some ethtool options to a specific interface. I see
in /etc/sysconfig/network-scripts/ifup-eth file that I could do it
using ETHTOOL_OPTS variable under ifcfg-ethX config file. But I only
see to pass ethtool options with "-s" flag and I need to pass "-G"
options like:
"ethtool -G eth1 rx 1024 tx 1024".
Is it possible to do with ifcfg-ethX config file or do I need to
put ethtool command under rc.local??
It is not currently possible with ifcfg-ethX... you can do it in
a udev rule, or rc.local, or your own custom init script. A udev
rule would be my preference, as that's conceptually the right place
for it (ties it to the device, etc.)
Thanks Bill. Where can I find some sample to do this under RHEL6??
An example:
/etc/udev/rules.d/71-ethtool.rules:
...
SUBSYSTEM=="net", ACTION=="add", NAME=="eth0", RUN+="/sbin/ethtool -G eth1 rx 1024
tx 1024"
SUBSYSTEM=="net", ACTION=="add", NAME=="eth3", RUN+="/sbin/ethtool eth1 -s wol
a"
Bill
Thanks Bill.
--
CL Martinez
carlopmart {at} gmail {d0t} com
_______________________________________________
rhelv6-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv6-list