I apologize if the terminology I used in the title is incorrect, but I'm having a difficult time finding official terms/definitions. I'm on a CentOS 7 system and if I want to add a second IP address to an existing interface it seems I can either edit /etc/sysconfig/network-scripts/ifcfg-eth0 and add:
IPADDR1=xxx.xxx.xxx.xxx
PREFIX1=xx
or I can create a new file containing the second IP (e.g. /etc/sysconfig/network-scripts/ifcfg-eth0:1).
What's the difference and when would I want to use one method over the other? I've already noticed that the ifconfig tool doesn't seem to find the IP when it's added as IPADDR1 under the same ifcfg file.
Thanks,