odacli create-network
Use the odacli create-network command to create a network.
File Path
$ORACLE_HOME/opt/oracle/dcs/bin/odacli
Syntax
odacli create-network [-d|-no-d] -n interface -p ipaddress
-w {Public|Private|Dataguard|Backup|Other} -s subnetmask -g
gateway[-h] [-j] VLAN [-p]
Parameters
Parameter Description
--defaultnetwork
,
-d
Identifies the default network.
--gateway
,
-g
Defines the network gateway. The gateway is required for the
default network.
--help
,
-h
(Optional) Displays help for using the command.
--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}
--no-defaultnetwork
,
no–d
Identifies a network as not the default network. Use
--
defaultnetwork. -d
to identify a default network.
subnetmask
,
-s
Defines the Network Subnet Mask.
VLAN
,
-p
Add VLAN as a new network.
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 13-83 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 is not
a default network.
# odacli create-network -n sfpbond1 -p 192.0.2.15 -w Backup -s
255.255.255.0 -no-d
Chapter 13
odacli Network Commands
13-90