From owner-freebsd-amd64@FreeBSD.ORG Thu Apr 3 23:40:01 2014 Return-Path: Delivered-To: freebsd-amd64@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D60204BF for ; Thu, 3 Apr 2014 23:40:01 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B34C3CBA for ; Thu, 3 Apr 2014 23:40:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s33Ne175016592 for ; Thu, 3 Apr 2014 23:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s33Ne1mA016591; Thu, 3 Apr 2014 23:40:01 GMT (envelope-from gnats) Resent-Date: Thu, 3 Apr 2014 23:40:01 GMT Resent-Message-Id: <201404032340.s33Ne1mA016591@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-amd64@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Marcelo Gondim Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 999E64A6 for ; Thu, 3 Apr 2014 23:37:56 +0000 (UTC) Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7A69ECAA for ; Thu, 3 Apr 2014 23:37:56 +0000 (UTC) Received: from cgiserv.freebsd.org ([127.0.1.6]) by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s33Nbtlr092567 for ; Thu, 3 Apr 2014 23:37:55 GMT (envelope-from nobody@cgiserv.freebsd.org) Received: (from nobody@localhost) by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s33NbtIF092562; Thu, 3 Apr 2014 23:37:55 GMT (envelope-from nobody) Message-Id: <201404032337.s33NbtIF092562@cgiserv.freebsd.org> Date: Thu, 3 Apr 2014 23:37:55 GMT From: Marcelo Gondim To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: amd64/188245: Critical vlan problem with OpenBGP X-Mailman-Approved-At: Fri, 04 Apr 2014 00:59:21 +0000 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2014 23:40:01 -0000 >Number: 188245 >Category: amd64 >Synopsis: Critical vlan problem with OpenBGP >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-amd64 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Apr 03 23:40:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Marcelo Gondim >Release: 10-STABLE >Organization: >Environment: FreeBSD rt01.xxxxx.xxx.xx 10.0-STABLE FreeBSD 10.0-STABLE #5 r264032: Wed Apr 2 23:32:55 BRT 2014 root@rt01.xxxxx.xxx.xx:/usr/obj/usr/src/sys/INTNET10 amd64 >Description: We have a router that connects 4 cities to the Internet using iBGP and eBGP. We are using OpenBGP for this function. Each city reaches the router via VLANs created on the lagg interface: # ifconfig lagg1 lagg1: flags=8843 metric 0 mtu 1500 options=4019b ether 00:15:17:8c:81:d6 inet6 fe80::215:17ff:fe8c:81d6%lagg1 prefixlen 64 scopeid 0xd nd6 options=21 media: Ethernet autoselect status: active laggproto lacp lagghash l2,l3,l4 laggport: em5 flags=1c laggport: em2 flags=1c # ifconfig vlan0 vlan0: flags=8843 metric 0 mtu 1500 options=103 ether 00:15:17:8c:81:d6 inet 186.xxx.xx.1 netmask 0xffffffe0 broadcast 186.xxx.xx.31 inet6 fe80::215:17ff:fe8c:81d6%vlan0 prefixlen 64 scopeid 0xe inet6 2804:xxxx:dead::1 prefixlen 64 nd6 options=21 media: Ethernet autoselect status: active vlan: 3081 parent interface: lagg1 # ifconfig vlan1 vlan1: flags=8843 metric 0 mtu 1500 options=103 ether 00:15:17:8c:81:d6 inet 177.xx.xxx.254 netmask 0xffffffe0 broadcast 177.xx.xxx.255 inet6 fe80::215:17ff:fe8c:81d6%vlan1 prefixlen 64 scopeid 0xf inet6 2804:xxxx:cafe::1 prefixlen 64 nd6 options=21 media: Ethernet autoselect status: active vlan: 3082 parent interface: lagg1 # ifconfig vlan2 vlan2: flags=8843 metric 0 mtu 1500 options=103 ether 00:15:17:8c:81:d6 inet 186.xxx.xx.1 netmask 0xffffffe0 broadcast 186.xxx.xx.31 inet6 fe80::215:17ff:fe8c:81d6%vlan2 prefixlen 64 scopeid 0x10 inet6 2804:xxxx:cade::1 prefixlen 64 nd6 options=21 media: Ethernet autoselect status: active vlan: 2126 parent interface: lagg1 # ifconfig vlan3 vlan3: flags=8843 metric 0 mtu 1500 options=103 ether 00:15:17:8c:81:d6 inet 186.xxx.xx.1 netmask 0xffffffe0 broadcast 186.xxx.xx.31 inet6 fe80::215:17ff:fe8c:81d6%vlan3 prefixlen 64 scopeid 0x11 inet6 2804:xxxx:bad::1 prefixlen 64 nd6 options=21 media: Ethernet autoselect status: active vlan: 3088 parent interface: lagg1 So far everything works perfectly. But when I did: # ifconfig vlan4 create All my routing stopped, nor the killing bgpd process and restarting it did back operation. This did not happen in FreeBSD 9.2 The system only returned to work after the router rebooted. This problem does not happen if I start the router with the settings of the new vlan on /etc/rc.conf I see this as a serious problem for a router. >How-To-Repeat: With OpenBGP running, run the following command: # ifconfig vlanX create >Fix: >Release-Note: >Audit-Trail: >Unformatted: