Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
开发者_JS百科 Improve this questionIs possible adding a virtual interface to a virtual bridge by brctl
? Does It make sense? I have a virtual interface but trying to add it to the bridge i get an error: invalid argument.
Thank you all!
The simple answer seems to be that any "ethernet like" interface can be added to a bridge. So basically is has to use ethernet addressing with MAC address resolution using ARP.
Specifically the net_device
structure must have a type of ARPHRD_ETHER
and an addr_len
of ETH_ALEN
. It also can't have IFF_LOOPBACK
or IFF_DONT_BRIDGE
set.
You can see the code which handles this in br_add_if()
in net/bridge/br_if.c
in the kernel source.
精彩评论