Cain Manor

Your Guide To All Things Cain™

To create multiple IPs per Interface in CentOS 5

Cre­ate the vir­tual interface

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 interface

/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.

Comments are closed.