Creating a VCN
Create a VCN that instances, load balancers, and other resources can use to connect to each other and the internet. After you create a VCN, you must then manually create subnets, gateways, routing rules, and security settings before the VCN can connect to the internet or your on-premises network.
A virtual cloud network (VCN) is a software-defined network that you set up in the Oracle Cloud Infrastructure data centers in a particular region .
For more information about VCNs, refer to Overview of VCNs and Subnets.
After you create a VCN, see Creating a Subnet.
For a quick procedure that creates a VCN that you can try out immediately (that is, with subnets and an internet gateway), see the information about the "VCN with Internet Connectivity" wizard in Virtual Networking Wizards or see Scenario A: Public Subnet.
The VCN is then created and displayed on the Virtual Cloud Networks list page in the compartment that you chose. Use the network vcn create command and required parameters to create a VCN:
oci network vcn create --compartment-id compartment_id [OPTIONS]
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the CreateVcn operation to create a VCN.