|
| 1 | +--- |
| 2 | +meta: |
| 3 | + title: I'm experiencing connectivity issues with my VPC or Private Network |
| 4 | + description: Troubleshoot access and connectivity issues with your Scaleway VPC or Private Network. Learn how to resolve common problems and get your network up and running smoothly. |
| 5 | +content: |
| 6 | + h1: I'm experiencing connectivity issues with my VPC or Private Network |
| 7 | + paragraph: Troubleshoot access and connectivity issues with your Scaleway VPC or Private Network. Learn how to resolve common problems and get your network up and running smoothly. |
| 8 | +tags: vpc private-network access connectivity ssh ip |
| 9 | +dates: |
| 10 | + validation: 2025-02-21 |
| 11 | + posted: 2025-02-21 |
| 12 | +categories: |
| 13 | + - network |
| 14 | +--- |
| 15 | + |
| 16 | +You may experience loss of connectivity between resources in a VPC or Private Network, or problems accessing your private resources via SSH. |
| 17 | + |
| 18 | +This page helps you solve potential errors that related to VPC access and reachability. |
| 19 | + |
| 20 | +## I can't connect to a resource attached to a Private Network via SSH |
| 21 | + |
| 22 | +### SSH bastion connection problems |
| 23 | + |
| 24 | +You may be attempting to connect to a Scaleway Instance via [SSH bastion](/public-gateways/how-to/use-ssh-bastion/), and experience errors such as: |
| 25 | + |
| 26 | +- `UNREACHABLE: Failed to connect to the host via ssh: Connection closed by remote host` |
| 27 | +- `Connect failed: No address associated with hostname: Connection closed by UNKNOWN port 123` |
| 28 | + |
| 29 | +### SSH bastion connection solutions |
| 30 | + |
| 31 | +**Try using an IP address instead of a hostname**. An error such as `No address associated with hostname` suggests a problem with DNS resolution of the resource hostname. Try using the resource's private IP address in your connection command instead of its hostname. |
| 32 | + |
| 33 | +**Check the validity of your Private Network and/or resource names**. Issues can be caused when: |
| 34 | + - Names contain dots. Replace dots with dashes (`my.instance` —> `my-instance`). We generally recommend avoiding using dots in your resource names to avoid issues. |
| 35 | + - Private Network names share the same name as a TLD. See our [dedicated troubleshooting docment](/vpc/troubleshooting/pn-name/#tld-naming-problem-with-private-networks). |
| 36 | + - A [legacy Public Gateway](/public-gateways/concepts/#legacy-gateway) is attached to a Private Network, and its DNS is [taking priority over that of the Private Network](/public-gateways/concepts/#legacy-gateway). Ensure you are using correct hostnames in accordance with your Public Gateway in this case. |
| 37 | + |
| 38 | +**Ensure your SSH keys are up to date**. If you add new SSH keys to your Project credentials after activating SSH bastion, you will need to perform a reimport to update the bastion with the new keys. [Follow instructions in the dedicated documentation](/public-gateways/how-to/use-ssh-bastion/#how-to-reimport-ssh-keys). |
| 39 | + |
| 40 | +**Ensure your Instance is not overloaded**. An error such as `Connection closed by UNKNOWN port 123` could be linked to excessive traffic on this port of your Instance, an overload of the Instance's resources (CPU, RAM etc.), or an excessive number of simultaneous connections. |
| 41 | + |
| 42 | +Check the load on the Instance, and try again. |
| 43 | + |
| 44 | +## SSH connection problems (non-bastion) |
| 45 | + |
| 46 | +You may be attempting to connect to a Scaleway Instance that is attached to a Private Network, via SSH using its public IP address, and experiencing timeout errors. |
| 47 | + |
| 48 | +### SSH connection solutions (non-bastion) |
| 49 | + |
| 50 | +**Use SSH bastion**. If the Instance is attached to a Private Network on which there is also a Public Gateway advertising the default route, it is normal that you cannot connect using the public IP. Use SSH bastion instead: see our [dedicated troubleshooting page](/public-gateways/troubleshooting/cant-connect-to-instance-with-pn-gateway/) |
| 51 | + |
| 52 | +## Resources cannot communicate in a VPC |
| 53 | + |
| 54 | + |
| 55 | +- Check status |
| 56 | + |
| 57 | +- MAC address issue |
| 58 | +loss of connectivity between resources in the same VPC. Reason: L’adresse MAC a été dupliqué entre votre proxmox de par1 et de par2. Basculer une même MAC d'une zone à l'autre n'est pas compatible avec le routage du VPC. Nous vous suggérons très fortement de ne plus basculer cette VM, car cela risque d’engendrer à nouveau les désagréments rencontrés. Nous vous recommandons de changer la MAC de votre VM, puis d'envoyer une gratuitous ARP dans le PN (avec arping par exemple), de manière à ce que les autres VMs soient à jour avec la nouvelle MAC. |
| 59 | + |
| 60 | +- Different VPCs/Projects cannot communicate (no peering) |
| 61 | + |
| 62 | +- DNS? |
0 commit comments