Add different IP segments 70.39.112.194 in batches for a single Nic add IP: 70.39.112.195-222/70. 39.83.226-254vi/etc/sysconfig/network-scripts/ifcfg-eth0-range0DEVICE = eth0ONBOOT = yesBOOTPROTO = staticipad
Batch add different IP segments for a single NIC
Add IP address 70.39.112.194: 70.39.112.195-222/70. 39.83.226-254
Vi/etc/sysconfig/network-scripts/ifcfg-eth0-range0
DEVICE = eth0
ONBOOT = yes
BOOTPROTO = static
IPADDR_START = 70.39.112.195
IPADDR_END = 70.39.112.222
CLONENUM_START = 0
GATEWAY = 70.39.112.193
NETMASK = zookeeper
NO_ALIASROUTING = yes
Service network restart
After ifconfig, the IP address 70.39.112.195-222 corresponds to the nic id: eth0: 0-eth0: 27,
Therefore, add IP addresses in batches. The Nic will start from eth0: 28 and later,
Nic eth0 unchanged, create new File: ifcfg-eth0-range1
++ ++
Vi/etc/sysconfig/network-scripts/ifcfg-eth0-range1 # note this second Minor change
DEVICE = eth0
ONBOOT = yes
BOOTPROTO = static
IPADDR_START = 70.39.83.226
IPADDR_END = 70.39.83.254
CLONENUM_START = 28 # pay attention to the second minor change
GATEWAY = 70.39.83.225
NETMASK = zookeeper
NO_ALIASROUTING = yes