Add multiple IP addresses

You can assign multiple ip address range as follows to eth0:

vi /etc/sysconfig/network-scripts/ifcfg-eth0-range0

Append following code from 202.54.112.120 to 202.54.112.140:

IPADDR_START=202.54.112.120
IPADDR_END=202.54.112.140
CLONENUM_START=0
NETMASK=255.255.255.0

Save and close the file, then restart network service

for CentOS 7
add to ifcfg file
IPADDR0=x.x.x.x
PREFIX0=24
etc

Was this answer helpful?

 Print this Article

Also Read

Extending LVM partitions

--------- MT 26/9/2022 Extend Virtual Disk via vCenter lvextend -r -L +25G /dev/vgdata/lvdata...

Disable iptables firewall

# service iptables save # service iptables stop # chkconfig iptables off

CentOS 7 Firewall

Some useful commands for CentOS 7 Firewall.Start|Stopservice firewalld start|stopList...