El contenido no se encuentra disponible en el idioma seleccionado. Estamos trabajando continuamente para agregar más idiomas. Gracias por su apoyo.

Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
Help Center/ Workspace/ FAQs/ FAQs for Administrators/ How Do I Enable the Internet on Other Cloud Service Pages?

How Do I Enable the Internet on Other Cloud Service Pages?

Updated on 2024-02-27 GMT+08:00

Scenario

After you purchase a cloud desktop, the cloud desktop is in the VPC subnet by default and cannot access the Internet. You need to configure the NAT gateway to share an EIP so that the cloud desktop can access the Internet. You can use the quick entry on Workspace to enable the Internet, or access the NAT and EIP consoles to purchase services.

NOTE:

This section describes how to purchase NAT and EIP services so that the cloud desktop can access the Internet. You can use the quick entry on Workspace to purchase NAT and EIP services to enable the Internet. For details, see Configuring Workspace to Access the Internet.

Prerequisites

  • You have obtained the region, project, VPC, and subnet information of the desktop that needs to access the Internet.
  • You have the permission for performing operations on the NAT and EIP services.
    NOTE:
    • By default, a self-registered Huawei account has the operation permissions of all services on Huawei Cloud.
    • To use NAT and EIP, the IAM account created under the Huawei account must be added to the admin user group or a user group with NAT and EIP operation permissions. You can go to the IAM page to check whether the user belongs to the admin user group. If the user group is not an admin user group, grant the IAM account the permission to use the NAT and EIP services. For details, see Creating a User and Granting NAT Gateway Permissions and Creating a User and Granting EIP Permissions.

Procedure (Not Interconnecting to Windows AD)

Creating an EIP

  1. Log in to the console as the administrator.
  2. Click in the upper left corner and select the region and project where the desktop to access the public network is located.
  3. Click and choose Networking > Elastic IP in the service list.
  4. On the page displayed, click Buy EIP.
  5. Set the parameters by referring to the parameter description in section Assigning an EIP.

    NOTE:

    Select the region and project of the desktop that you want to access the public network.

  6. Click Next.
  7. Confirm the configurations and click Submit.

Buying a public NAT gateway

  1. Click and choose Networking > NAT Gateway in the service list.
  2. Click Buy Public NAT Gateway.
  3. Set the parameters by referring to the parameter description in section Buy a Public NAT Gateway.

    NOTE:

    Select the VPC and subnet to which the desktop that needs to access the Internet belongs.

  4. Click Next.
  5. Confirm the configurations and click Submit.
  6. On the page for adding a rule, click Cancel.

Checking whether the VPC has a route to the NAT gateway

  1. Click and choose Business Applications > Workspace in the service list.
  2. Click Tenant Configuration.
  3. Click the VPC name of the tenant to go to its basic information page.
  4. In the Networking Components area on the right of the page, click the number next to Route Tables to go to the route table list page of the VPC.
  5. Click the name of the target route table. The basic information list is displayed.
  6. Check whether there is a route whose next hop is the NAT gateway in the route list.

    The NAT gateway automatically creates a route 0.0.0.0/0 from the VPC to the NAT gateway to allow traffic from the VPC to the NAT gateway, as shown in Figure 1.

    Figure 1 Route to the NAT gateway
    • If the route shown in Figure 1 exists, go to 20.
    • If the route shown in Figure 1 does not exist, add such a route and go to 20.

Adding an SNAT rule

  1. Click and choose Networking > NAT Gateway in the service list.
  2. On the displayed page, locate the NAT gateway created in 12 and click Configure Rules in the Operation column.
  3. On the SNAT Rules tab page, click Add SNAT Rule.
  4. Set the parameters based on the parameter description in section Add an SNAT Rule.

    NOTE:

    Set Scenario to VPC, Subnet to Existing, and EIP to the EIP purchased in 7.

  5. Click OK.

    If the added SNAT rule is in the Running state, the rule is added successfully.

Verifying whether the desktop can access the public network through the NAT gateway

  1. Use the user account and password to log in to the desktop through the client to check whether the desktop can access the external network.

Procedure (Interconnecting to Windows AD)

Creating an EIP

  1. Log in to the console as the administrator.
  2. Click in the upper left corner and select the region and project where the desktop to access the public network is located.
  3. Click and choose Networking > Elastic IP in the service list.
  4. On the page displayed, click Buy EIP.
  5. Set the parameters by referring to the parameter description in section Assigning an EIP.

    NOTE:

    Select the region and project of the desktop that you want to access the public network.

  6. Click Next.
  7. Confirm the configurations and click Submit.

Buying a public NAT gateway

  1. Click and choose Networking > NAT Gateway in the service list.
  2. Click Buy Public NAT Gateway. The Buy Public NAT Gateway page is displayed.
  3. Set the parameters by referring to the parameter description in section Buy a Public NAT Gateway.

    NOTE:

    Select the VPC and subnet to which the desktop that needs to access the Internet belongs.

  4. Click Next.
  5. Confirm the configurations and click Submit.
  6. On the page for adding a rule, click Cancel.

Checking whether the VPC has a route to the NAT gateway

  1. Click and choose Business Applications > Workspace in the service list.
  2. Click Tenant Configuration.
  3. Click the VPC name of the tenant to go to its basic information page.
  4. In the Networking Components area on the right of the page, click the number next to Route Tables to go to the route table list page of the VPC.
  5. Click the name of the target route table. The basic information list is displayed.
  6. Check whether there is a route whose next hop is the NAT gateway in the route list.

    The NAT gateway automatically creates a route 0.0.0.0/0 from the VPC to the NAT gateway to allow traffic from the VPC to the NAT gateway, as shown in Figure 1.

    Figure 2 Route to the NAT gateway
    • If the route shown in Figure 1 exists, go to 20.
    • If the route shown in Figure 1 does not exist, add such a route and go to 20.

Adding an SNAT rule

  1. Click and choose Networking > NAT Gateway in the service list.
  2. On the displayed page, locate the NAT gateway created in 12 and click Configure Rules in the Operation column.
  3. On the SNAT Rules tab page, click Add SNAT Rule.
  4. Set the parameters based on the parameter description in section Add an SNAT Rule.

    NOTE:

    Set Scenario to VPC, Subnet to Existing, and EIP to the EIP purchased in 7.

  5. Click OK.

    If the added SNAT rule is in the Running state, the rule is added successfully.

Configuring DNS forwarding

  1. Log in to the DNS server as the administrator.
  2. On the taskbar in the lower left corner, click .
  3. Click on the right of the Start menu.
  4. The Server Manager window is displayed.
  5. In the navigation pane on the left, click DNS.
  6. In the SERVERS area, right-click a Server name and choose DNS Manager from the shortcut menu.
  7. The DNS Manager dialog box is displayed.
  8. Expand DNS. Right-click the computer name, and choose Properties from the shortcut menu.
  9. On the Advanced tab page, deselect Disable recursion (also disable forwarders) and click Apply.
  10. On the Forwarder tab page, click Edit, enter the default DNS server IP address of the desktop region in the text box, and click OK.

    NOTE:

    The default DNS server IP address of the desktop region can be obtained from the private DNS server addresses provided by Huawei Cloud.

Verifying whether the desktop can access the public network through the NAT gateway

  1. Use the user account and password to log in to the desktop through the client to check whether the desktop can access the external network.

Utilizamos cookies para mejorar nuestro sitio y tu experiencia. Al continuar navegando en nuestro sitio, tú aceptas nuestra política de cookies. Descubre más

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback