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

Regular Backups to Amazon S3

Although, many of us prefer to adhere to the statement that “it’ll never happen to...

I Need the Kernel Source

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

CentOS / Red Hat Linux Install VSFTPD FTP Server

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

Setting up IPtables

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