开发者

brctl and virtual interfaces [closed]

Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 11 years ago.

开发者_JS百科 Improve this question

Is 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜