Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-19-2004, 01:47 AM   #1
LQ Newbie
Registered: Jul 2001
Distribution: Red Hat 7.0
Posts: 7

Rep: Reputation: 0
Question add a static route in Network init files

In REd Hat 9.0 I need to add some static routes like
route add xxx.xx.xx.xx dev ethx
I don't wont that routes to be throw a gw, otherwise I would have used /etc/sysconfig/network-scripts/route-ethx in Red Hat with folowing syntax : via in that file
Any help would be appreciated
Old 11-19-2004, 06:26 AM   #2
Senior Member
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
u can prefer /etc/sysconfig/static-routes files.
syntax is same as route. u just need to use "any" instead of "route add":

any net netmask dev ethX

good luck


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
permanently add static route glock19 Linux - Networking 27 07-27-2015 05:59 PM
I am not able to add a new route to my route table using route command prashanth s j Linux - Networking 2 09-03-2005 05:34 AM
unable to add default route (network unreachable) beebop Linux - Networking 12 05-30-2005 12:07 PM
Network route add file David@330 Linux - Networking 4 05-26-2005 08:38 AM
Network configuration files: where to write the static ip? zvonSully Ubuntu 3 04-20-2005 04:23 AM > Forums > Linux Forums > Linux - Networking

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

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