1826631 Members
3314 Online
109695 Solutions
New Discussion

RE: Route add

 
Nancy_32
Occasional Contributor

RE: Route add

Guys,

I know there is a way to make the route permanent in your system. I could not remember. I have a 10.20 oe and every time the system is bootup the route is lost. I do the route add command, but still. What is it that I need to do so it does not loose the route.

Thanks,

Nancy L.
3 REPLIES 3
john kingsley
Honored Contributor

Re: RE: Route add

You need to add the route to /etc/rc.config.d/netconf
Jeff Schussele
Honored Contributor

Re: RE: Route add

Hi Nancy,

To make it permanent edit the /etc/rc.config.d/netconf file & add the following example entry:

ROUTE_DESTINATION[X]="net 10.123.234"
ROUTE_MASK[X]="255.255.240.0"
ROUTE_GATEWAYS[X]="10.123.236.111"
ROUTE_COUNT[X]="0"

Where X=a unique index number & of course use the appropriate subnet & I/F IPs.
This would be a static route forced out the local NIC indicated by a hop count of 0.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Franky_1
Respected Contributor

Re: RE: Route add

Hi,

if you mean the default gateway then make an entry in /etc/rc.config.d/netconf

ROUTE_DESTINATION=default
ROUTE_GATEWAY=

This will be executed in /sbin/init.d/net

Regards

Franky
Don't worry be happy