[EMAIL PROTECTED] ~]# ifconfig -a lnc0: flags=108843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 inet6 fe80::20c:29ff:fec4:3bd3%lnc0 prefixlen 64 scopeid 0x1 inet 172.16.21.62 netmask 0xffffff00 broadcast 172.16.21.255 ether 00:0c:29:c4:3b:d3 lnc1: flags=108802<BROADCAST,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 ether 00:0c:29:c4:3b:dd plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet 127.0.0.1 netmask 0xff000000 [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: Destination Gateway Flags Refs Use Netif Expire default 172.16.21.1 UGS 1 338 lnc0 127.0.0.1 127.0.0.1 UH 0 426 lo0 128.0.1&0xac101501 255.255.255.0 UGS 0 0 lnc0 172.16.21/24 link#1 UC 0 0 lnc0 172.16.21.1 00:50:56:c0:00:08 UHLW 2 11381 lnc0 1152 172.16.21.62 00:0c:29:c4:3b:d3 UHLW 1 26 lo0 Internet6: Destination Gateway Flags Netif Expire ::1 ::1 UH lo0 fe80::%lnc0/64 link#1 UC 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#4 UHL lo0 ff01:1::/32 link#1 UC lnc0 ff01:4::/32 ::1 UC lo0 ff02::%lnc0/32 link#1 UC 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]"