odacli create-network

Use the odacli create-network command to create a network.

Syntax

To create a network:

   odacli  create-network -n network interface name -p IP address -w [Public|Private|Dataguard|Backup|Other] -s  network subnet mask -g network gateway [-h]

Parameters


Parameter Description

--defaultnetwork, -d

Identifies the default network.

--gateway, -g

Defines the network gateway

--interface, -n        

Defines the name of the network interface.

--ipaddress, -p

Defines the network IP address.

--json, -j

 (Optional) Displays JSON output.

--networktype, -w

Defines the type of network. Options are: [Public|Private|Dataguard|Backup|Other]

subnetmask, -s

Defines the Network Subnet Mask.

-h

(Optional) Displays help for using the command.


Usage Notes

Use this command to create an additional network not done in create-appliance.

You are only allowed to create a network on the bond interface.

Example 9-15 Creating a Network

The following example creates a new network, sfpbond1, with IP address 192.0.2.15. The network is an additional network that uses subnet mask 255.255.255.0 and gateway 192.0.2.1.

# odacli create-network -n sfpbond1 -p 192.0.2.15 -w Backup -s 255.255.255.0 -g 192.0.2.1