Use Extra Parameters In NIC Configuration File
Use nicextraparams
to customize attributes in NIC configuration file. For example :
Compute node
cn1
with one physical NIC:eth1
Configure network into
networks
table, configurenicips
,nictypes
andnicnetworks
innics
table, like Configure Ethernet Network InterfaceIn order to customize “MTU=1456 ONBOOT=no” for eth1. configure
nicips
,nictypes
andnicnetworks
innics
table , also need to configurenicextraparams
as following:chdef cn1 nicextraparams.eth1="MTU=1456 ONBOOT=no"After
confignetwork
is executed incn1
,nicextraparams
will overwrite the original value in/etc/sysconfig/network-scripts/ifcfg-eth1
asDEVICE=eth1 IPADDR=13.1.89.7 NETMASK=255.255.255.0 BOOTPROTO=static ONBOOT=no HWADDR=42:f5:0a:05:6a:09 MTU=1456Example to add nicextraparams to bond interface
chdef cn1 nicextraparams.bond0='BONDING_OPTS="mode=active-backup;abc=100" MTU=6400 XYZ="4800" IOP="mode=1 phase=2"'