Ask the Community
Groups
Linux bare metal protection for clients that have a default network adapter with a name other than eth0 - Connect IT Community | Kaseya
<main> <article class="userContent"> <h2 data-id="issue"><strong>ISSUE</strong></h2> <p></p> <h3 data-id="purpose">Purpose</h3> <p>Modify network settings for clients with network adapter names other than <code class="code codeInline" spellcheck="false" tabindex="0">eth0</code>.</p> <h3 data-id="description">Description</h3> <p>Clients that have a primary default network adapter with a name other than eth0 might not have their network settings applied properly in the BareMetal environment. The client might have no IP address at boot time, or might crash when attempting to change the IP address.</p> <p><i>Example Device Names</i>: eth1, ens32, enp3s0, p4p1.</p> <h3 data-id="cause">Cause</h3> <p>When creating the Hot BareMetal media a number of system configuration details, including the network settings and their device names, are written to a configuration file (found at <code class="code codeInline" spellcheck="false" tabindex="0">/bpab/nodes//config.xml</code> in the BareMetal environment). These device names are assigned by <code class="code codeInline" spellcheck="false" tabindex="0">udev</code>, and might not carry into the BareMetal environment.</p> <h3 data-id="resolution">Resolution</h3> <p>Editing the configuration file and reloading the baremetal executable should resolve the issue.</p> <p><b>Note</b>: Because the configuration file is written to the boot CD, changes made to it will not persist through a reboot. It is recommended that you make these changes after running the “Prepare Disks” option (which does not require a network connection and reboots the system on completion).</p> <ol start="1"><li>Interrupt the BareMetal interface by pressing Ctrl+c.</li> <li>Use vi to edit the config.xml file (located in the /bpab/nodes// directory).</li> </ol><p>vi /bpab/nodes/*/config.xml</p> <ol start="3"><li>Locate the primary network adapter entry in the XML tree under network &rarrow; netif.</li></ol><p><b>Note</b>: The device named lo is the loopback device and is <i>never</i> the primary network adapter. If this is one of only two entries, the other device is the primary network adapter.</p> <ol start="4"><li>Change the value of the ifname attribute of the primary network adapter to eth0.</li> <li>Write the file and quit vi.</li> </ol><p>:wq</p> <ol start="6"><li>Reload the BareMetal configuration.</li></ol><p>/bpab/baremetal -e</p> <ol start="7"><li>Launch the BareMetal interface.</li></ol><p>/bpab/baremetal 2> /dev/tty2</p> <ol start="8"><li>Proceed as normal.</li></ol> </article> </main>