Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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


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.