First, make an alias of your interface:
Code:
cd /etc/sysconfig/network-scripts
cp ifcfg-eth0 ifcfg-eth0:10
Next, edit the alias file:
Code:
DEVICE=eth0 <-- change to eth0:10
ONBOOT=yes
TYPE=Ethernet
IPADDR=192.168.0.100 <-- change to new IP address **
NETMASK=255.255.0.0
GATEWAY=192.168.0.254
** if you're using dhcp, you won't have this line, you'll have a line like:
BOOTPROTO=dhcp
Next, start the new interface:
Next, check to make sure the interface is up and has an IP address:
You're done. You now have two IP addresses for the same network interface card.