Hello all,

In reply to my own earlier e-mail, i now just use the following dirty  
fix. It uses the bonding-opts parameter (which can be set per  
interface) to set the ETHTOOL_OPTS. It is not ideal, but as long as  
you do not need bonding on that interface, it should not matter (I  
guess). Here is the patch for post_install_network_config:

[nas...@panoramix snippets]$ diff -aNr post_install_network_config  
post_install_network_config_tjk
118a119,124
 >             # TJK fix: use bonding_opts for ethtoolops
 >             #if $bonding_opts != "" and $bonding.lower() == ""
 > cat >> $devfile << EOF
 > ETHTOOL_OPTS="$bonding_opts"
 > EOF
 >             #end if

I can now set the options via:

  /usr/bin/cobbler system edit --name=node11 --interface=eth1 -- 
mac=00:0A:E4:14:0E:A3 --ip=10.0.0.55 --netmask=255.255.255.252 -- 
static=1 --bonding-opts="speed 100 duplex full autoneg off"

Perhaps, the maintainers of cobbler want to consider to add  
ETHTOOL_OPTS as new feature in future releases.

Kind regards,

Tom





On Jun 3, 2009, at 12:44 PM, Christian Horn wrote:

> On Wed, Jun 03, 2009 at 12:31:40PM +0200, Tom Kleiberg wrote:
>>
>> I am trying to force the ethernet-card settings on my FC8 machines.
>> One way of doing this is to use the ifcfg-ethX scripts
>> (see 
>> http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html)
>> .
>> This requires that an extra parameter is added to these scripts,
>> namely ETHTOOL_OPTS.
>
> For this i use ksmeta-vars eth0force100full, eth1force100full
> etc. which are checked by a snippet and appropriate line is
> inserted into the network-device configfile.
>
> Not optimal solution, also i am checking for each ethX-inter-
> face literally and couldnt get a 'for i in ethXforce100full'-
> line to work.
>
>
> Christian
> _______________________________________________
> cobbler mailing list
> [email protected]
> https://fedorahosted.org/mailman/listinfo/cobbler

_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to