1833648 Members
4950 Online
110062 Solutions
New Discussion

Making a route permanent

 
Andrew Kaplan
Super Advisor

Making a route permanent

Hi there --

I recently ran the route add command using the following syntax:

route add 132.183.0.0 netmask 255.255.0.0 10.1.1.240

This is a route that I would like to make permanent. What is the best method to use to accomplish this? Thanks.
A Journey In The Quest Of Knowledge
2 REPLIES 2
Patrick Wallek
Honored Contributor

Re: Making a route permanent

The route needs to be added to /etc/rc.config.d/netconf.
Geoff Wild
Honored Contributor

Re: Making a route permanent

Add to /etc/rc.config.d/netconf


ROUTE_DESTINATION[2]=132.183.0.0
ROUTE_MASK[2]="255.255.0.0"
ROUTE_GATEWAY[2]=10.1.1.240
ROUTE_COUNT[2]="1"
ROUTE_ARGS[2]=""


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.