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 unless
reboot:

192.168.0&0xc0a80301 255.255.255.0  UGS 0   86   fxp0

Any ideas?




Any questions? Get answers on any topic at www.Answers.yahoo.com.  Try it now.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"




--
Greg Albrecht ([EMAIL PROTECTED])
An Indie, Hip Hop and IDM Podcast: The Letter G
http://theletterg.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


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 to routing socket: No such process
delete net 192.168.3.0: not in table
[EMAIL PROTECTED] ~]# route delete -host 192.168.3.0
delete host 192.168.3.0

--- Nikos Vassiliadis <[EMAIL PROTECTED]> 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/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


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.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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to clear strage route in routing table?

2007-01-12 Thread Patrick Dung
[EMAIL PROTECTED] ~]# ifconfig -a
lnc0: flags=108843
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: flags=108802 mtu 1500
ether 00:0c:29:c4:3b:dd
plip0: flags=108810 mtu 1500
lo0: flags=8049 mtu 16384
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
inet 127.0.0.1 netmask 0xff00
[EMAIL PROTECTED] ~]# route add 192.168.3.0 255.255.255.0 172.16.21.1
add net 192.168.3.0: gateway 255.255.255.0
[EMAIL PROTECTED] ~]# netstat -nr
Routing tables

Internet:
DestinationGatewayFlagsRefs  Use  Netif
Expire
default172.16.21.1UGS 1  338   lnc0
127.0.0.1  127.0.0.1  UH  0  426lo0
128.0.1&0xac101501 255.255.255.0  UGS 00   lnc0
172.16.21/24   link#1 UC  00   lnc0
172.16.21.100:50:56:c0:00:08  UHLW211381   lnc0  
1152
172.16.21.62   00:0c:29:c4:3b:d3  UHLW1   26lo0

Internet6:
Destination   Gateway   Flags  
   Netif Expire
::1   ::1   UH 
lo0
fe80::%lnc0/64link#1UC 
   lnc0
fe80::20c:29ff:fec4:3bd3%lnc0 00:0c:29:c4:3b:d3 UHL
lo0
fe80::%lo0/64 fe80::1%lo0   U  
lo0
fe80::1%lo0   link#4UHL
lo0
ff01:1::/32   link#1UC 
   lnc0
ff01:4::/32   ::1   UC 
lo0
ff02::%lnc0/32link#1UC 
   lnc0
ff02::%lo0/32 ::1   UC 
lo0
[EMAIL PROTECTED] ~]# route delete 192.168.3.0 255.255.255.0
route: writing to routing socket: No such process
delete net 192.168.3.0: gateway 255.255.255.0: not in table
[EMAIL PROTECTED] ~]# route delete 192.168.3.0 255.255.255.0 172.16.21.1
route: writing to routing socket: No such process
delete net 192.168.3.0: gateway 255.255.255.0: not in table
[EMAIL PROTECTED] ~]# route delete -net 192.168.3.0 255.255.255.0 172.16.21.1
route: writing to routing socket: No such process
delete net 192.168.3.0: gateway 255.255.255.0: not in table
[EMAIL PROTECTED] ~]# route delete "128.0.1&0xac101501" 255.255.255.0
route: bad address: 128.0.1&0xac101501
[EMAIL PROTECTED] ~]# route delete 128.0.1 255.255.255.0
route: writing to routing socket: No such process
delete host 128.0.1: gateway 255.255.255.0: not in table


--- Oliver Fromme <[EMAIL PROTECTED]> wrote:

> 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
> 



 

Sucker-punch spam with award-winning protection. 
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


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 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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


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, free email address at http://pubbox.net/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


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.0&0xc0a80301 255.255.255.0  UGS 0   86   fxp0

Any ideas?


 

Need a quick answer? Get one in minutes from people who know.
Ask your question on www.Answers.yahoo.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


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.0&0xc0a80301 255.255.255.0  UGS 0   86   fxp0

Any ideas?


 

Any questions? Get answers on any topic at www.Answers.yahoo.com.  Try it now.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"