Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Jan 2013 16:16:44 GMT
From:      Shawn Webb <lattera@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/175236: epair and gif Devices On Bridge
Message-ID:  <201301121616.r0CGGiHC070151@red.freebsd.org>
Resent-Message-ID: <201301121620.r0CGK0LA085674@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1280
        ether 02:fe:21:34:d3:01
        inet6 2001:470:8142::2 prefixlen 48 
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
        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<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 17 priority 128 path cost 55
root@pwnie:/root # ifconfig gif0
gif0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> 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<PERFORMNUD,AUTO_LINKLOCAL>
        options=1<ACCEPT_REV_ETHIP_VER>
>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301121616.r0CGGiHC070151>