Find the answer to your Linux question:
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just 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.
    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?

  2. #2
    Linux Enthusiast
    Join Date
    Apr 2004
    Location
    UK
    Posts
    678
    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...
    To be good, you must first be bad. "Newbie" is a rank, not a slight.

  3. #3
    Linux Guru
    Join Date
    Nov 2007
    Posts
    1,746
    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

  4. #4
    Just Joined!
    Join Date
    Feb 2008
    Posts
    72
    Ohh I see.. Thanks for putting up with my ignorance guys

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •