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

Linux wget: Your Ultimate Command Line Downloader

I t is a common practice to manage UNIX/Linux/BSD servers remotely over the ssh session. You may...

Guide to Install VNC and GNOME on CentOS VPS

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

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

CentOS / Red Hat Linux Install VSFTPD FTP Server

Q. How do I configure and install an FTP server in CentOS / RHEL 5 / Fedora Linux...

CentOS Directory Server, Basic Install

Prerequisites This guide is written to assume that you have a minimal install of CentOS-5.x....