This guide will walk you through the steps to create a private network and subnet, then set up a router for external communication. Finally, we will attach the network interface to the router and use this network with other resources like VM and Kubernetes. We will also explain how to attach a floating IP to the server for public access.
Step 1: Create a Private Network and Subnet
- Navigate to Networking Section:
- Go to the WafaTech Cloud dashboard and select `Networking` from the left-hand menu. - Create a New Network:
- Click on `+ Create Network`.
- Fill in the necessary details:
- Location: Select the desired location (e.g., Jeddah - KAUST).
- Name: Enter a name for your network (e.g., `Your-network-name`).
- CIDR: Enter the CIDR block for your network (e.g., `192.168.8.0/24`).
- DNS Name Servers: Enter the DNS servers (e.g., `1.1.1.1`, `8.8.8.8`). - Enable Subnet and DHCP:
- Toggle the `Subnet` and `Enable DHCP` options.
- Set the allocation pools (e.g., `192.168.8.10,192.168.8.254`).
- Click on `+ Create Network`.
Step 2: Create a Router for External Communication
- Navigate to Routers Tab:
- In the `Networking` section, click on the `Routers` tab. - Create a New Router:
- Click on `+ Create Router`.
- Fill in the necessary details:
- Location: Select the desired location (e.g., Jeddah - KAUST).
- Router Name: Enter a name for your router (e.g., `Your-router-name`).
- External Network: Select the external network (e.g., `ext_net`).
- Click on `+ Create Router`.
Step 3: Attach the Network Interface to the Router
- Add Interface to the Router:
- In the `Routers` tab, select your router (e.g., `Your-router-name`).
- Click on `+ Add Interface`.
- Select the subnet you created earlier (e.g., `Your-network-name-subnet: 192.168.8.0/24`).
- Click on `Add Interface`.
Step 4: Use the Network with Other Resources
- Creating a VM:
- When creating a virtual machine, ensure you select the private network created above.
- Do not select the public network during the server creation process. - Attaching a Floating IP:
- Once the server is ready, navigate to the `Floating IPs` tab in the `Networking` section.
- Allocate a new floating IP if necessary and attach it to your server for public access.
Summary
By following these steps, you have successfully created a private network and subnet, set up a router for external communication, and attached the network interface to the router. You can now use this network with various resources and attach a floating IP for public access. This configuration ensures that your internal network communication remains private while allowing external access as needed.
If you encounter any issues or need further assistance, please contact our support team.