Migrate to Virtual Machines enables your Migrate Connector to use two different network interface cards (NICs).
If you want to use two NICs, first install your migrate connector, then verify your existing NIC ID before adding a second NIC to your Migrate Connector using vSphere and Migrate to Virtual Machines.
To add a second NIC to your Migrate Conenctor, follow these steps:
Identify the first NIC ID on your Migrate Connector's VM by running the command:
sudo ls /sys/class/net/ | grep ens
Navigate to vSphere. Within vSphere, open the Network Adapter dialog:
Click Select VM > Edit Settings > Add New Device > Network Adapter.
Identify the newly added NIC ID on your Migrate Connector's VM by running the following command:
sudo ls /sys/class/net/ | grep ens
Take note of the new NIC ID as you will use it in your netplan configuration file:
Create a new netplan configuration file by running the command:
sudo vi /etc/netplan/config2.yaml
Edit your netplan configuration file to contain your new NIC configuration:
To configure a second NIC named ens224 to use DHCP, follow this example:
network: version: 2 renderer: networkd ethernets: ens224: dhcp4: yes link-local: []
To configure a second NIC named ens224 to use Static IP, follow this example:
network: version: 2 renderer: networkd ethernets: ens224: dhcp4: no addresses: IP/CIDR gateway4: GW address link-local: [] nameservers: addresses: DNS servers
Lastly, to apply your configuration, run the following command:
sudo netplan apply
For more information, see the Netplan configuration examples documentation.