Thursday, 14 May 2015

CentOS 7 configuring IP Alias

Had to configure an ip alias on a centOS 7 server this morning. Found THIS how to:

cp ifcfg-eth0 ifcfg-eth0:0
vi /etc/sysconfig/network-scripts/ifcfg-eth0:0
DEVICE="eth0:0"
BOOTPROTO=static
ONBOOT=yes
TYPE="Ethernet"
IPADDR=172.16.16.126
NETMASK=255.255.255.224
GATEWAY=172.16.16.100
HWADDR=00:0C:29:28:FD:4C


No comments:

Post a Comment