Bug 175236 - [epair] [gif] epair and gif Devices On Bridge
Summary: [epair] [gif] epair and gif Devices On Bridge
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-12 16:20 UTC by Shawn Webb
Modified: 2017-12-31 22:29 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Shawn Webb 2013-01-12 16:20:00 UTC
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
Comment 1 Shawn Webb 2013-01-12 23:56:43 UTC
I've figured out that the devices can be added to the bridge if all the
MTU's match (I'm setting all MTUs to 1280). However, once I add the gif
device to the bridge, I get 100% packet loss.
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2013-01-20 01:48:18 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-net

Over to maintainer(s).
Comment 3 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:33 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped