Re: How to clear strage route in routing table?



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



Relevant Pages

  • Re: Telnet: route to host
    ... > Why does the SCO box come up with the bogus error message? ... Suppose you have a correct routing table on your sco box that says the route ... then techincally the linux box is lying when it ...
    (comp.unix.sco.misc)
  • Re: B2TR and Windows Update
    ... I've been using your suggested route as a direct link thru IE7 for some time ... Patrick Schmid ... How To Fix Windows Update in Win/Win ... Where exactly do you get the error message? ...
    (microsoft.public.office.misc)
  • Re: Document Name or Path Invalid
    ... route I had not thought of, but your prompt to try using the "Recover text ... John ... >> backup but get the same error message from the same file. ...
    (microsoft.public.word.docmanagement)
  • Re: default gateway is not showing up even though it is configured
    ... IP and default gateway on one of the nic and staic IP only on another ... a computer can have only one default route. ... effect even though it is in the config file located at ... That error message is NOT an error ...
    (comp.os.linux.networking)

Quantcast