From owner-freebsd-bugs@FreeBSD.ORG Sat Jan 12 16:20:00 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 8B96778C for ; Sat, 12 Jan 2013 16:20:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 736FAEDA for ; Sat, 12 Jan 2013 16:20:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r0CGK035085675 for ; Sat, 12 Jan 2013 16:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r0CGK0LA085674; Sat, 12 Jan 2013 16:20:00 GMT (envelope-from gnats) Resent-Date: Sat, 12 Jan 2013 16:20:00 GMT Resent-Message-Id: <201301121620.r0CGK0LA085674@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Shawn Webb Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id ADC12760 for ; Sat, 12 Jan 2013 16:16:44 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 6FCCFEBF for ; Sat, 12 Jan 2013 16:16:44 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r0CGGiCM070152 for ; Sat, 12 Jan 2013 16:16:44 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r0CGGiHC070151; Sat, 12 Jan 2013 16:16:44 GMT (envelope-from nobody) Message-Id: <201301121616.r0CGGiHC070151@red.freebsd.org> Date: Sat, 12 Jan 2013 16:16:44 GMT From: Shawn Webb To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: kern/175236: epair and gif Devices On Bridge X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Jan 2013 16:20:00 -0000 >Number: 175236 >Category: kern >Synopsis: epair and gif Devices On Bridge >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jan 12 16:20:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Shawn Webb >Release: FreeBSD 9-STABLE >Organization: >Environment: FreeBSD pwnie 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #2 r244139+c915ff4: Wed Dec 12 10:06:12 EST 2012 shawn@pwnie:/usr/obj/usr/src/sys/SEC amd64 >Description: After adding a gif device to a bridge device, I cannot add epair devices to the same bridge. The error I get is: ifconfig: BRDGADD epair0a: Invalid argument I'm using gif to give me tunneled IPv6 through Hurricane Electric. I'd like to give my jails IPv6 addresses via epair devices. Adding both gif and epair devices onto the bridge would give me that ability. Here's my relevant networking config: root@pwnie:/root # ifconfig bridge1 bridge1: flags=8843 metric 0 mtu 1280 ether 02:fe:21:34:d3:01 inet6 2001:470:8142::2 prefixlen 48 nd6 options=21 id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 member: gif0 flags=143 ifmaxaddr 0 port 17 priority 128 path cost 55 root@pwnie:/root # ifconfig gif0 gif0: flags=8051 metric 0 mtu 1280 tunnel inet 192.168.3.10 --> 72.52.104.74 inet6 2001:470:1f04:1a28::2 --> 2001:470:1f04:1a28::1 prefixlen 128 inet6 fe80::be30:5bff:fea5:5dd%gif0 prefixlen 64 scopeid 0x11 inet6 2001:470:8142::1 prefixlen 48 nd6 options=21 options=1 >How-To-Repeat: 1) Create gif device: ifconfig gif0 create 2) Create epair device: ifconfig epair0 create 3) Create bridge device: ifconfig bridge0 create 4) Add gif0 to bridge0: ifconfig bridge0 addm gif0 5) Add epair0a to bridge0: ifconfig bridge0 addm epair0a At this point, you will get the error I pasted above >Fix: >Release-Note: >Audit-Trail: >Unformatted: