- Verify VM Size Compatibility
Ensure your VM size supports multiple NICs. Not all VM sizes in Azure allow multiple NICs. You can check the supported sizes in the Azure documentation.
- Add a Secondary NIC
Deallocate the VM by stopping it.
Navigate to the "Networking" section of the VM in the Azure portal.
Add a new NIC that is connected to the 172.0.0.0 virtual network.
- Assign a Static IP
After adding the NIC, go to the "IP Configurations" of the new NIC.
Change the IP assignment to "Static" and specify an IP address from the 172.0.0.0 range. Detailed steps can be found here.
- Configure the Operating System
Once the NIC is added, you need to configure the operating system of the VM to recognize and use the new NIC. This involves setting up routes for the secondary NIC. Instructions for this step are available here.
- Test Connectivity
Verify that the new IP address is functional and does not conflict with the Oracle Cloud Infrastructure.