When you add
IFNAME[0]="<name>", you tell the init script to configure interface
<name> instead of the default interface for section 0, which is eth0.
If you want to give the alias eth0:1 an IP address, you should do so in the next interface section, like this:
Code:
IFNAME[1]="eth0:1"
IPADDR[1]="<ip address>"
NETMASK[1]="<netmask>"
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""
When an interface is assigned an IP address, a direct route is added to the routing table automatically, based on the address and netmask. You do not have to add a route manually.