[CentOS] IP aliasing on CentOS 7

Thu Oct 16 06:29:52 UTC 2014
James Hogarth <james.hogarth at gmail.com>

On 15 Oct 2014 22:12, "Boris Epstein" <borepstein at gmail.com> wrote:
>
> Hello all,
>
> is there a good wirte-up on how edit script files in
> the /etc/sysconfig/network-scripts directory on Centos & to assign
multiple
> IP addresses to the same NIC on boot?
>
> Thanks for any and all help.
>
> Cheers,
>
> Boris.

Funny timing... I wrote up something on this very topic only very recently:

http://www.hogarthuk.com/?q=node/6

You can do multiple IPs on an interface just by doing multiple ipaddr1
ipaddr2 ipaddr3 ipaddrN with matching netmaskN in the ifcfg file for the
interface...

This syntax is compatible with both the network and NetworkManager services.