Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Please I need your urgent help. [VM with multiple interfaces]

I have created a vm instance with multiple network interfaceses (nic0, nic1, nic2) all these interfaces showing internal and external ips. however I can curl with only nic0 (i.e ens 4) but rest of interfaces giving me this error:
command: ping -I ens6 8.8.8.8
PING 8.8.8.8 (8.8.8.8) from 10.2.0.4 ens6: 56(84) bytes of data.
From 10.2.0.4 icmp_seq=1 Destination Host Unreachable
From 10.2.0.4 icmp_seq=2 Destination Host Unreachable
From 10.2.0.4 icmp_seq=3 Destination Host Unreachable
^C
--- 8.8.8.8 ping statistics ---
5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4073ms

how can i fix this problem

0 1 112
1 REPLY 1

Certainly! Here’s a concise summary covering the key topics related to your issue with multiple network interfaces on your VM instance:

  1. Configuration Check: Verify that all network interfaces (nic0, nic1, nic2) are correctly configured with the appropriate IP addresses (both internal and external).

  2. Routing and Routes: Ensure that the routing table includes routes for the additional interfaces. Confirm that the default route points to the correct gateway for each interface.

  3. Firewall Rules: Check for restrictive firewall rules that might block traffic on the additional interfaces. Review both VM-level and network-level firewall rules.

  4. Interface State: Verify that the additional interfaces (nic1 and nic2) are in the UP state using ip link show.

  5. Network Services: Confirm that necessary services (DHCP, DNS, routing) are running and configured correctly.

  6. Logs and Diagnostics: Check system logs for error messages related to network interfaces. Use tools like traceroute to diagnose connectivity issues.

Remember to adapt these all steps to your specific setup.

Top Labels in this Space
Top Solution Authors