Skip site navigation (1)Skip section navigation (2)
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
Cc:        Patrick Dung <patrick_dkt@yahoo.com.hk>
Subject:   Re: How to clear strage route in routing table?
Message-ID:  <820695.8033.qm@web54310.mail.yahoo.com>
In-Reply-To: <200701121721.51917.nvass@teledomenet.gr>

next in thread | previous in thread | raw e-mail | index | archive | help
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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?820695.8033.qm>