Adding route permanently on Amazon Linux

0

Hello,

I've 2 ENI on a Mate instance (Amazon Linux with GUI). I would like to add a route on this instance and keep it after reboot.

Right now, I know how I can add a temporary route :

sudo ip route add 10.0.0.0/8 via 10.1.0.1

How can I proceed to keep this route after reboot ?

asked 9 months ago556 views
1 Answer
1
  • The content of /etc/sysconfig/network-scripts/route-[network_interface] is automatically replaced at reboot so my route disappear from this file

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions