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

Install vnStat Network Traffic Monitor To Keep a Log Of Daily Traffic on CentOS / RHEL

How do I install vnstat software - a console-based network traffic monitor under CentOS or RHEL...

rsnapshot backups

This guide will assist you in setting up an rsnapshot backup server on your network. It will...

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,...

Assign Additional IP Addresses in RedHat/CentOS

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

Guide to Install VNC and GNOME on CentOS VPS

1. Installing Desktop Environtment : # yum -y install gnome*# yum -y groupinstall “X...