How to Add additional IP address

Add additional IP address

 

How to add additional IP address on CentOS servers.

Create file: /etc/sysconfig/network-scripts/ifcfg-eth0:0


DEVICE="eth0:0"
BOOTPROTO=static
ONBOOT=yes
TYPE="Ethernet"
IPADDR=80.80.25.25
#HWADDR=00:0C:29:28:4C:4C
#GATEWAY=80.80.25.1
NETMASK=255.255.255.0

do this for each additional IP address, you only need to increase virtual interface number by one for each additional IP.
Like eg. eth0:1, eth0:2, eth0:3 …

**if you don’t have HWADDR then delete that line.

Restart Network

service network restart

Check all IP’s configured on the server

ifconfig

if your new IP address is listed then you have successfully added a new IP address.

 
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Initial Server Setup with CentOS 7

Initial Server Setup with CentOS 7  Introduction When you first create a new server, there are...

How To Create an SSL Certificate on Apache for CentOS 7

How To Create an SSL Certificate on Apache for CentOS 7  Introduction TLS, or "transport layer...

How to Install and Configure phpMyAdmin on CentOS 7

phpMyAdmin is an open source tool used for the administration of MySQL. In addition to offering...

How To Set Up Apache Virtual Hosts on CentOS 7

Introduction The Apache web server is the most popular way of serving web content on the...

How To Connect To Your Droplet with SSH

How To Connect To Your Droplet with SSH  Introduction If you have recently created a...