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

I Need the Kernel Source

1. Maybe you do not need the full kernel source If you need to compile a...

Create custom SSH login welcome message

If you like to change the default welcome message for SSH login for your VPS or dedicated Linux...

CentOS Directory Server, Basic Install

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

Install Squid on CentOS / RHEL 5

Use yum command as follows:# yum install squidOutput: Loading "installonlyn" plugin Setting up...

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