LinuxQuestions.org
Help answer threads with 0 replies.
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 04-05-2007, 05:19 AM   #1
markraem
Member
 
Registered: Nov 2003
Posts: 82

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


On http://linuxmafia.com/pub/linux/suse...chapter10.html 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 40.40.40.0 netmask 255.255.255.0 gw 88.79.61.13

After adding this command, routing works correct.

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

stbb01:~ # cat /etc/route.conf
40.40.40.0 88.79.61.13 255.255.255.0
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
/sbin/route
stbb01:/ #
stbb01:/ #
stbb01:/ #
stbb01:/ #
 
Old 04-05-2007, 05:29 AM   #2
auxsvr
Member
 
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
markraem
Member
 
Registered: Nov 2003
Posts: 82

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

this works correctly.


thank you !
 
  


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
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

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

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