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 02-03-2003, 01:30 PM   #1
pioniere
Member
 
Registered: Dec 2002
Location: Vancouver Island, Canada
Distribution: Slackware
Posts: 46
Blog Entries: 1

Rep: Reputation: 15
Working with 'route' and unwanted route entries


I am working with the 'route' command in RH 7.3, trying to get a couple of different subnets to talk to each other. The problem I am encountering is that there are routes now entered (i.e., entered using the 'route' command) that I cannot get rid of.

I can use the 'route' command to successfully delete the unwanted route(s), and typing the 'route -n' command shows that they have been removed.

However, when I re-start the network, or re-boot, the unwanted route(s) are back, showing up when I type 'route -n'. How do I permanently get rid of these unwanted routes?

I have looked into the bowels of /etc/sysconfig, and /proc/net in an attempt to resolve this issue. The unwanted routes do appear to be in /proc/net/route, but these files are controlled by the kernel and I don't believe they can be directly edited.

It would be hugely appreciated if anyone who can explain this to me. I haven't been able to find much documentation out there that deals specifically with the mechanics of 'route'. Thanks.
 
Old 02-03-2003, 01:38 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Hi there ...

No idea how/where RH stores the setup information,
but you could try a
Code:
grep -r "route add" /etc/*
to locate the files that hold your route configuration?
Or at least get an indication where the routes are being set,
and hopefully you can then check the files that do it
where the info comes from :)

HIH

Cheers,
Tink
 
Old 02-04-2003, 11:05 AM   #3
pioniere
Member
 
Registered: Dec 2002
Location: Vancouver Island, Canada
Distribution: Slackware
Posts: 46

Original Poster
Blog Entries: 1

Rep: Reputation: 15
No joy

This provides interesting information, but I am no closer to solving this issue. This is a real annoyance, and I am unable to find information on this anywhere. Even the detailed Network Administrator's Guide at The Linux Documentation Project doesn't give details on this.

There must be someone out there who has worked with routing tables enough to understand how to remove 'persistent' entries. Lets hear from some experts!!
 
Old 02-04-2003, 12:38 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Well, if you actually understood what I said and
went through the scripts looking for all possible
additions to route and had no luck ...

... are you running routed (the routing daemon)
by any chance?

Cheers,
Tink
 
Old 02-04-2003, 03:16 PM   #5
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
Well there are some basic routes that are added by default when you start networking such as a loopback route and a subnet route for each interface, are you trying to get rid of these?

If you have route entries beyond what is mentioned above then tinkster gave you the best method I can think of for finding these. If you have route entries that exist after reboot there really are only two explainations, one being that these should exist by default for each interface and the other being that some startup script adds them.

If you want more specific answers besides to grep your /etc directory then maybe you could provide some more specific information such as what your interfaces are set at (ifconfig -a) and what routes exist (netstat -r.)
 
Old 02-04-2003, 03:42 PM   #6
TRBentley
LQ Newbie
 
Registered: May 2001
Location: UK
Distribution: RedHat 8.0
Posts: 14

Rep: Reputation: 0
This is a known problem with RH. I had this problem when I started using dial up modems. The sulution recommended to me is to run a script from the S99local.

/sbin/route del default


This did the trick for me.
 
Old 02-05-2003, 12:14 PM   #7
pioniere
Member
 
Registered: Dec 2002
Location: Vancouver Island, Canada
Distribution: Slackware
Posts: 46

Original Poster
Blog Entries: 1

Rep: Reputation: 15
Thanks for all of the advice thus far. The routes I am trying to remove are not the 'default' routes placed there upon the activitation of the network device, but rather are routes that were manually added later.

I'll check out the s99local suggestion.
 
  


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
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
Adding entries to route table in C? kuronai Programming 2 04-04-2005 02:42 PM
ADSL as a Alternate route or backup route bhagat2000 Linux - Networking 0 05-27-2004 03:17 PM
Route table loses entries filth Linux - Networking 3 05-05-2003 05:27 PM
Adding persistent(permanent) route entries on Red hat Linux 7.1 sram Linux - Networking 1 02-08-2002 10:07 AM

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

All times are GMT -5. The time now is 02:51 AM.

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