How to delete one of IP address from network route

From: kristianto.setiawan@sun.co.id
Date: Thu Mar 10 2005 - 04:55:00 EST


Dear All,

I've got a case using solaris9, which is I wanna try to delete one of IP
address from network route, fyi network config can figure out as follow:

root# netstat -rn
Routing Table: IPv4
  Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
192.168.5.8 192.168.3.32 UGH 1 8233
192.168.5.5 192.168.3.5 UGH 1 154
192.168.5.6 192.168.3.6 UGH 1 170
192.168.5.3 192.168.3.30 UGH 1 6862
192.168.5.2 192.168.3.26 UGH 1 14401
192.168.5.25 192.168.3.26 UGH 1 4
192.168.5.26 192.168.3.27 UGH 1 108
192.168.3.0 192.168.3.31 U 1 69144 ce0
192.168.5.0 192.168.5.4 U 1 7042 ce2
224.0.0.0 192.168.5.4 U 1 0 ce2
default 192.168.5.15 UG 1 272318
127.0.0.1 127.0.0.1 UH 3976773442 lo0

root# netstat -n | grep 192.168.28.88
192.168.5.4.23 192.168.28.88.1570 4000 1 49312 0 ESTABLISHED
192.168.5.4.23 192.168.28.88.1642 4288 0 49312 0 ESTABLISHED

from that case, I wanna try to delete IP addr 192.168.28.88 from that
route with command :

   root# route delete 192.168.28.88
   route: gateway required for add or delete command
   usage: route [ -fnqv ] cmd [[ -<qualifers> ] args ]

doesn't work....
then... I try to change that command with add 'gateway' to be:

   root# route delete 192.168.28.88 192.168.5.15
   delete host 192.168.28.88: gateway 192.168.5.15: not in table

that's still doesn't work !

anyone could help about this case?
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:30:19 EDT