Add Secondary IP Address to Centos

Just create a new interface file with a colon and a number.

/etc/sysconfig/network-scripts/ifcfg-eth0:1

DEVICE=eth0:1
BOOTPROTO=static
IPADDR=192.168.0.5
ONBOOT=yes

Was this answer helpful?

 Print this Article

Also Read

Assign Additional IP Addresses in RedHat/CentOS

If you are using cPanel, you should add the IP addresses through WHM.  Do not follow...

How to install firewall using ConfigServer Firewall (CSF) on CentOS cPanel server

ConfigServer firewall is a popular linux firewall security suite. It is easy to install, flexible...

Setting up IPtables

1. Introduction CentOS has an extremely powerful firewall built in, commonly referred to as...

Resetting a lost MySQL root password

The MySQL root password allows full access to the MySQL database and allows for all actions to be...

Enable & Install EPEL Repo on CentOS / RHEL / Scientific Linux 6

Extra Packages for Enterprise Linux (or EPEL) is a Fedora Special Interest Group that creates,...