Visit Jeremy's Blog.
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 04-05-2007, 05:19 AM   #1
Registered: Nov 2003
Posts: 82

Rep: Reputation: 15
/etc/route.conf not working on Suse

On I noticed that on Suse you can make static routes permanent by creating /etc/route.conf.

I would like to add this static route permanent :

route add -net netmask gw

After adding this command, routing works correct.

So I create /etc/route.conf like this :

stbb01:~ # cat /etc/route.conf
stbb01:~ #

however after reboot, I see that my route is not added in the routing table and have to add it manually again.

What is the real way of creating static routes on Suse ?
Note : I am NOT interested in the graphical way, I am looking for the "CLI" solution.

Thanx in advance.

some info :

stbb01:/ #
stbb01:/ # cat /etc/SuSE-release
SUSE LINUX 10.1 (i586)
VERSION = 10.1
stbb01:/ #
stbb01:/ #
stbb01:/ #
stbb01:/ # which route
stbb01:/ #
stbb01:/ #
stbb01:/ #
stbb01:/ #
Old 04-05-2007, 05:29 AM   #2
Registered: Dec 2006
Distribution: openSUSE 10.3
Posts: 260

Rep: Reputation: 30
The route settings on openSUSE 10.2 are at /etc/sysconfig/network/routes. By the way, why not use YaST? It's much simpler.
Old 04-05-2007, 11:25 AM   #3
Registered: Nov 2003
Posts: 82

Original Poster
Rep: Reputation: 15
indeed /etc/sysconfig/network/routes is the file I need.
#stbb01:cat /etc/sysconfig/network/routes

this works correctly.

thank you !


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
httpd.conf not working: Apache 1.3.27 on SUSE 8.x Options zentro SUSE / openSUSE 0 09-30-2005 11:53 AM
hotplug, resolve.conf and route Mrcdm Linux - Networking 0 01-22-2005 07:38 AM
Route and Resolv.conf Issue FrodoNeil Linux - Networking 2 12-07-2004 11:55 PM
SUSE 9.1: named.conf works, but including separate conf files doesn't??? registering Linux - Distributions 0 06-09-2004 04:03 PM
Working with 'route' and unwanted route entries pioniere Linux - Networking 6 02-05-2003 12:14 PM > Forums > Linux Forums > Linux - Networking

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