Re: How to clear strage route in routing table?

2007-01-12 Thread Patrick Dung
[EMAIL PROTECTED] ~]# ifconfig -a lnc0: flags=108843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,NEEDSGIANT mtu 1500 inet6 fe80::20c:29ff:fec4:3bd3%lnc0 prefixlen 64 scopeid 0x1 inet 172.16.21.62 netmask 0xff00 broadcast 172.16.21.255 ether 00:0c:29:c4:3b:d3 lnc1:

Re: How to clear strage route in routing table?

2007-01-12 Thread Nikos Vassiliadis
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.00xc0a80301 255.255.255.0 UGS 0 86

Re: How to clear strage route in routing table?

2007-01-12 Thread Patrick Dung
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 [EMAIL PROTECTED] ~]# 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 [EMAIL PROTECTED] ~]# route delete -net 192.168.3.0 route: writing

Re: How to clear strage route in routing table?

2007-01-12 Thread Greg Albrecht
i did this once too! the quickest way to fix the problem is: /etc/rc.d/routing restart -g On 11/01/07, Patrick Dung [EMAIL PROTECTED] 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

How to clear strage route in routing table?

2007-01-11 Thread Patrick Dung
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.00xc0a80301 255.255.255.0 UGS 0 86 fxp0 Any ideas?

How to clear strage route in routing table?

2007-01-11 Thread Patrick Dung
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.00xc0a80301 255.255.255.0 UGS 0 86 fxp0 Any ideas?

Re: How to clear strage route in routing table?

2007-01-11 Thread Armin Arh
On Thu, 11 Jan 2007 09:01:14 -0800 (PST) Patrick Dung [EMAIL PROTECTED] wrote: Hi Suppose I have mistype a command: # route add 192.168.3.0 255.255.255.0 192.168.3.1 What is the output of netstat -nrf inet ? Does route delete 192.168.3.0 help? Armin -- PUBBOX Postmaster + spam-killer,

Re: How to clear strage route in routing table?

2007-01-11 Thread Oliver Fromme
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