Networking Forums

Networking Forums > Computer Networking > Linux Networking > To delete an old default route

Reply
Thread Tools Display Modes

To delete an old default route

 
 
George Bell
Guest
Posts: n/a

 
      12-13-2003, 07:53 PM
This is my present routing table(unfortuneately):

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
lapis.net * 255.255.255.0 U 0 0 0 eth0
dc.dc.cox.net * 255.255.240.0 U 0 0 0 eth1
default ip68-100-112-1. 0.0.0.0 UG 0 0 0 eth1
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0

I'm trying to delete my old default route from the table(the one with
gateway 192.168.1.1). So I tried to delete it from the kernel routing
table with command:

route del -net default gw 192.168.1.1

That worked... until I rebooted the computer. Now the old default route is
back again as it was before! Now, how can I change the routing table
permanently ?

Many thanks.

George

--
#
#...
 
Reply With Quote
 
 
 
 
Bit Twister
Guest
Posts: n/a

 
      12-13-2003, 08:04 PM
On Sat, 13 Dec 2003 15:53:22 -0500, George Bell wrote:
>
> That worked... until I rebooted the computer. Now the old default route is
> back again as it was before! Now, how can I change the routing table
> permanently ?


Please read http://www.catb.org/~esr/faqs/smart-questions.html
Over 100 linuxs. Are we going to have to guess?
 
Reply With Quote
 
George Bell
Guest
Posts: n/a

 
      12-14-2003, 01:27 AM
Bit Twister wrote:

> On Sat, 13 Dec 2003 15:53:22 -0500, George Bell wrote:
>>
>> That worked... until I rebooted the computer. Now the old default route
>> is
>> back again as it was before! Now, how can I change the routing table
>> permanently ?

>
> Please read http://www.catb.org/~esr/faqs/smart-questions.html
> Over 100 linuxs. Are we going to have to guess?


I'm using SuSE 8.0, although I didn't think my question was necessarily
distro specific. Anyway, I was able to answer the question myself. Static
routes are saved in a file called "/etc/sysconfig/network/routes". The
configuration tool for my distro "Yast" edits this file.

George

--
#
#...
 
Reply With Quote
 
Bit Twister
Guest
Posts: n/a

 
      12-14-2003, 01:49 AM
On Sat, 13 Dec 2003 21:27:52 -0500, George Bell wrote:
>
> I'm using SuSE 8.0, although I didn't think my question was necessarily
> distro specific. Anyway, I was able to answer the question myself. Static
> routes are saved in a file called "/etc/sysconfig/network/routes". The
> configuration tool for my distro "Yast" edits this file.


Yes configuration files vary amoung distros, Redhat and Mandrak have
/etc/sysconfig/static-routes

/etc/sysconfig/network has the default gateway and gateway device.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Route delete command maddhaze@gmail.com Windows Networking 3 08-25-2005 01:19 PM
Making Route Delete Persistent Windows Networking 8 02-17-2005 02:23 PM
route delete not working Tom P Windows Networking 6 05-27-2004 02:11 PM
RH9 default route Fabio C. Linux Networking 2 04-14-2004 12:07 PM
How to delete route information for NIC from Network GUI in Redhat8.0 Linux_Newbie Linux Networking 1 10-29-2003 02:54 PM



1 2 3 4 5 6 7 8 9 10 11