Results 1 to 4 of 4
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
...
- 03-18-2008 #1Just Joined!
- Join Date
- Feb 2008
- Posts
- 72
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.
However, if I shut down eth0...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 ~]#
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?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 ~]#
- 03-18-2008 #2Linux Enthusiast
- Join Date
- Apr 2004
- Location
- UK
- Posts
- 658
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.
Let us know how you get on,Code:route del default gw 0.0.0.0 route add default gw <new gateway>
Chris...To be good, you must first be bad. "Newbie" is a rank, not a slight.
- 03-18-2008 #3Linux Guru
- Join Date
- Nov 2007
- Posts
- 1,695
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
- 03-18-2008 #4Just Joined!
- Join Date
- Feb 2008
- Posts
- 72
Ohh I see.. Thanks for putting up with my ignorance guys


Reply With Quote
