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

Change hostname CentOS 7.x

[1]. Change hostname. (but if rebooting, it will be back). # show current hostname...

Simple SFTP setup

This SFTP setup is NOT chrooted, nor otherwise restricted against root connections A minimal...

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

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

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