Tuesday, October 3, 2023

VCN Administrative Tasks

 


Creating a VCN

To create a VCN using the OCI Console:


1. Go to the OCI Console.

2. Click Networking > Virtual Cloud Networks.

3. Click Create VCN.

4. Enter the required information and click Create VCN.


To create a VCN using the OCI CLI:

1. Run the following command:

oci vcn create --name <vcn_name> --cidr-block <cidr_block> --compartment-id <compartment_id>


Creating a Subnet

To create a subnet using the OCI Console:


1. Go to the OCI Console.

2. Click Networking > Virtual Cloud Networks.

3. Click the name of the VCN in which you want to create the subnet.

4. Click Subnets.

5. Click Create Subnet.

6. Enter the required information and click Create Subnet.


To create a subnet using the OCI CLI:

1. Run the following command:


oci subnet create --name <subnet_name> --cidr-block <cidr_block> --vcn-id <vcn_id>


Creating a Route Table

To create a route table using the OCI Console:


1. Go to the OCI Console.

2. Click Networking > Virtual Cloud Networks.

3. Click the name of the VCN in which you want to create the route table.

4. Click Route Tables.

5. Click Create Route Table.

6. Enter the required information and click Create Route Table.


To create a route table using the OCI CLI:

1. Run the following command:


oci route-table create --name <route_table_name> --vcn-id <vcn_id>


Creating a Security List

To create a security list using the OCI Console:


1. Go to the OCI Console.

2. Click Networking > Virtual Cloud Networks.

3. Click the name of the VCN in which you want to create the security list.

4. Click Security Lists.

5. Click Create Security List.

6. Enter the required information and click Create Security List.


To create a security list using the OCI CLI:

1. Run the following command:

oci security-list create --name <security_list_name> --vcn-id <vcn_id>


Attaching a Subnet to a Route Table

To attach a subnet to a route table using the OCI Console:


1. Go to the OCI Console.

2. Click Networking > Virtual Cloud Networks.

3. Click the name of the VCN in which the subnet is located.

4. Click Subnets.

5. Click the name of the subnet that you want to attach to the route table.

6. Click Edit.

7. Under Route Table, select the route table that you want to attach to the subnet.

8. Click Save Changes.


To attach a subnet to a route table using the OCI CLI:

1. Run the following command:

oci subnet update --id <subnet_id> --route-table-id <route_table_id>


Attaching a Security List to a Subnet

To attach a security list to a subnet using the OCI Console:


1. Go to the OCI Console.

2. Click Networking > Virtual Cloud Networks.

3. Click the name of the VCN in which the subnet is located.

4. Click Subnets.

5. Click the name of the subnet that you want to attach the security list to.

6. Click Edit.

7. Under Security List, select the security list that you want to attach to the subnet.

8. Click Save Changes.


To attach a security list to a subnet using the OCI CLI:

1. Run the following command

oci subnet update --id <subnet_id> --security-list-ids <security_list_id>


These are just a few examples of VCN administrative tasks that you can perform using the OCI Console and the OCI CLI. For more information, please refer to the OCI documentation.

No comments:

Post a Comment

Creating and Managing Subnets Administrative Tasks

  Creating a Subnet To create a subnet using the OCI Console: 1. Go to the OCI Console. 2. Click Networking > Virtual Cloud Networks. 3. ...