From owner-freebsd-questions@FreeBSD.ORG Fri Jan 12 18:11:31 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id ECBDE16A505 for ; Fri, 12 Jan 2007 18:11:31 +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 87C7113C44C for ; Fri, 12 Jan 2007 18:11:31 +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 To: Nikos Vassiliadis , 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> Cc: Patrick Dung Subject: Re: How to clear strage route in routing table? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jan 2007 18:11:32 -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 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/