Date: Thu, 11 Jan 2007 19:12:35 +0100 (CET) From: Oliver Fromme <olli@lurza.secnetix.de> To: freebsd-questions@FreeBSD.ORG, patrick_dkt@yahoo.com.hk Subject: Re: How to clear strage route in routing table? Message-ID: <200701111812.l0BICZm0017315@lurza.secnetix.de> In-Reply-To: <639923.56141.qm@web54304.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200701111812.l0BICZm0017315>