From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 12 18:38:09 2007 Return-Path: <owner-freebsd-hackers@FreeBSD.ORG> X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D605016A407 for <freebsd-hackers@freebsd.org>; Fri, 12 Jan 2007 18:38:09 +0000 (UTC) (envelope-from patrick_dkt@yahoo.com.hk) Received: from web54310.mail.yahoo.com (web54310.mail.yahoo.com [206.190.49.120]) by mx1.freebsd.org (Postfix) with SMTP id 5F2DC13C441 for <freebsd-hackers@freebsd.org>; Fri, 12 Jan 2007 18:38:09 +0000 (UTC) (envelope-from patrick_dkt@yahoo.com.hk) Received: (qmail 8827 invoked by uid 60001); 12 Jan 2007 18:11:26 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.hk; h=X-YMail-OSG:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=Uikhz88nM4uq4f6cRG2jUUt+HvdgUfA/9xqV3FJx/PYPuGK0ynxCMzMhWLZ83JyFBsvjk+VMf0yvzhkXT8Iev5bnyUtUAz2Qx+rEkPfQpqCEIU1itqB8wBlWGv6xYOMuJIk1XNRZNc/0MPugcD9WqNJJxaJpAi5lz2lUHKwaAHo=; X-YMail-OSG: _d1zrsoVM1lT9J8UZJ.LvKxOt4AItGm6IJouuez6shlXUICxZn3hAi5104YYkZ1HGU3ZpSGjpGN4wker0C8VxGwYfKJdF0VYC4kxi5WjEYyN.BEACo62_TuMPUxb9mE.QFRFqz05XSDT7rzUUYWkeEWwj0iwk2wZIIkK7fiN.TdJ8YEPhdQEIYPe Received: from [202.134.67.165] by web54310.mail.yahoo.com via HTTP; Fri, 12 Jan 2007 10:11:26 PST Date: Fri, 12 Jan 2007 10:11:26 -0800 (PST) From: Patrick Dung <patrick_dkt@yahoo.com.hk> To: Nikos Vassiliadis <nvass@teledomenet.gr>, freebsd-questions@freebsd.org, freebsd-hackers@freebsd.org In-Reply-To: <200701121721.51917.nvass@teledomenet.gr> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <820695.8033.qm@web54310.mail.yahoo.com> X-Mailman-Approved-At: Mon, 15 Jan 2007 00:42:56 +0000 Cc: Patrick Dung <patrick_dkt@yahoo.com.hk> Subject: Re: How to clear strage route in routing table? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD <freebsd-hackers.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-hackers>, <mailto:freebsd-hackers-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-hackers> List-Post: <mailto:freebsd-hackers@freebsd.org> List-Help: <mailto:freebsd-hackers-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-hackers>, <mailto:freebsd-hackers-request@freebsd.org?subject=subscribe> X-List-Received-Date: Fri, 12 Jan 2007 18:38:09 -0000 Thanks Nikos for reply I have figure out how to remove that route It was consider 192.168.3.0 as host instead of net [root@fbsd2 ~]# route add 192.168.3.0 255.255.255.0 192.168.3.1 add net 192.168.3.0: gateway 255.255.255.0 [root@fbsd2 ~]# route delete -net 192.168.3.0 route: writing to routing socket: No such process delete net 192.168.3.0: not in table [root@fbsd2 ~]# route delete -host 192.168.3.0 delete host 192.168.3.0 --- Nikos Vassiliadis <nvass@teledomenet.gr> wrote: > On Thursday 11 January 2007 19:01, Patrick Dung wrote: > > Hi > > > > Suppose I have mistype a command: > > # route add 192.168.3.0 255.255.255.0 192.168.3.1 > > > > There is a strange routing table and I am unable to remove it > unless > > reboot: > > > > 192.168.0&0xc0a80301 255.255.255.0 UGS 0 86 > fxp0 > > > > Any ideas? > > Use "route flush". And add your static routes again > either by hand or with the help of "/etc/rc.d/routing start" > > Nikos > ____________________________________________________________________________________ TV dinner still cooling? Check out "Tonight's Picks" on Yahoo! TV. http://tv.yahoo.com/