IP Aliasing On CentOS 7

Home » CentOS » IP Aliasing On CentOS 7
CentOS 2 Comments

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.

2 thoughts on - IP Aliasing On CentOS 7

  • multiple

    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.

  • Hello all,

    Thank you for all the great responses.

    I meant to reply earlier but it slipped my mind. Sorry.

    OK, so according to my experience here is what seems to work.

    1) nmtui Using this utility one can do that without delving into the nitty-gritty, it seems.

    2) By editing the config file. So let us say we have the NIC eno16780032 If you now edit your config file
    ( /etc/sysconfig/network-scripts/ifcfg-eno16780032 ) to look like this
    —————————————————————————————-