添加IP地址范围(AddIpRange)

管理员可以使用AddIpRange添加IP地址范围。例如:
AddIpRange name=L3Network-1 l3NetworkUuid=ba076991c0f740be84ab7e9646dcfd56 
startIp=10.128.33.10 endIp=10.128.33.20 netmask=255.0.0.0 gateway=10.0.0.1

参数(Parameters)

名字 描述 可选的 可选的参数值 起始支持版本
name 三层网络名称 0.6
description 三层网络详细描述 0.6
l3NetworkUuid 三层网络uuid 0.6
startIp 起始IP 0.6
endIp 结束IP 0.6
gateway 网关 0.6
ipRangeType 地址类型
  • Normal
  • AddressPool
3.9.0
netmask 子网掩码 0.6
resourceUuid 资源uuid。若指定,三层网络会使用该字段值作为uuid 0.6
userTags 用户标签,请参见 创建用户标签(CreateUserTag);资源类型是 L3NetworkVO 0.6
systemTags 系统标签,请参见 创建系统标签(CreateSystemTag); 资源类型是 L3NetworkVO 0.6
timeout
Note:
  • ZStack Cloud添加IP地址范围时支持添加IP地址段的时候指定DHCP server地址功能,SystemTags增加DhcpServer选项。
    • 选项格式为:flatNetwork::DhcpServer::{%s}::ipUuid::{%s}
    • 例如:flatNetwork::DhcpServer::192.168.1.100::ipUuid::null