2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-03 03:50:08 +00:00

Added missing chdef statement

This commit is contained in:
Mark Gurevich 2017-02-24 08:34:27 -05:00
parent 5006290b62
commit 16d259dae5

View File

@ -5,6 +5,7 @@ The following example set the xCAT properties for compute node ``cn1`` to create
* Compute node ``cn1`` has two physical NICs: eth2 and eth3
* Bond eth2 and eth3 as ``bond0``
* Assign ip ``40.0.0.1`` to the bonded interface ``bond0``
Define attributes in the ``nics`` table
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -18,15 +19,15 @@ Define attributes in the ``nics`` table
b. Define ``bond0`` and bond ``eth2`` and ``eth3`` as ``bond0`` ::
chdef cn1 nictypes.bond0=bond \
nicdevices.bond0="eth2|eth3"
chdef cn1 nictypes.bond0=bond nicdevices.bond0="eth2|eth3"
chdef cn1 nicips.bond0=40.0.0.1
Add network object into the networks table
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Use the ``chdef`` command to add/modify the networks in the ``networks`` table ::
chdef -t network net40 net=20.0.0.0 mask=255.0.0.0 mgtifname=eth1
chdef -t network net40 net=40.0.0.0 mask=255.0.0.0 mgtifname=eth1
chdef cn1 nicnetworks.bond0=net40
Add ``confignetwork`` into the node's postscripts list