In /etc/sysconfig/network-scripts/ you'll find a bunch of files start begin with “ifcfg-”. For example, for device “enp1s7”, you'll find a config file called “ifcfg-enp1s7”. In here you can change the IP address assigned to the device when it is connected. Do
sudo /etc/init.d/network restart
after changing the file for it to take effect.