Create a virtual cloud network (VCN) that adheres to the security rules and IP address requirements.
While creating a VCN, adhere to the following:
- Security rules: To enable communication between your local network or a compute and the DB system, configure the subnets of your VCN subnets with security rules. These rules permit traffic from specific IP addresses and ports, or ranges of IP addresses and ports, between resources. See Network Security Rules.
- IP address requirements: When you define your CIDR block, note
the IP address requirements:
- The Networking service reserves three IP addresses in each subnet. See Reserved IP Addresses.
- A standalone MySQL DB system requires three IP addresses for the following: the DB system, the compute instance hosting the MySQL instance, and for maintenance and upgrade tasks on the MySQL instance.
- A highly available MySQL DB system requires up to seven IP addresses for the following: the DB system, one per compute instance hosting the MySQL instance (three in total), and one per MySQL instance for maintenance and upgrade tasks (up to three in total).
Using the Console
Use the Console to create a virtual cloud network (VCN) that enables you to connect to a compute instance and interact with a DB system.
- You do not have an existing VCN with a private and public regional subnet present in your tenancy.
- Open the navigation menu, select Networking, and then select Virtual Cloud Networks.
- In the Virtual Cloud Networks page, click Start VCN Wizard.
- In the Start VCN Wizard dialog box, select Create VCN with Internet
Connectivity, and click Start VCN Wizard.The VCN wizard creates a VCN, public and private regional subnets, and internet, service, and NAT gateways.
- In the Create a VCN with Internet Connectivity panel, provide the
- Basic Information: Enter the VCN Name, and select the Compartment where you want to create your VCN and its components such as private and public subnet, internet gateway, NAT gateway, and service gateway.
- Configure VCN and Subnets: Provide the following
It is recommended to accept the default values of the VCN and subnet configuration. Also, you cannot change these values of the configuration later.
- VCN CIDR Block: Specify the CIDR block for the VCN. Specify a value between /16 and /30. For example, 10.0.0.0/16 and 10.0.0.0/30.
- Public Subnet CIDR Block: Specify the public subnet CIDR block. For example, 10.0.0.0/24. The public subnet CIDR block must not overlap with the private subnet CIDR block.
- Private Subnet CIDR Block: Specify the private subnet CIDR block. For example, 10.0.1.0/24. The private subnet CIDR block must not overlap with the public subnet CIDR block.
- Use DNS hostnames in this VCN: If you plan to use VCN DNS or a third-party DNS, select the check box for instance hostname assignment.
- Tags: Click Show Tagging Options to open Tags. Specify or select the Tag Namespace, Tag Key, and Tag Value.
- Click Next.
- Review the settings, and click Create.
- Click View Virtual Cloud Network.