Use Extra Parameters In NIC Configuration File

Use nicextraparams to customize attributes in NIC configuration file. For example :

  1. Compute node cn1 with one physical NIC: eth1

  2. Configure network into networks table, configure nicips, nictypes and nicnetworks in nics table, like Configure Ethernet Network Interface

  3. In order to customize “MTU=1456 ONBOOT=no” for eth1. configure nicips, nictypes and nicnetworks in nics table , also need to configure nicextraparams as following:

    chdef cn1 nicextraparams.eth1="MTU=1456 ONBOOT=no"
    
  4. After confignetwork is executed in cn1, nicextraparams will overwrite the original value in /etc/sysconfig/network-scripts/ifcfg-eth1 as

    DEVICE=eth1
    IPADDR=13.1.89.7
    NETMASK=255.255.255.0
    BOOTPROTO=static
    ONBOOT=no
    HWADDR=42:f5:0a:05:6a:09
    MTU=1456
    
  5. Example 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"'