Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm using gentoo linux I want to add a route and have it persist after /etc/init.d/net.eth0 restart

I can add successfully

route add -net x.x.x.x/x gw x.x.x.x eth0

How can I make this persistent?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

You want to configure a static route, which is distribution specific. The route command itself has no way to arrange that, but on Gentoo /etc/conf.d/net will allow static routes defined with ip to be added on network restart.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.