tag:blogger.com,1999:blog-1516723075209225493.post8993114947367446499..comments2023-09-09T18:21:25.053+08:00Comments on Cyborg Repair Information: How to Add Persistent Route in Linux (Centos)Cyborg Repairshttp://www.blogger.com/profile/17123115769061682724noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-1516723075209225493.post-43507505839916492142012-01-14T16:33:22.438+08:002012-01-14T16:33:22.438+08:00Hi Luis, yes you are right in the case when we don...Hi Luis, yes you are right in the case when we don't want a persistent route :)<br /><br />In my case my machines in different VLAN have to communicate to each other internally that's why i need a persistent route.<br /><br />I used to type the command you provide in my servers, it works when I never restart my machines, so after several times of re-add works, I decided to find a way to add the persistent route.<br /><br />Thanks for the comment. It is useful for the others who needs a non persistent route :)<br /><br />EddyCyborg Repairshttps://www.blogger.com/profile/17123115769061682724noreply@blogger.comtag:blogger.com,1999:blog-1516723075209225493.post-17888115594446606302012-01-14T13:41:46.575+08:002012-01-14T13:41:46.575+08:00You can also just add the route command via the te...You can also just add the route command via the terminal without adding it to the /etc/sysconfig/network-scripts/route-eth1 so it will not be persistent. That way if some reason you forget to remove it will not be enable once the system is restarted.<br /><br />route add -net IP_u_need_2_connect netmask your_netmask_here gw your_gateway_ip_here<br /><br />This is to delete the route after you are done:<br /><br />route delete -net IP_u_need_2_connect netmask your_netmask_here gw your_gateway_ip_hereAnonymoushttps://www.blogger.com/profile/03478084372682948397noreply@blogger.com