Adding additional IP Addresses to Ubuntu 12.04 server x32.
nano /etc/network/interfaces
Add
auto eth0:<PIC AN ID IE eth0:123> iface eth0:<PIC AN ID IE eth0:123> inet static address 192.168.1.52 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 gateway 192.168.1.1 dns-nameserver 8.8.8.8 8.8.4.4 dns-search network.local
run
Service Networking restart
then run
ifconfig
You Should see
eth0 Link encap:Ethernet HWaddr 08:00:xx:xx:xx inet addr:192.168.1.42 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::a00:27ff:fef1:f244/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:499331 errors:0 dropped:1 overruns:0 frame:0 TX packets:80818 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:671151239 (671.1 MB) TX bytes:8128135 (8.1 MB) eth0:123 Link encap:Ethernet HWaddr 08:00:xx:xx:xx inet addr:192.168.1.52 Bcast:192.168.1.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1