You have to use a range file
-
Edit
/etc/sysconfig/network-scripts/ifcfg-enp0s3
and make sure thatNM_CONTROLLED
is set toNO
(preventing the network manager to control the interface is required to use range files) -
Create
/etc/sysconfig/network-scripts/ifcfg-enp0s3-range
:IPADDR_START=192.168.1.10 IPADDR_END=192.168.1.254 PREFIX=24 CLONENUM_START=0
-
run
systemctl restart network
and the changes should be effective.
If you wanted to configure multiple ranges you could create other file (ifcfg-enp3s0-range0
, ifcfg-enp3s0-range1
, ...)