Cain Manor

Your Guide To All Things Cain™

March 30, 2009
by Greg Cain
Comments Off

To create multiple IPs per Interface in CentOS 5

Cre­ate the vir­tual inter­face vi /etc/sysconfig/network-scripts/ifcfg-eth0:0 Pop­u­late the file DEVICE=eth0:0 ONPARENT=yes IPADDR=10.10.10.10 Bring up the inter­face /sbin/ifup eth0:0 The inter­face will be brought up and down auto­mat­i­cally as the par­ent inter­face (eth0) changes state.