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
Situation Awareness
Managed Threat Detection
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

Configuring the Network

Updated on 2025-02-13 GMT+08:00

Configure the network so that Lite Server can communicate with the Internet. Network configuration involves the following two scenarios:

Binding an EIP to a Single Server

  1. Log in to the ModelArts management console.
  2. In the navigation pane on the left, choose AI Dedicated Resource Pools > Elastic Servers.
  3. Click the server name to go to the details page. On the displayed page, click the BMS name.

    Figure 1 BMS

  4. Click the EIPs tab and then click Bind EIP.

    The Bind EIP dialog box is displayed.

    Select the EIP to be bound and click OK.
    Figure 2 Binding an EIP

    NOTE:

    Only one EIP can be bound to a NIC.

Binding an EIP to Multiple Servers

NOTE:

All servers must be deployed in the same VPC which does not have a NAT gateway or default route.

  1. Buy an EIP.

    1. Log in to Huawei Cloud console.
    2. In the service list on the left, choose Networking > Elastic IP.
    3. Click Buy EIP.
    4. Retain the default settings and click Next.
    5. Confirm the configurations and select "I have read and agree to the Elastic IP Service Statement".
      • If you set Billing Mode to Pay-per-Use, click Submit.
      • If you set Billing Mode to Yearly/Monthly, click Pay Now.

        On the payment page, confirm the order information, and click Pay.

  2. Buy a public NAT gateway.

    1. Log in to Huawei Cloud console.
    2. In the service list on the left, choose Network > NAT Gateway.
    3. Click Buy Public NAT Gateway.
    4. Set VPC, Subnet, and Billing Mode. Retain the default settings for other parameters and click Next.
      Figure 3 Buying a public NAT gateway
    5. On the displayed page, confirm the information and click Submit.
      • If you set Billing Mode to Pay-per-Use, click Submit.
      • If you set Billing Mode to Yearly/Monthly, click Pay Now.

        On the payment page, confirm the order information, and click Pay.

      NOTE:

      The VPC and subnet must be that of the server.

  3. Add an SNAT rule.

    SNAT translates private IP addresses into EIPs, allowing servers in a VPC to share an EIP to access the Internet securely and efficiently.

    1. On the Public NAT Gateways page, click the name of the created NAT gateway.
    2. In the SNAT Rules tab, click Add SNAT Rule.
    3. In the displayed dialog box, configure the SNAT rule as follows:
      • Scenario: Select VPC.
      • Subnet: Choose an existing subnet.
      • EIP: Select a created EIP.
    4. Click OK.

  4. Configure a DNAT rule.

    By adding a DNAT rule, the servers in a VPC can access services using SSH. For each server, a port corresponds to a DNAT rule, and one port can be mapped to only one EIP.

    1. In the DNAT Rules tab, click Add DNAT Rule.
    2. In the displayed dialog box, configure the DNAT rule as follows:
      • Scenario: Select VPC.
      • Port Type: Select Specific port.
      • Protocol: Select TCP.
      • EIP: Select a created EIP.
      • Outside Port: The recommended value ranges from 20000 to 30000. Ensure that the port number is unique.
      • Instance Type: Click Server and select a server.
      • NIC: Select a NIC.
      • Inside Port: Choose 22.
    3. Click OK.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback