LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-23-2014, 11:51 AM   #1
ghughes5669
LQ Newbie
 
Registered: Oct 2012
Posts: 23

Rep: Reputation: Disabled
Quick question about persistent static routes and default gateway


Good morning, all!

I have a server RHEL 5.2 that I need to set persistent routing to send traffic to a specific router. I've found information on creating a route-ethX file using different syntaxes. Some resources have you declare the default gateway at the top of the route-ethX file, some don't.

My system has /etc/sysconfig/network containing the hostname and the gateway. That declares the global value for those variables.

Question - if /etc/sysconfig/network has that information, do I need to have the first value in the route-ethX file be that gateway? Or do I just start with the first static route and go on from there?

Thanks to all for your help!

Gregg
 
Old 04-23-2014, 03:16 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,215

Rep: Reputation: 2539Reputation: 2539Reputation: 2539Reputation: 2539Reputation: 2539Reputation: 2539Reputation: 2539Reputation: 2539Reputation: 2539Reputation: 2539Reputation: 2539
Go reading. You need to know that RH supplies an init.d script 'network' which they no longer support and that, IIRC uses /etc/sysconfig/network.

They also have network manager which they do support and an awkward init.d script of that name, and IIRC, that's set up using other config info. Find out whiuch you run.


/googles it

Try /etc/NetworkManager
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
add static routes to be persistent on reboot cjashu Linux - Server 2 03-18-2014 11:12 AM
persistent static routes agrana Slackware 4 03-24-2011 10:57 AM
Adding persistent static routes in Redhat.. [NISTnet installed...!] bala1987 Linux - Networking 2 05-26-2009 09:58 AM
Static routes using routes/ifroutes-eth-id.. files and default gateway disabled TimtheEagle Linux - Networking 0 05-31-2008 08:08 PM
persistent static routes, not so persistent Hewson Linux - Networking 4 04-27-2007 06:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration