Skip to main content
Skip table of contents

CLI cookbook: configuring a second network interface

This topic describes how to configure a static IP address on a second network interface.

Procedure

  1. Add a NIC to the Delphix virtual machine. The specific procedure will depend on the platform. For example, on VMware, a VMXNET3 virtual network adapter can be added dynamically from vSphere or other administrative interfaces, and the Delphix Engine will recognize the new NIC without a reboot. On other platforms, a reboot may be required for the Delphix Engine to recognize the new virtual hardware.

  2. Log in to the Delphix Engine as the sysadmin user and switch to the network interface context. Then use the list command to view the available network interfaces, and select the new interface to be configured.

    CODE
    delphix network interface> list
    NAME    
    vmxnet3s0
    vmxnet3s1
    delphix network interface> select vmxnet3s1
    delphix network interface "vmxnet3s1"> get
        type: NetworkInterface
        name: vmxnet3s1
        addresses: (empty)
        device: vmxnet3s1
        macAddress: 0:c:29:e5:4c:c1
        mtu: 1500
        mtuRange: 60-9000
        reference: NETWORK_INTERFACE-vmxnet3s1
        state: DOWN
  3. Run the updatecommand and configure a static address.

    CODE
    delphix network interface "vmxnet3s1"> update
    delphix network interface "vmxnet3s1" update *> edit addresses.0
    delphix network interface "vmxnet3s1" update addresses.0 *> set address=10.1.2.3/24
    delphix network interface "vmxnet3s1" update addresses.0 *> get
        type: InterfaceAddress (*)
        address: 10.1.2.3/24 (*)
        addressType: STATIC (*)
  4. Commit the operation.

    CODE
    delphix network interface "vmxnet3s1" update addresses.0 *> commit
    delphix network interface "vmxnet3s1"> get
        type: NetworkInterface
        name: vmxnet3s1
        addresses:
            0:
                type: InterfaceAddress
                address: 10.1.2.3/24
                addressType: STATIC
                state: OK
        device: vmxnet3s1
        macAddress: 0:c:29:e5:4c:c1
        mtu: 1500
        mtuRange: 60-9000
        reference: NETWORK_INTERFACE-vmxnet3s1
        state: OK
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.