You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何为Google Cloud SQL添加IPv6至授权白名单网络?

Adding IPv6 Addresses to Google Cloud SQL Authorized Networks

Hey there! Let me walk you through exactly how to add an IPv6 address (or range) to your Google Cloud SQL instance's authorized networks. I’ve done this dozens of times, so here’s the straightforward, no-fuss breakdown:

Prerequisite: Turn on IPv6 for Your SQL Instance

Before you can whitelist any IPv6 addresses, your instance needs to have IPv6 connectivity enabled. Here’s how to set that up:

  • Head over to the Google Cloud Console, navigate to your Cloud SQL Instances page.
  • Select the instance you want to configure, then switch to the Connections tab.
  • Scroll to the Network connectivity section, look for the IPv6 option. If it’s grayed out/disabled, click Enable IPv6 and wait a few minutes for the instance to apply the update—this might take a bit, so be patient.

Add Your IPv6 Address/Range to the Authorized List

Once IPv6 is up and running, adding your address to the whitelist is simple:

  • Stay in the Connections tab, and scroll down to the Authorized networks section.
  • Click the Add network button.
  • In the Network field, input your IPv6 address using CIDR notation. For a single specific IPv6 address, use the /128 prefix (example: 2001:db8:3c4d:15::1a2f:1a2b/128). If you need to whitelist a whole subnet, use the appropriate prefix length (like /64 for a standard IPv6 subnet).
  • Optional: Add a Name (like "Office IPv6" or "Home Workstation") to label this entry so you can easily identify it later.
  • Hit Done, then make sure to click Save at the bottom of the page—this step is easy to miss, but it’s critical to apply your changes!

Quick Troubleshooting Notes

  • If you run into an error when adding the IPv6 address, double-check your CIDR notation: no missing colons, correct prefix length, and no extra characters. IPv6 can be finicky with typos!
  • If the instance won’t accept the IPv6 entry, confirm that IPv6 was fully enabled and the instance finished updating before you tried to add the network. Sometimes it takes a minute or two for the change to propagate.
  • Remember: IPv6 addresses are case-insensitive, so uppercase or lowercase letters in the address will work just fine.

内容的提问来源于stack exchange,提问作者Will

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.20 11:23:25