How can I add an IP address to my Linux Server

Adding an IP address to a CentOS server is very easy.
  • Go to the network configuration directory /etc/sysconfig/network-scripts
  • Create a file with the name ifcfg-eth0:1 (This file increments, so if you already have several IP addresses you need to add the next increment, such as ifcfg-eth0:3 for the 4th IP)
  • Paste the following contents into the file:
DEVICE=eth0:1
BOOTPROTO=static
IPADDR=YOUR_NEW_IP_HERE

ONBOOT=yes


  • In order for the IP change to effect, you can either reboot your server or you can run the following command:
ifconfig eth0:1 up
  • 12 Users Found This Useful
Was this answer helpful?

Related Articles

How can I create a database from an sql backup file ?

First, create the database.. /path/to/bin/mysqladmin -u $mysqlusername -p$mysqlpassword create...

How can I see all running processes from my server?

Type the following command from shell prompt.It will display the currently running processes. ps...

Connecting to your Windows server

To connect to your Windows VPS or Dedicated server, you use Remote Desktop Connection. Go to:...

Connecting to your Linux server

To connect to your Linux VPS or Dedicated Server, you need a ssh client.  We recommend...

Memory usage seems too high inside a VPS

There are cases when you may notice that the memory usage is too high inside your VPS without a...