Proper way to add IP Addresses (ifcfg-eth0:0)

Hi all,

Well im trying to automate the network process and i have come to a few dead ends. What Im trying to figure out is the best way to add and remove IP addresses from a system. I want to firstly be able to change a main server ip address then add/remove additional ips. I want all ips to come alive again after a network restart.

So far I have been plaing with ifconfig and that will bring up the ip nicely, I can even take it down. however, if i restart the network it does not come back again.

Any ideas how to get ifconfig to auto create the ifcfg-eth0:n files?

 

 

 

 

Top