


That's the Network Manager misinterpreting your configuration files, overwriting the values from your main interface with the one from your alias. Here's what a config would look like in CentOS 6: $ cat ifcfg-ens160:0Īfter a network reload, the primary IP address will be removed from the server and only the IP address from the alias interface will be present. You may be used to adding a new network-scripts file in /etc/sysconfig/network-scripts/, but you'll find that doesn't work in RHEL / CentOS 7 as you'd expect if the Network Manager is being used. If that's a yes, you can proceed with the next configurations using the Network Manager tool. $ grep 'NM_CONTROLLED' /etc/sysconfig/network-scripts/ifcfg-ens160 Inet6 fe80::a00:27ff:fefd:6f54/64 scope linkĬheck if your interface you want to add an alias to, uses the Network Manager. This syntax is more inline with most routers/switches, where you can grep for inet and inet6 for your IPv4 and IPv6 IP addresses. In Centos 7 there is no more use for the ifconfig command.
