Add Secondary NIC to Yarnman

This method only applies to yarnman <= 2.5.24 for yarnman >= 2.60 contact yarnlab support

The following outlines how a second VM NIC can be initiated in Yarnman

Prerequisites - 2nd NIC added in vSphere for device

Log on to Yarnman using ssh

Open editor for file interfaces by typing sudo nano /etc/network/interfaces

Sample Configuration

In our example, the initial interface that has been configured using bootstrap.sh script is
10.100.100.100 with netmask 255.255.255.0, default GW 10.100.100.1 and DNS 8.8.4.4

We now will add a second mgmt interface in mgmt subnet 192.168.1.0/24
IP addr 192.168.1.100 netmask 255.255.255.0

add lines below intial interface - in our vm the second nic will be ens*

*the second NIC name can be verified by typing ifconfig -a from system prompt

allow-hotplug ens34
iface ens34 inet static
netmask 255.255.255.0
address 192.168.1.100

to save, enter Ctrl O, then Enter, Ctrl X to exit

then reboot server sudo reboot (or restart network)

Â