--- title: "CTP Topic 45 Automatic IP address allocation with IPAM" type: source tags: [AWS, IPAM, Networking, CTP] date: 2026-04-14 source_file: raw/Cloud & DevOps/Public-Cloud-Learning-Sessions/08_Networking/ctp-topic-45-automatic-ip-address-allocation-with-ipam.md --- ## Summary - 核心主题:使用 Infoblox NIOS 实现 VPC IP 地址自动化分配 - 问题域:传统手动管理 IP 地址效率低下,需与网络团队手动协调 CIDR - 方法/机制:通过 Infoblox IPAM 自动查询可用 IP 块并预置 VPC,YAML 文件仅指定子网大小而非具体 IP - 结论/价值:减少跨团队协作,实现单一数据源,支持 VPC 销毁时自动清理 IPAM 条目 ## Key Claims - IPAM(IP 地址管理)提供集中化管理、控制、监控和分配 IP 地址空间的能力 - 当前使用 Excel 管理 IP 地址效率低下,Infoblox NIOS 作为无缝扩展的解决方案 - 新方案无需手动向网络团队请求 IP 地址,NIOS 自动提供下一个可用 IP 块 - 新 YAML 文件不包含具体 CIDR 子网 IP,仅指定所需子网大小(如 /22)和父 CIDR - 系统向后兼容,现有使用旧 YAML 文件的 VPC 配置将继续工作 ## Key Quotes > "Managing the IP address in a spreadsheet takes time and it's not a good approach." — 描述传统 Excel 管理方式的低效性 > "We are not asking for IP address from the network team." — 新方案的核心价值 > "The system is backward compatible, meaning existing VPC configurations using the old YAML file will continue to work." — 向后兼容性保证 ## Key Concepts - [[IPAM]]:IP 地址管理工具,用于规划、追踪和管理 IP 地址空间 - [[VPC]]:Virtual Private Cloud,AWS 虚拟私有云 - [[CIDR]]:无类别域间路由,用于指定 IP 地址范围 - Extensible Attributes:可扩展属性,用于定义云使用相关元数据(如 space owner、subnet name、compartment type) ## Key Entities - [[Infoblox]]:企业级 DNS/DHCP 和 IPAM 解决方案提供商,提供 NIOS 设备 - [[AWS]]:公有云平台,VPC 部署环境 - Grid Master:IPAM 架构中的主节点 - SRE 团队:负责 VPC 预置的团队 - Network Team:负责计算最优 CIDR 范围的团队(旧流程) ## Connections - [[Infoblox]] ← provides_ipam_capability ← [[VPC]] - SRE 团队 ← automates_vpc_provisioning ← [[IPAM]] - 新流程 ← eliminates_manual_coordination ← Network Team ## Contradictions - (暂无冲突记录) ## Notes - 视频状态:已通过 Gemini 摘要 - 新 YAML 文件包含 business contact、engineering contact、date 字段 - 支持指定可用区 ID 创建子网 - 销毁 VPC 时会移除 IPAM grid 中的所有条目 - 防止意外删除 VPC 的保护措施:Terragrant.hcl 中需要特殊标志