From owner-freebsd-questions@FreeBSD.ORG Thu Jan 11 18:12:43 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 1373616A55A for ; Thu, 11 Jan 2007 18:12:43 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.freebsd.org (Postfix) with ESMTP id 92B8413C441 for ; Thu, 11 Jan 2007 18:12:42 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (jchobm@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id l0BICZBt017316; Thu, 11 Jan 2007 19:12:41 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id l0BICZm0017315; Thu, 11 Jan 2007 19:12:35 +0100 (CET) (envelope-from olli) Date: Thu, 11 Jan 2007 19:12:35 +0100 (CET) Message-Id: <200701111812.l0BICZm0017315@lurza.secnetix.de> From: Oliver Fromme To: freebsd-questions@FreeBSD.ORG, patrick_dkt@yahoo.com.hk In-Reply-To: <639923.56141.qm@web54304.mail.yahoo.com> X-Newsgroups: list.freebsd-questions User-Agent: tin/1.8.2-20060425 ("Shillay") (UNIX) (FreeBSD/4.11-STABLE (i386)) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Thu, 11 Jan 2007 19:12:41 +0100 (CET) Cc: Subject: Re: How to clear strage route in routing table? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@FreeBSD.ORG, patrick_dkt@yahoo.com.hk List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Jan 2007 18:12:43 -0000 Patrick Dung wrote: > Suppose I have mistype a command: > # route add 192.168.3.0 255.255.255.0 192.168.3.1 So you swapped gateway and netmask. Nasty mistake. :-) It's usually better to use CIDR notation (with a slash followed by the number of network bits), to avoid any confusion. It's also less typing. # route add 192.168.3.0/24 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 How did you try to remove it (exact comand line, please), and what was the error message that you got? You should enter exactly the same line you used to add the route, only replace "add" with "delete". It works fine for me, so I assume you did a syntax error when trying to remove it. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "The last good thing written in C was Franz Schubert's Symphony number 9." -- Erwin Dieterich