This topic describes how to add a static route.

Procedure

  1. Log in to the Delphix Engine as the sysadmin user and switch to the network route context.

    delphix network route> list
    DESTINATION      GATEWAY       OUTINTERFACE  PROTOCOL
    default          172.16.0.1    ens192        DHCP
    10.1.2.0/24      -             ens224        KERNEL
    172.16.0.0/24    -             ens192        KERNEL
  2. Run the create command to add a new route.

    delphix network route> create
    delphix network route create *> set destination=192.168.11.0/24
    delphix network route create *> set gateway=10.1.2.1
    delphix network route create *> get
        type: NetworkRoute
        destination: 192.168.11.0/24 (*)
        gateway: 10.1.2.1 (*)
        outInterface: (unset)
  3. Optional outInterface Property

    Setting the outInterface property is optional, as the system will automatically determine the output interface based on the gateway address provided, as shown below.

  4. Committhe operation.

    delphix network route create *> commit
    delphix network route> list
    DESTINATION      GATEWAY       OUTINTERFACE  PROTOCOL
    default          172.16.0.1    ens192        DHCP
    10.1.2.0/24      -             ens224        KERNEL
    172.16.0.0/24    -             ens192        KERNEL
    192.168.11.0/24  10.1.2.1      ens224        STATIC