Oracle by Example brandingCreating a Virtual Cloud Network

section 0Before You Begin

This tutorial shows you how to create a Virtual Cloud Network (VCN) and its associated resources in Oracle Cloud Infrastructure. This tutorial takes approximately 7 minutes to complete.

Background

Before you can launch an instance, you need to have a VCN to launch it into. In the VCN, you launch the instance into a subnet. A subnet is a subdivision of your VCN that you define in a single Availability Domain. The subnet directs traffic according to a route table. In this tutorial, you'll access the instance over the internet using its public IP address, so your route table will direct traffic to an Internet Gateway. The subnet also uses a security list to control traffic in and out of the instance.

What Do You Need?


section 1 Create a Virtual Cloud Network

  1. In the Console, click Networking.
    select the Networking tab
    Description of the illustration select_nw.png
  2. Select the sandbox compartment designated for you from the Compartment list on the left. In this example, select C01.
    select compartment
    Description of the illustration select-compartment.png
  3. Click Create Virtual Cloud Network.
    click Create VCN button
    Description of the illustration create_vcn_new.png
  4. In the Create Virtual Cloud Network dialog box, do the following:
    • Create in Compartment: Select the sandbox compartment, C01. By default, this field displays your current compartment.
    • Name: Enter a name for your cloud network. In this example, enter user01_Network.
    • Select CREATE VIRTUAL CLOUD NETWORK PLUS RELATED RESOURCES.

      Note: By selecting this option, you will be creating a VCN with only public subnets, if you want to create private subnets for your VCN, then choose the option CREATE VIRTUAL CLOUD NETWORK ONLY.

    • Accept the defaults for other fields.
    • Scroll to the bottom of the dialog and click Create Virtual Cloud Network.
      creating VCN
      Description of the illustration create-vcn.png

    A confirmation page with the details of the cloud network is diplayed. The cloud network has the following resources and characteristics:

    • CIDR block range of 10.0.0.0/16.
    • An Internet Gateway.
    • A route table with a default route rule to enable traffic to and from the Internet Gateway.
    • A default security list.
    • A public subnet in each Availability Domain.
    • The VCN will automatically use the Internet and VCN Resolver for DNS.
  5. Click Close.
    VCN confirmation

more information Want to Learn More?