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/ Virtual IP Addresses/ Why Can't the Virtual IP Address Be Pinged After It Is Bound to an ECS Network Interface?

Why Can't the Virtual IP Address Be Pinged After It Is Bound to an ECS Network Interface?

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

Symptom

After you bind a virtual IP address to an ECS's network interface, you cannot ping the virtual IP address.

Troubleshooting

The issues here are described in order of how likely they are to occur.

Troubleshoot the issue by ruling out the causes described here, one by one.

Figure 1 Troubleshooting
Table 1 Troubleshooting

Possible Cause

Solution

Virtual IP address of the ECS's network interface

See Virtual IP Address of the ECS's Network Interface

Virtual IP address of the internal network interface of the ECS

See Virtual IP Address of the Internal Network Interface of the ECS

Security group or network ACL configuration

See Security Group or Network ACL Configuration

Virtual IP Address of the ECS's Network Interface

Check whether the source/destination check of the network interface is disabled and whether a virtual IP address is bound to the network interface.
  1. Log in to the management console.
  2. Click Service List and click Elastic Cloud Server under Computing.
  3. In the ECS list, click the name of the ECS.
  4. On the displayed ECS details page, click the Network Interfaces tab.
  5. Ensure that Source/Destination Check is disabled.
  6. Ensure that an IP address is displayed for Virtual IP Address on the network interface details page.

    If there is no virtual IP address, click Manage Virtual IP Address. On the displayed IP Addresses tab, click Assign Virtual IP Address.

NOTE:

To check whether a virtual IP address has been configured, ifconfig will not work. Use ip address instead. For more information, see Binding a Virtual IP Address to an EIP or ECS.

Virtual IP Address of the Internal Network Interface of the ECS

The following uses Linux and Windows ECSs as examples to describe how to check whether an ECS's network interface has a virtual IP address.

For a Linux ECS:
  1. Check if there is a network interface named ethX:X:

    ifconfig

    Figure 2 Checking for network interface ethX:X

    The command output in the preceding figure contains a network interface named ethX:X. 192.168.1.137 is its virtual IP address.

    • If there is a network interface named ethX:X, the ECS's network interface is correctly configured.
    • If the network interface ethX:X cannot be found, perform the following operations:
  2. If the command output does not contain a network interface named ethX:X, switch to the /etc/sysconfig/network-scripts directory:

    cd /etc/sysconfig/network-scripts

  3. Run the following command to create and then modify the ifcfg-eth0:1 file:

    vi ifcfg-eth0:1

    Add the following network interface information to the file:

    BOOTPROTO=static
    DEVICE=eth0:1
    HWADDR=fa:16:3e:4d:5b:98
    IPADDR=192.168.1.137
    GATEWAY=192.168.1.1
    NETMASK=255.255.255.0
    ONBOOT=yes
    ONPARENT=yes
  4. Press Esc, enter :wq!, and save the file and exit.
  5. Restart the ECS and run the ifconfig command to check whether the virtual IP address has been configured for the ECS.

For a Windows ECS:

  1. In the Start menu, open the Windows command line window and run the following command to check whether the virtual IP address has been configured:

    ipconfig /all

    Figure 3 Checking whether the virtual IP address has been configured

    In the preceding command output, check whether the value of IPv4 Address (192.168.10.137) is the IP address of the ECS's network interface.

    • If yes, the virtual IP address has been configured for the ECS's network interface.
    • If no, perform the following operations:
  2. Choose Control Panel > Network and Internet > Network Connections. Right-click the corresponding local connection and then click Properties.
  3. On the Network tab page, select Internet Protocol Version 4 (TCP/IPv4).
  4. Click Properties.
  5. Select Use the following IP address, and set IP address to the private IP address displayed in Figure 3. For example, 192.168.10.41.
    Figure 4 Configuring a private IP address
  6. Click Advanced.
  7. On the IP Settings tab, click Add in the IP addresses area.

    Add the virtual IP address configured in Figure 3. For example, 192.168.10.137.

    Figure 5 Configuring virtual IP address

Security Group or Network ACL Configuration

Check whether the ECS's security groups and the network ACLs associated with the subnet used by the ECS's network interface are blocking traffic.
  1. On the ECS details page, click the Security Groups tab and confirm that required security group rules have been configured for the virtual IP address. If the required security group rules have not been configured, click Change Security Group or Modify Security Group Rule to change the security group or modify the security group rules.
  2. Click Service List. Under Networking, click Virtual Private Cloud. In the navigation pane on the left of the network console, click Network ACLs and check whether the network ACL rules associated with the subnet used by the ECS's network interface are blocking access to the virtual IP address.

Submitting a Service Ticket

If the problem persists, submit a service ticket.

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