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
Help Center/ Virtual Private Cloud/ FAQs/ Connectivity/ Why Can't My ECS Access the Internet Even After an EIP Is Bound?

Why Can't My ECS Access the Internet Even After an EIP Is Bound?

Updated on 2025-01-17 GMT+08:00

Symptom

An ECS with an EIP bound cannot access the Internet.

Troubleshooting

Checking Whether EIPs Are Blocked or Frozen

Checking EIP Connectivity

Figure 1 shows the networking diagram for an ECS to access the Internet using an EIP.

Figure 1 EIP network diagram

Locate the fault based on the following procedure.

Figure 2 Troubleshooting procedure
  1. Step 1: Check Whether the ECS Is Running Properly
  2. Step 2: Check Whether the Network Configuration of the ECS Is Correct
  3. Step 3: Check Whether an EIP Has Been Assigned and Bound to the ECS
  4. Step 4: Check Whether an EIP Is Bound to the Primary Network Interface of the ECS
  5. Step 5: Check Whether Required Security Group Rules Have Been Configured
  6. Step 6: Check Whether Traffic from the ECS Subnet Is Blocked

Step 1: Check Whether the ECS Is Running Properly

Check the ECS status.

If the ECS status is not Running, start or restart the ECS.

Figure 3 ECS status

Step 2: Check Whether the Network Configuration of the ECS Is Correct

  1. Check whether the ECS's network interface has an IP address assigned.

    Log in to the ECS, and run ifconfig or ip address to check the IP address of the ECS's network interface.

    If both the primary and extended network interfaces of an ECS have an EIP bound, check whether the ECS has policy-based routes configured. If policy-based routes are not configured, refer to Configuring Policy-based Routes for a Linux ECS with Multiple Network Interfaces (IPv4/IPv6).

    If the ECS runs Windows, run ipconfig.

  2. Check whether the ECS's network interface has a virtual IP address.

    Log in to the ECS, and run ifconfig or ip address to check whether the ECS's network interface has a virtual IP address. If the ECS's network interface has no virtual IP address, run the ip addr add <virtual-IP-address> eth0 command to configure an IP address for the ECS's network interface.

    Figure 4 Virtual IP address of a network interface

    Check whether the ECS's network interface has a default route. If there is no default route, run ip route add to add one.

    Figure 5 Default route

Step 3: Check Whether an EIP Has Been Assigned and Bound to the ECS

Check whether an EIP has been assigned and bound to the ECS. If no EIP has been assigned, assign an EIP and bind it to the ECS.

The ECS shown in Figure 6 has no EIP bound. It only has a private IP address bound.
Figure 6 EIP status

Step 4: Check Whether an EIP Is Bound to the Primary Network Interface of the ECS

Check whether an EIP is bound to the primary network interface of the ECS. If there is no EIP bound to the primary network interface of the ECS, bind one.

You can view the network interface details by clicking the Network Interfaces tab on the ECS details page. By default, the first record in the list is the primary network interface.

As shown in the following figure, the EIP is bound to the primary network interface.
Figure 7 Checking whether the EIP is bound to the primary network interface of the ECS

Step 5: Check Whether Required Security Group Rules Have Been Configured

For details about how to add security group rules, see Adding a Security Group Rule.

If security group rules have not been configured, configure them based on your service requirements. (The remote IP address indicates the allowed IP address, and 0.0.0.0/0 indicates that all IP addresses are allowed.)

Step 6: Check Whether Traffic from the ECS Subnet Is Blocked

Check whether the network ACL associated with the subnet of the ECS's network interface blocks traffic.

You can configure the network ACL on the VPC console. Make sure that the network ACL rules allow the traffic from the ECS subnet.

Submitting a Service Ticket

If the EIP still cannot communicate with the Internet after you perform all the steps above, submit a service ticket.

Provide the following information to technical support.

Item

Description

Example

Value

VPC CIDR block

Required for gateway configuration

Example: 10.0.0.0/16

N/A

VPC ID

N/A

Example: 120b71c7-94ac-45b8-8ed6-30aafc8fbdba

N/A

CIDR block of subnet 1 (can be the same as the VPC CIDR block)

N/A

Example: 10.0.1.0/24

N/A

ECS ID

N/A

N/A

N/A

ECS IP address

N/A

Example: 192.168.1.192/24

N/A

ECS route information

N/A

N/A

N/A

EIP

Required for the ECS to access the Internet

Example: 10.154.55.175

N/A

EIP bandwidth

Maximum bandwidth size used by the ECS to access the Internet

Example: 1 Mbit/s

N/A

EIP ID

N/A

Example: b556c80e-6345-4003-b512-4e6086abbd48

N/A

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