Create a virtual cloud network (VCN) to use in this environment.

  1. Select [≡] > Networking > Virtual cloud network.
  1. Select the compartment sios20-c created in the previous step in Compartment, then click Create VCN.
  1. Enter the following value in the displayed form and click Create VCN.
Item Value
Name sios20-vcn
Create In Compartment sios20-c
IPv4 CIDR blocks
IPv4 CIDR blocks 10.0.0.0/16
DNS Resolution Enable
DNS Label (Default. The one generated from the virtual cloud network name is fine)
DNS Domain Name Cannot be modified (read only)
IPv6 Prefixes
All the items (Default)
  1. You can see that the sios20-vcn virtual cloud network has been created.

The OCI resources to be created in the created VCN are described below.

Creating an Internet Gateway

  1. Open the created sios20-vcn details page and click Internet Gateways > Create Internet Gateway.
  1. Enter the following values in the form that appears and click Create Internet Gateway.
Item Value
Name sios20-igw
Create In Compartment sios20-c
  1. Check in the list that sios20-igw has been created.

Next, create other resources in the same way you created the internet gateway.

Creating a NAT gateway

On the sios20-vcn details page, click NAT Gateways > Create NAT Gateway, enter the values in the form that appears, and click Create NAT Gateway.

Item Volume
Name sios20-ngw
Create In Compartment sios20-c
(IP address type) Ephemeral Public IP Address

Creating a service gateway

On the sios20-vcn details page, click Service Gateways > Create Service Gateway, enter the values in the form that appears, and click Create Service Gateway.

Item Volume
Name sios20-sgw
Create In Compartment sios20-c
Services All NRT Services In Oracle Service Network

Editing/creating a security list

Configure the following two security lists:

  • Default Security List for sios20-vcn (Edit an automatically generated list when creating a VCN)
  • sios20-sl (Create a new list)

Editing Default Security List for sios20-vcn

  1. On the sios20-vcn details page, select Security Lists and click Default Security List for sios20-vcn in the list.
  1. On the Default Security List for sios20-vcn details page, select Ingress Rules, then select all records in the list and click Remove. Confirm that the record has been removed from the list.
  1. On the Default Security List for sios20-vcn details page, click Ingress Rules > Add Ingress Rules.
  1. In the form that appears, create a record as follows.
Ingress Rules
Stateless Source Type Source CIDR IP Protocol
Disabled CIDR Specify the CIDR you want to access from outside
(e.g. Global IP of your PC, etc.)
All Protocols
Disabled CIDR 10.0.0.0/16 All Protocols
  1. On the Default Security List for sios20-vcn details page, select Egress Rules, select the only record in the list and click Edit.
  1. Edit the record in the form that appears (Edit only the Destination CIDR field).
Egress Rules
Stateless Destination Type Destination CIDR IP Protocol
Disabled CIDR 10.0.0.0/16 All Protocols

Creating sios20-sl

  1. On the sios20-vcn details page, click Security List > Create Security List.
  1. Enter the following values in the form that appears and click Create Security List.
Item Value
Name sios20-sl
Create In
Compartment
sios20-c
Ingress Rules Stateless Source Type Source CIDR IP Protocol
Disabled CIDR 10.0.0.0/16 All Protocols
Egress Rules Stateless Destination Type Destination CIDR IP Protocol
Disabled CIDR 0.0.0.0/0 All Protocols

Creating a route table

Configure the following two route tables:

  • Default Route Table for sios20-vcn (Edit an automatically generated table when creating a VCN)
  • sios20-rt (Create a new table)

Editing Default Route Table for sios20-vcn

  1. On the sios20-vcn details page, select Route Tables, then select Default Route Table for sios20-vcn in the list.
  1. On the Default Route Table for sios20-vcn details page, click Route Rules > Add Route Rules.
  1. Create a record by entering the following in the form that appears.
Route Rules
Target Type Destination CIDR Block Target Internet Gateway
Internet Gateway 0.0.0.0/0 sios20-igw

Creating sios20-rt

  1. On the sios20-vcn details page, click Route Tables > Create Route Table.
  1. Enter the values as follows and click Create.
Item Value
Name sios20-rt
Create In
Compartment
sios20-c
Route Rules Target Type Destination Target
NAT Gateway 0.0.0.0/0 sios20-ngw
Service Gateway All NRT Services In Oracle Services Network sios20-sgw

Creating subnets

Create the following three subnets.

  • sios20-subnet1 (Public)
  • sios20-subnet2 (Private)
  • sios20-subnet3 (Private)
    Follow the steps below to create subnets.
  1. On the sios20-vcn details page, click Subnets > Create Subnet.
  1. Enter values in the form that appears and click Create. Enter the following values for each of the three subnets.
Item Value
Subnet #1 Subnet #2 Subnet #3
Name sios20-subnet1 sios20-subnet2 sios20-subnet3
Create In
Compartment
sios20-c
Subnet Type Regional (Recommended)
IPv4 CIDR Block 10.0.1.0/24 10.0.2.0/24 10.0.3.0/24
IPv6 Prefixes (Nothing to configure)
Route Table
Compartment
Default Route Table
for sios20-vcn
sios20-rt
Subnet Access Public Subnet Private Subnet
DNS Resolution Do not check
DHCP Options
Compartment
Default DHCP Options for sios20-vcn
Security Lists Default Security List
for sios20-vcn
sios20-sl

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Post Comment