LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 10-22-2012, 02:44 PM   #1
kbscores
Member
 
Registered: Oct 2011
Location: USA
Distribution: Red Hat
Posts: 259
Blog Entries: 9

Rep: Reputation: 32
RHEL 6 - route-device file and other network-scripts


I have a couple of questions regarding RHEL 6 and the network-scripts.

1.) Is /etc/sysconfig/network-scripts/route-device file still an acceptable way to add a route?

2.) Where are static routes saved in RHEL 6?(excluding /etc/sysconfig/network-scripts/route-device)

3.) Is adding a route command to /etc/rc.local file a bad way to add a route? This seems like more of a work around rather than a acceptable way to add a route.
 
Old 11-09-2012, 02:04 AM   #2
tshikose
Member
 
Registered: Apr 2010
Location: Kinshasa, Democratic Republic of Congo
Distribution: RHEL, Fedora, CentOS
Posts: 134

Rep: Reputation: 30
Hi,

Please find below my comments.

1) Yes
2) Yes, but I have not tested the old /etc/sysconfig/static-routes. I still think that it will work as more general routes (not linked to a specific device).
3) I also do not recommend anything in /etc/rc.local, as it runs at every runlevel, while the above takes in account the fact the network is up or not.

Regards,

Tshimanga
 
1 members found this post helpful.
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] [HELP] Unable to install network card device drivers for Acer Aspire 5830TG in RHEL 6 harshadgotad Linux - Hardware 1 05-25-2012 08:10 AM
NETWORK problem in RHEL -- Compaq Desktop -- SIOCGIFFLAGS error: No such device mani123456 Linux - Newbie 1 08-17-2008 06:22 AM
Urgent : Automated scripts require to check device file in hpux manish_meet_in Linux - Newbie 4 01-26-2007 01:45 PM
Network route add file David@330 Linux - Networking 4 05-26-2005 07:38 AM


All times are GMT -5. The time now is 04:49 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration