(Optional) Buying a NAT Gateway and Adding a DNAT Rule
Skip this section if service VMs in the user-defined network do not need to communicate with the Internet.
If service VMs in the user-defined network need to provide services to the Internet, buy a NAT gateway and add a DNAT rule so that BMSs can share an EIP to reduce management cost.
Procedure
- Log in to the management console.
- Choose Service List > Network > NAT Gateway.
The NAT Gateway console is displayed.
- Click Buy NAT Gateway in the upper right corner.
- Configure required parameters.
- Region: Select the region to which the BMS created in section Buying a BMS belongs.
- Name: Enter a name as needed, for example, nat-5c15.
- VPC: Select the VPC created in section Preparing for the Deployment.
The BMS, user-defined network, and NAT gateway must be in the same VPC.
- Subnet: Select a subnet as needed.
- Type: Select a type as needed.
- Description: Enter description as needed.
- Click Buy Now. Confirm specifications and click Submit.
After the NAT gateway is created successfully, it is displayed in the list of NAT gateways.
- Click the NAT gateway name nat-5c15 to enter the page showing details of the NAT gateway.
- Click the DNAT Rules tab and then Add DNAT Rule, and specify the following information.
- Scenario: Select VPC.
- Port Type: Select All ports.
- Protocol: Select All.
- EIP: Select the EIP you have obtained in section Preparing for the Deployment.
- Private IP Address: Enter the vNIC IP address of the service VM configured in section Configuring the vNIC for the Service VM.
You must add a DNAT rule for the virtual NIC IP address of each VM.
- Click OK.
After the preceding operations are complete, service VMs can communicate with the Internet and the XenServer on BMS solution is deployed successfully.
Last Article: Configuring the vNIC for the Service VM
Next Article: Hyper-V on BMS

Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.