Input Example:
103.0.0.0
103.103.0.0/16
103.103.103.0/255.255.255.0
IP address127.0.0.101111111 00000000 00000000 00000001
Subnet mask255.0.0.011111111 00000000 00000000 00000000
Wildcard mask0.255.255.25500000000 11111111 11111111 11111111
Network address127.0.0.001111111 00000000 00000000 00000000
Broadcast address127.255.255.25501111111 11111111 11111111 11111111
First host address127.0.0.101111111 00000000 00000000 00000001
Last host address127.255.255.25401111111 11111111 11111111 11111110
Number of hosts 16777214 111111111111111111111110


一行一个段, 仅支持IPv4, 可选择网卡名或者自定义输入,然后点击生成按钮.
生成配置最大段支持为254个IP(/24).
生成后的数据直接运行命令或者是写入网卡配置文件.
有时一些IP已经绑定在网卡主上的, 需要手动去掉重复的IP
Linux shell
Windows cmd
nmcli shell
ubuntu/debian interfaces
Centos6 shell