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

Securing OpenSSH

OpenSSH (or Secure SHell) has become a de facto standard for remote access replacing...

Setting up IPtables

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

Change hostname CentOS 7.x

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

Setting up an SSL secured Webserver with CentOS

This guide will explain how to set up a site over https. The tutorial uses a self signed key so...

rsnapshot backups

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