[rhelv6-list] Adding ethtool options to ifcfg-ethX

Pasi Kärkkäinen pasik at iki.fi
Sat Apr 9 11:44:25 UTC 2011


On Mon, Apr 04, 2011 at 02:02:16PM -0400, Bill Nottingham wrote:
> carlopmart (carlopmart at gmail.com) 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.)
> 

There's an FRE for pre/post scripts in ifcfg-ethX files:
https://bugzilla.redhat.com/show_bug.cgi?id=600489

(yeah, it's reported against fedora).

-- Pasi




More information about the rhelv6-list mailing list