How to add multiple IP address to Linux System

1. Open /etc/network/interfaces

vi /etc/network/interfaces

2. Add the lines here

auto eth0:1

iface eth0:1 inet static

address 172.93.99.28

gateway 172.93.99.25

netmask 255.255.255.248

dns-nameservers 8.8.8.8

#It looks like the following

auto eth0

auto eth0:1

iface eth0 inet static

address 172.93.99.27

gateway 172.93.99.25

netmask 255.255.255.248

dns-nameservers 8.8.8.8

iface eth0:1 inet static

address 172.93.99.28

gateway 172.93.99.25

netmask 255.255.255.248

dns-nameservers 8.8.8.8

3. Reboot or do a network restart

/etc/init.d/networking restart

Or

reboot