You are now viewing Migrate to Virtual Machines (formerly Migrate for Compute Engine). For Migrate for Compute Engine versions 4.x, see the 4.x documentation.

Add a second NIC to your Migrate Connector

Stay organized with collections Save and categorize content based on your preferences.

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:

  1. Identify the first NIC ID on your Migrate Connector's VM by running the command:

    sudo ls /sys/class/net/ | grep ens
    
  2. Navigate to vSphere. Within vSphere, open the Network Adapter dialog:

    Click Select VM > Edit Settings > Add New Device > Network Adapter.

  3. 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:

  4. Create a new netplan configuration file by running the command:

    sudo vi /etc/netplan/config2.yaml
    
  5. Edit your netplan configuration file to contain your new NIC configuration:

    1. To configure a second NIC named ens224 to use DHCP, follow this example:

      network:
        version: 2
        renderer: networkd
        ethernets:
          ens224:
           dhcp4: yes
      
    2. 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
           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.