Quantcast
Channel: Linux and Mac Hacks
Viewing all articles
Browse latest Browse all 39

CentOS: Add another ip to interface eth0

$
0
0
To add another IP address to interface eth0, create a file /etc/sysconfig/network-scripts/ifcfg-eth0:1

and add the following:

DEVICE=eth0:1 
ONBOOT=yes
BOOTPROTO=none
IPADDR=your.new.ip.address
NETMASK=enter.the.subnet.mask


Save the file and then, restart networking, i.e. 

/etc/init.d/network restart

Viewing all articles
Browse latest Browse all 39

Latest Images

Trending Articles



Latest Images