root@ip-172-31-15-184:/etc/network# ifconfig -a
eth0 Link encap:Ethernet HWaddr 0a:8a:00:ff:98:d7
inet addr:172.31.15.184 Bcast:172.31.15.255 Mask:255.255.240.0
inet6 addr: fe80::88a:ff:feff:98d7/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:80708 errors:0 dropped:0 overruns:0 frame:0
TX packets:16873 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:116767160 (116.7 MB) TX bytes:1297244 (1.2 MB)
Interrupt:25
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:16 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1296 (1.2 KB) TX bytes:1296 (1.2 KB)
root@ip-172-31-15-184:/etc/network# cat interfaces
This file describes the network interfaces available on your system
and how to activate them. For more information, see interfaces(5).
The loopback network interface
auto lo
iface lo inet loopback
The primary network interface
#auto eth0
#iface eth0 inet dhcp
#For Exposing OpenStack API over the internet
auto eth0
iface eth0 inet static
address 172.31.15.184
netmask 255.255.240.0
gateway 172.31.15.1
dns-nameservers 8.8.8.8
#Not internet connected(used for OpenStack management)
auto eth0:1
iface eth0:1 inet static
address 10.10.100.51
netmask 255.255.255.0
root@ip-xxxxxxx:/etc/network# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 172.31.0.1 0.0.0.0 UG 100 0 0 eth0
172.31.0.0 0.0.0.0 255.255.240.0 U 0 0 0 eth0
root@ip-172-31-15-184:/etc/network# sudo /etc/init.d/networking restart
* Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces
* Reconfiguring network interfaces... RTNETLINK answers: No such process
then it ends abruptly and i have to start my EC2 once again could you please help me