Archive for March, 2011

Add Secondary IP Address to CentOS 5.5

on Tuesday 8th March, 2011 Gabe speculated thusly…

Create a new interface file with a colon and a number.
# cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0:1
# vim /etc/sysconfig/network-scripts/ifcfg-eth0:1

DEVICE=eth0:1
BOOTPROTO=static
IPADDR=192.168.0.5
ONBOOT=yes

To activate it, just

# ifup eth0:1

Posted in Linux, Operating System, RHEL/CentOS

No Comments »