Image

Imagebudhaboy wrote in Imagelinux

I added a route using the following:

route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.1.203

the idea was to install a gateway to the subnet 192.168.2.0/24.

Now I want to get rid of it.

I use the following:
route del 192.168.2.0
and get the following:
SIOCDELRT: No such process

here is my routing table:
boyle:~ # route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 192.168.1.203 255.255.255.0 UG 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0

what am I missing? the process is there, isn't it?