Skip to main content
Skip table of contents

CLI cookbook: adding a static route

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.

    ACTIONSCRIPT3
    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 createcommand to add a new route.

    ACTIONSCRIPT3
    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.

    ACTIONSCRIPT3
    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
JavaScript errors detected

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

If this problem persists, please contact our support.