Step 3: Create a VCN
A VCN is a customizable, private network that you set up in Oracle Cloud Infrastructure. A subnet is a subdivision of a VCN.
Create a VCN
- Open the Oracle Cloud Console navigation menu, click Networking, and then click Virtual cloud networks.
- Click Create VCN. See Creating a VCN.
-
Enter or select the following:
-
Name: Enter a name. For example,
rpa-dynamic-env-vcn. Make sure to note the name of the VCN. You'll need this information when you create the instance pool. -
Create in compartment: Select the compartment created in Step 1: Create an Oracle Cloud Infrastructure Compartment.
-
IPv4 CIDR Blocks: Choose an appropriate CIDR block (for example,
10.0.0.0/16), ensuring it's not overlapping with any other networks .
-
- Click Create VCN.
- Click Subnets and follow the steps in the next section to create a public subnet.
Create a Public Subnet
- Click Create Subnet. See Creating a Subnet.
-
Enter or select the following:
-
Name: Enter a name. For example, enter a name such as
rpa-dynamic-env-subnet. Make sure to note the name of the subnet. You'll need this information when you create the instance pool. -
Create in compartment: Select the same compartment as the VCN.
-
IPv4 CIDR Block: Enter a smaller CIDR block for the subnet (for example,
10.0.0.0/24). - For Subnet Access, make sure you select Public Subnet.
-
- Click Create Subnet and follow the steps in the next section to create an internet gateway.
Create an Internet Gateway
-
Click Gateways, under Internet Gateways, click Create Internet Gateway. See Creating an Internet Gateway.
-
Enter or select the following:
-
Name: Enter a name. For example, enter a name such as
rpa-dynamic-env-internetgtw. -
Create in compartment: Select the same compartment as the VCN.
-
- Click Create Internet Gateway and follow the steps in the next section to update the route table.
Update the Route Table
-
Click Routing, under Route Tables, select the default route table. See Working with VCN Route Tables and Route Rules.
- Click Route Rules and then click
Add Route Rules.
Enter or select the following:
-
Target Type: Select Internet Gateway.
-
Destination CIDR Block: Enter
0.0.0.0/0to allow all outbound traffic. - Target Internet Gateway Compartment: Select the same compartment as the VCN.
- Target Internet Gateway: Select the internet gateway created in the previous step of this page.
-
- Click Add Route Rules and follow the steps in the next section to update the Security list to remotely access Windows instances.
Update the Security List to remotely access Windows instances
To remotely access Windows instances, the following steps are required to add the RDP (TCP/3389) port. For Linux machines, the SSH port (TCP/22) is added by default.
-
Click Security, under Security Lists, click select the default security list. See Security Lists.
- Click Security rules and then click
Add Ingress Rules.
Enter or select the following:
-
Source Type: Select CIDR.
-
Source CIDR: Enter
0.0.0.0/0. - IP Protocol: Select RDP (TCP/3389).
- Source Port Range: All
- Destination Port Range: 3389
- Description: An optional description of the rule.
-
- Click Add Ingress Rules and follow the steps Step 4: Create a Custom Image With Prerequisites Using the RPA cloud-init Script.