Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux HostsFree MagazinesJobs
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Linux Networking
Reload this Page unable to delete entry from routing table (SIOCDELRT: No such process)
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Linux Networking Hardware/Software related, Modems, Internet connection sharing, IPTables etc.

Reply
 
Thread Tools Display Modes
Old 03-18-2008   #1 (permalink)
Just Joined!
 
Join Date: Feb 2008
Posts: 67
unable to delete entry from routing table (SIOCDELRT: No such process)

I can't seem to delete one of the entries in my routing table.
Code:
[root@JC-Linux-Box ~]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         0.0.0.0         0.0.0.0         U     0      0        0 ppp0
[root@JC-Linux-Box ~]# route del 192.168.2.0
SIOCDELRT: No such process
[root@JC-Linux-Box ~]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         0.0.0.0         0.0.0.0         U     0      0        0 ppp0
[root@JC-Linux-Box ~]#
However, if I shut down eth0...
Code:
[root@JC-Linux-Box ~]# ifconfig eth0 down
[root@JC-Linux-Box ~]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         0.0.0.0         0.0.0.0         U     0      0        0 ppp0
[root@JC-Linux-Box ~]#
It's gone! And it comes right back when I bring up eth0. I want to delete it so I can change the gateway. Any ideas?
JVincent08 is offline   Reply With Quote
Old 03-18-2008   #2 (permalink)
Linux Enthusiast
 
Join Date: Apr 2004
Location: UK
Posts: 579
As you noticed, that route is linked to your network card. It is stating that everything on the 192.168.2.0/24 network is directly connected to your network card. It's automatically derived from your IP and netmask.

You don't need to get rid of this to change your gateway.

Code:
route del default gw 0.0.0.0
route add default gw <new gateway>
Let us know how you get on,

Chris...
__________________
DRM keeps an honest user loyal
kakariko81280 is offline   Reply With Quote
Old 03-18-2008   #3 (permalink)
Linux Enthusiast
 
Join Date: Nov 2007
Posts: 557
Yes, as mentioned, this is not a "gateway" route - it says that if your machine needs to reach any hosts on 192.168.2.0/24, just broadcast an arp using eth0.

It should not/cannot be deleted.

You have no "gateway" route specified in your routing table. A gateway has flag "G".

Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.100.0   0.0.0.0         255.255.255.0   U         0 0          0 vmnet8
192.168.200.0   0.0.0.0         255.255.255.0   U         0 0          0 vmnet1
10.66.90.0      0.0.0.0         255.255.254.0   U         0 0          0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0 lo
0.0.0.0         10.66.90.1      0.0.0.0         UG        0 0          0 eth0
HROAdmin26 is online now   Reply With Quote
Old 03-18-2008   #4 (permalink)
Just Joined!
 
Join Date: Feb 2008
Posts: 67
Ohh I see.. Thanks for putting up with my ignorance guys
JVincent08 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
Pingbacks are Off
Refbacks are Off
 

Free Magazines
Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe
Systems Management News, the newspaper for IT systems administration and data center managers!
Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe
The Enterprise Newsweekly
eWeek is the essential technology information source for builders of e-business.
subscribe
Oracle Magazine
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe
Total Telecom
Total Telecom is "The Economist of the communications industry".
subscribe
More free magazines »



All times are GMT. The time now is 10:38 PM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.2.0