Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 24th August 2006, 03:10 PM
cquisenb Offline
Registered User
 
Join Date: Aug 2006
Posts: 12
Question How do I make static routes permanent?

I can add static routes via:
route add -host x.x.x.x gw x.x.x.x

However this information is lost upon reboot, or loss of power.
How do I make my static routes a permanent part of my routing table?

Thanks,
Curtis
Reply With Quote
  #2  
Old 24th August 2006, 03:23 PM
ccrvic Offline
Registered User
 
Join Date: Apr 2006
Posts: 1,092
Quote:
Originally Posted by cquisenb
How do I make my static routes a permanent part of my routing table?
You need files of the form /etc/sysconfig/network-scripts/route-ethX (where X is 0, 1, 2, ...).

They should contain static routes as you would pass them to "ip route add".

"man ip" for a description of what you can do (but you'll need to understand BNF...)

Vic.
Reply With Quote
  #3  
Old 24th August 2006, 09:00 PM
cquisenb Offline
Registered User
 
Join Date: Aug 2006
Posts: 12
Thanks.

Curtis
Reply With Quote
  #4  
Old 22nd September 2006, 09:45 PM
niurkin69 Offline
Registered User
 
Join Date: Sep 2006
Posts: 1
i have the same problem on fedora core 5, but the path: /etc/sysconfig/network-scripts/route-ethX doesnt exist, what should i do?
Reply With Quote
  #5  
Old 23rd September 2006, 03:34 PM
vkkindia Offline
Registered User
 
Join Date: Sep 2006
Posts: 6
u can edit /etc/rc.local and add the static route commands

ifup eth0 &&route add x.x.x.x dev eth1
Reply With Quote
Reply

Tags
make, permanent, routes, static

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Static Routes ? grayboots Servers & Networking 4 16th February 2009 04:24 PM
Permanent static routes after boot herlit11 Servers & Networking 2 27th August 2008 05:55 PM
Permanent routes under FC 4 billymayday Servers & Networking 2 19th August 2005 02:22 PM


Current GMT-time: 20:09 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat