Fake IP till you make IP
devcenter.upsun.com·19h·
Discuss: r/programming
Flag this post

Ever peek at your database connection details on Upsun and wonder why the IP addresses look… weird?

Check your relationship IPs and you’ll spot something odd:

But your container’s own IP tells a different story:

Two completely different subnets. What’s going on here?

The great IP switcheroo

Before we explain the 169.254.0.0/16 subnet mystery, let’s talk about how Upsun’s infrastructure works. We run a grid of VMs, each hosting hundreds of containers. Each VM gets its own chunk of the 240.0.0.0/4 subnet. (If you’re curious about that particular networking choice, we wrote about it.)

All containers on a VM share that VM’s subnet. This works g…

Similar Posts

Loading similar posts...