Why Is My ECS Unable to Communicate at a Layer 2 or Layer 3 Network?
Symptom
An ECS cannot ping the gateway of the subnet where the ECS resides.
Troubleshooting
Locate the fault based on the following procedure.
![](https://support.huaweicloud.com/eu/vpc_faq/en-us_image_0286842951.png)
Checking Whether the ECS Has Obtained an IP Address
Log in to the ECS, and run ifconfig or ip address to check the ECS NIC IP address. If an ECS runs Windows, use ipconfig.
If the ECS does not have an IP address, check whether DHCP has been enabled for the required subnet.
Switch to the subnet details page and check whether the DHCP function has been enabled.
For details, see Why Does My ECS Fail to Obtain an IP Address?
Checking Whether the Security Group Allows Communication Between Subnets Involved in the VPC Peering Connection
You can view the security group on the ECS details page. Check whether a security group rule has been configured to allow the ECS to communicate with the peer VPC subnet.
![](https://support.huaweicloud.com/eu/vpc_faq/en-us_image_0286842953.png)
Checking Whether the Network ACL Allows Communication Between Subnets Involved in the VPC Peering Connection
In the navigation pane on the left of the VPC console, choose Network ACLs. On the displayed page, select the network ACL associated with the subnets of the VPC peering connection. On the network ACL details page, check whether network ACL rules allow communication between the subnets involved in the VPC peering connection.
![](https://support.huaweicloud.com/eu/vpc_faq/en-us_image_0286842954.png)
Connectivity FAQs
- Does a VPN Allow Communication Between Two VPCs?
- Why Are Internet or Internal Domain Names in the Cloud Inaccessible Through Domain Names When My ECS Has Multiple NICs?
- What Are the Priorities of the Custom Route and EIP If Both Are Configured for an ECS to Enable the ECS to Access the Internet?
- Why Are There Intermittent Interruptions When a Local Host Accesses a Website Built on an ECS?
- Why Do ECSs Using Private IP Addresses in the Same Subnet Only Support One-Way Communication?
- Why Does Communication Fail Between Two ECSs in the Same VPC or Packet Loss Occur When They Communicate?
- Why Can't My ECS Use Cloud-init?
- Why Can't My ECS Access the Internet Even After an EIP Is Bound?
- Why Is My ECS Unable to Communicate at a Layer 2 or Layer 3 Network?
- How Do I Handle a BMS Network Failure?
- Why Does My ECS Fail to Obtain an IP Address?
- How Do I Handle a VPN or Direct Connect Connection Network Failure?
- Why Can My Server Be Accessed from the Internet But Cannot Access the Internet?
- Why Can't I Access Websites Using IPv6 Addresses After IPv4/IPv6 Dual Stack Is Configured?
- Why Does My ECS Fail to Communicate with Other After It Has Firewall Installed?
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.
more