SUMMARY : How to delete one of IP address from network route

From: kristianto.setiawan@sun.co.id
Date: Sun Mar 13 2005 - 20:35:40 EST


Thanks to many respondence :
Nouce
Pedro
Dale
Yann
Sean
Rob McMahon
Vincent Valle
Francisco
Tom Payerle
Luc Suryo
Christ Clark
Karyn Williams
Daniel Goras
Steve
Jeff Woolsey
-----------------

SUMMARY :

netstat -rn is routing table instead of network connection (ie: netstat -n)
There is no specific route for 192.168.28.88 in route table, so i can't delete it. :-)
Another way to delete the connection using lsof command (freeware/GPL)

#lsof -i4TCP@192.168.28.88:23

you will get something similar to this (output in my Linux box, must be
almost equal in Solaris 9)

COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
smbd 4467 root 22u IPv4 30370
      TCP IP1:PORT1->IP2:PORT2 (ESTABLISHED)

And then

# kill 4467

Thanks !
Kristianto

----- Original Message -----
From: kristianto.setiawan@sun.co.id
Date: Thursday, March 10, 2005 4:55 pm
Subject: How to delete one of IP address from network route

> 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
> ESTABLISHED192.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
_______________________________________________
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:20 EDT