Skip to content

Commit 41616e0

Browse files
committed
fix(vpc): add first troubleshooting
1 parent 7c09b00 commit 41616e0

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
title: Two different resources in my VPC have the same private IP address
3+
description: Resolve IP address conflicts in your VPC when two resources have the same private IP. Learn how overlapping Private Network subnets cause this issue and how to fix it by creating a new Private Network with a non-overlapping CIDR block.
4+
tags: ipam conflict same internal-ip private-ip
5+
dates:
6+
validation: 2025-11-06
7+
posted: 2025-11-06
8+
---
9+
10+
11+
You may find that two or more resources in your VPC have the same private IP address. This causes issues with network communication, as IP address conflicts can lead to intermittent connectivity, data routing errors, and service disruptions.
12+
13+
## Cause
14+
15+
This can happen if you have created two Private Networks with overlapping subnets in the same VPC.
16+
17+
DHCP assigns resources' private IP addresses from the CIDR block that was [defined for the Private Network](/vpc/how-to/create-private-network/#how-to-configure-cidr) when you created it. If two different Private Networks have overlapping CIDR blocks, the DHCP service may allocate the same IP address to one resource on Private Network A, and another resource on Private Network B.
18+
19+
<Message type="tip">
20+
You can check each Private Network's CIDR block on its **Overview** tab in the Scaleway console. Then, use a tool such as [https://cidrclash.com/](https://cidrclash.com/) to check if the CIDR blocks associated with the other Private Networks in that VPC overlap or not.
21+
</Message>
22+
23+
## Solution
24+
25+
The CIDR block for a Private Network cannot be modified after creation of the Private Network.
26+
27+
The solution when two Private Networks have overlapping CIDR blocks is to:
28+
29+
1. Detach all resources from one of the Private Networks with a CIDR block that overlaps another in the VPC.
30+
2. Create a new Private Network in the VPC, with a new, non-overlapping CIDR block.
31+
32+
<Message type="tip">
33+
We recommend that you let Scaleway [automatically generate](/vpc/how-to/create-private-network/#automatically-generating-a-cidr-block) a CIDR block for the Private Network. This will be a `/22` subnet, guaranteed to be unique within the VPC, that will not overlap with any of your other Private Networks. It gives 1024 private IPv4 addresses, of which 1020 are available to be allocated to resources attached to the Private Network.
34+
</Message>
35+
36+
3. Attach the required resources to the new Private Network, where they will automatically be assigned new private IP addresses on the network by DHCP.
37+
38+
Resources in the VPC should now all have unique private IP addresses. Traffic should be routed successfuly.

pages/ipam/troubleshooting/index.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,6 @@ productIcon: IpamProductIcon
3838
## IPAM troubleshooting pages
3939

4040
<LinksList>
41-
- [I can't delete my Private Network due to a reserved IPAM IP](/ipam/troubleshooting/cant-delete-pn-reserved-ip)
41+
- [I can't delete my Private Network due to a reserved IPAM IP](/ipam/troubleshooting/cant-delete-pn-reserved-ip/)
42+
- [Two different resources in my VPC have the same private IP address](/ipam/troubleshooting/conflicting-private-ips/)
4243
</LinksList>

0 commit comments

Comments
 (0)