From owner-freebsd-questions@FreeBSD.ORG Tue Feb 21 20:56:02 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C6F07106567D; Tue, 21 Feb 2012 20:56:02 +0000 (UTC) (envelope-from kes-kes@yandex.ru) Received: from forward16.mail.yandex.net (forward16.mail.yandex.net [IPv6:2a02:6b8:0:1402::1]) by mx1.freebsd.org (Postfix) with ESMTP id DF85A8FC1E; Tue, 21 Feb 2012 20:56:01 +0000 (UTC) Received: from smtp19.mail.yandex.net (smtp19.mail.yandex.net [95.108.252.19]) by forward16.mail.yandex.net (Yandex) with ESMTP id 19B7CD22E53; Wed, 22 Feb 2012 00:56:00 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1329857760; bh=/WtycYFbajrDWMxhQHqoyCSz8jQM3dQ6+ODHwG8BlAE=; h=Date:From:Reply-To:Message-ID:To:CC:Subject:In-Reply-To: References:MIME-Version:Content-Type:Content-Transfer-Encoding; b=HvPM5Vkfi52XaeIp1nbghI2/bVxVYnQGzk77PYRaquNXz1Ce9Srs2oBAVyXf0k827 Kz9meXO59n5RB4zJgLeAeTNxccnx3JJk38U2ph6Ctu5Jxefwh7TScuAHgAWjpLixGw pGxFK9muaatmfoZilbzCKri2umT+IIsXI11XJg9Y= Received: from smtp19.mail.yandex.net (localhost [127.0.0.1]) by smtp19.mail.yandex.net (Yandex) with ESMTP id DA156BE0193; Wed, 22 Feb 2012 00:55:59 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1329857759; bh=/WtycYFbajrDWMxhQHqoyCSz8jQM3dQ6+ODHwG8BlAE=; h=Date:From:Reply-To:Message-ID:To:CC:Subject:In-Reply-To: References:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Ep6Mp+SUVO20wtmqcEQtVp9VM+sW50IiWOm+CaUqBvOBtjRdL6G1a/QcrOhYXUAt4 jvEAuBReuJG57//XY+QKlr0xyJYqXF0AcWeCXs3LIIsPrLzg4oXXNuvlnUKlaTCBlM vMgRRHmK/j0wUmpwLmRN8wpn+9/MPXq6awTPQifg= Received: from unknown (unknown [77.93.52.20]) by smtp19.mail.yandex.net (nwsmtp/Yandex) with ESMTP id txhmDvDJ-txhWZ7qq; Wed, 22 Feb 2012 00:55:59 +0400 X-Yandex-Spam: 1 Date: Tue, 21 Feb 2012 22:55:58 +0200 From: =?koi8-r?B?68/O2MvP1yDl18fFzsnK?= X-Mailer: The Bat! (v4.0.24) Professional Organization: =?koi8-r?B?/vAg68/O2MvP1ywgRnJlZUxpbmU=?= X-Priority: 3 (Normal) Message-ID: <323151470.20120221225558@yandex.ru> To: Ivan Ivanyuk In-Reply-To: References: <376001325.20120220220651@yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit Cc: freebsd-net@freebsd.org, freebsd-questions@freebsd.org Subject: Re[2]: deleting an alias from interface cause the static route to be deleted X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: =?koi8-r?B?68/O2MvP1yDl18fFzsnK?= List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Feb 2012 20:56:02 -0000 úÄÒÁ×ÓÔ×ÕÊÔÅ, Ivan. ÷Ù ÐÉÓÁÌÉ 21 ÆÅ×ÒÁÌÑ 2012 Ç., 0:45:33: II> 2012/2/20 ëÏÎØËÏ× å×ÇÅÎÉÊ : >> >> vlan74: flags=8843 metric 0 mtu 1500 >> š š š šoptions=3 >> š š š šether f4:6d:04:7c:7b:d3 >> š š š šinet6 fe80::f66d:4ff:fe7c:7bd3%vlan74 prefixlen 64 scopeid 0xd >> š š š šinet 10.1.26.1 netmask 0xfffffe00 broadcast 10.1.27.255 >> š š š šinet 10.1.26.3 netmask 0xfffffe00 broadcast 10.1.27.255 >> š š š šnd6 options=29 >> š š š šmedia: Ethernet autoselect (1000baseT ) >> š š š šstatus: active >> š š š švlan: 74 parent interface: re0 >> >> ifconfig vlan74 delete 10.1.26.1 >> >> will delete these static routes from route table: >> >> 10.3.0.1 š š š š š 10.1.26.2 š š š š šUGHS š š š š8 š š š367 vlan74 >> 10.1.6.0/23 š š š š10.1.26.2 š š š š šUGS š š š 275 š 166969 vlan74 >> >> Does this a bug? >> II> See here: II> http://lists.freebsd.org/pipermail/freebsd-net/2012-February/031404.html II> It should be fixed, I asked Andrew and he said it was fixed as well. II> If latest code still has this problem, than yes it's a bug. http://www.freebsd.org/cgi/query-pr.cgi?pr=128954&cat=bin it is repeatable on # uname -a FreeBSD 8.3-PRERELEASE FreeBSD 8.3-PRERELEASE #1 r231881: Fri Feb 17 17:20:09 UTC 2012 @:/usr/obj/usr/src/sys/KES_KERN_v8 amd64 # ifconfig vlan7 vlan7: flags=8002 metric 0 mtu 1500 ether 00:00:00:00:00:00 vlan: 0 parent interface: # ifconfig vlan7 vlan 7 vlandev re0 # ifconfig vlan7 vlan7: flags=8842 metric 0 mtu 1500 options=3 ether 14:da:e9:b8:5a:76 media: Ethernet autoselect (100baseTX ) status: active vlan: 7 parent interface: re0 # ifconfig vlan7 add 10.3.0.1/24 # ifconfig vlan7 add 10.3.0.2/24 # route add 10.4.0.0/24 10.3.0.3 add net 10.4.0.0: gateway 10.3.0.3 # netstat -nr Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 10.11.6.1 UGS 0 0 re0 10.0.0.0/8 10.11.6.1 UGS 1 241 re0 10.3.0.0/24 link#7 U 0 0 vlan7 10.3.0.1 link#7 UHS 0 0 lo0 10.3.0.2 link#7 UHS 0 0 lo0 10.4.0.0/24 10.3.0.3 UGS 0 0 vlan7 10.5.0.18 link#5 UH 0 0 lo0 10.11.6.0/28 link#2 U 0 6161 re0 10.11.6.7 link#2 UHS 0 0 lo0 127.0.0.1 link#5 UH 0 53 lo0 Internet6: Destination Gateway Flags Netif Expire ::/96 ::1 UGRS lo0 ::1 ::1 UH lo0 ::ffff:0.0.0.0/96 ::1 UGRS lo0 fe80::%lo0/64 link#5 U lo0 fe80::1%lo0 link#5 UHS lo0 ff01::%lo0/32 fe80::1%lo0 U lo0 ff02::%lo0/32 fe80::1%lo0 U lo0 -------------------------------- # ifconfig vlan7 delete 10.3.0.1 # netstat -nr Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 10.11.6.1 UGS 0 0 re0 10.0.0.0/8 10.11.6.1 UGS 0 334 re0 10.3.0.0/24 link#7 U 0 0 vlan7 10.3.0.2 link#7 UHS 0 0 lo0 10.5.0.18 link#5 UH 0 0 lo0 10.11.6.0/28 link#2 U 0 6161 re0 10.11.6.7 link#2 UHS 0 0 lo0 127.0.0.1 link#5 UH 0 53 lo0 Internet6: Destination Gateway Flags Netif Expire ::/96 ::1 UGRS lo0 ::1 ::1 UH lo0 ::ffff:0.0.0.0/96 ::1 UGRS lo0 fe80::%lo0/64 link#5 U lo0 fe80::1%lo0 link#5 UHS lo0 ff01::%lo0/32 fe80::1%lo0 U lo0 ff02::%lo0/32 fe80::1%lo0 U lo0 # ifconfig vlan7 vlan7: flags=8843 metric 0 mtu 1500 options=3 ether 14:da:e9:b8:5a:76 inet 10.3.0.2 netmask 0xffffff00 broadcast 10.3.0.255 media: Ethernet autoselect (100baseTX ) status: active vlan: 7 parent interface: re0 NOTICE: that '10.4.0.0/24' is still reachable through 10.3.0.3 via vlan7 but route 10.4.0.0/24 10.3.0.3 UGS 0 0 vlan7 was deleted while deleting IP from vlan -- ó Õ×ÁÖÅÎÉÅÍ, ëÏÎØËÏ× mailto:kes-kes@yandex.ru