I have a AWS Instance, running Ubuntu. I have a static route which works just great
sudo route add -net 192.168.10.0 netmask 255.255.255.0 gw 172.31.16.5 dev eth0
However, whenever I reboot, the route is gone. I should be able to make is presistent by going to sudo nano /etc/network/interfaces, but cannot(creates a boot error).
How can I enter my route to run every time the AWS instance reboots?