Adding a new IP address

Hi,

I am trying to add a new IP address to my vps installation, running centos, and I just wanted to ask if my understanding of the procedure is correct as I don't want to mess my vps and make it unreachable Adding a new IP address

I created a new file called ifcfg-eth0:1 under /etc/sysconfig/network-scripts, with the following content:

Code:
DEVICE=eth0:1
IPADDR=X.X.58.98
NETMASK=255.255.255.0
ONBOOT=yes
Now in theory, if i issue ifup eth0:1, it should get the new IP up and running.

Am I missing something out, or does this look ok?


Thanks

 

 

 

 

Top