multiple bridges with one nic

I'm trying to create bridge for vpn server, but i already have bridge with my nic, created by vm-bhyve. When adding nic to second bridge, i got
Code:
ifconfig: BRDGADD igb0: Device busy

I did not find anything about this restriction in the ifconfig or if_bridge documentation. Maybe I missed something? Where can I read about it?
 

SirDice

Administrator
Staff member
Administrator
Moderator

SirDice

Administrator
Staff member
Administrator
Moderator
But still, maybe you know where i can read about bridge limitations?
Don't know the exact details but it has something to do with the way a bridge is "hooked" into the interface's stack. A second bridge would need to hook in on the same spot, which is not possible. So it has to hook before or after the first bridge's hooks. This would lead to issues with traffic that's going out of one bridge and not appearing on the other.
 
Top