ipalias

#!/bin/bash
#
# /etc/rc.local - local multi-user startup script

IP_ALIASES=(192.168.126.53 192.168.126.54)

for i in ${!IP_ALIASES[@]}
do
  ( ifconfig eth0:${i} ${IP_ALIASES[i]} netmask 255.255.255.0 && route add -host ${IP_ALIASES[i]} dev eth0:${i} ) &
done