LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 11-19-2004, 12:47 AM   #1
Ghitza
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 :
xxx.xxx.xx.xx via xxx.xx.xxx.xxx in that file
Any help would be appreciated
 
Old 11-19-2004, 05:26 AM   #2
maxut
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 xxx.xxx.xxx.xxx netmask xxx.xxx.xxx.xxx dev ethX

good luck
 
  


Reply



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 04: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 04:34 AM
unable to add default route (network unreachable) beebop Linux - Networking 12 05-30-2005 11:07 AM
Network route add file David@330 Linux - Networking 4 05-26-2005 07:38 AM
Network configuration files: where to write the static ip? zvonSully Ubuntu 3 04-20-2005 03:23 AM

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

All times are GMT -5. The time now is 08:32 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