CLI cookbook: adding a static route
This topic describes how to add a static route.
Procedure
Log in to the Delphix Engine as the sysadmin user and switch to the network route context.
ACTIONSCRIPT3delphix 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
Run the
create
command to add a new route.ACTIONSCRIPT3delphix 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)
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.Commit
the operation.ACTIONSCRIPT3delphix 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