Linux network interfaces
Bridge
在bridge中,有一个组件叫MAC learning database(也叫FDB),当一个网络包经过bridge的时候,它会做两件事:1. 将这个网络包的mac地址和bridge端口的对应关系记录到FDB里(如果不存在)2.从FDB里查找目的mac地址对应的bridge端口,如果找到了,则从那个端口将包转发出去,如果没有,则向除源端口外的其他端口都发送这个网络包。
查看FDB表的内容的命令为:bridge fdb show
(e.g. bridge fdb show br0
)或brctl showmacs
(e.g. brctl showmacs br0
)
创建bridge相关的命令:
Tunnel
参考资料
Introduction to Linux interfaces for virtual networking: https://developers.redhat.com/blog/2018/10/22/introduction-to-linux-interfaces-for-virtual-networking
Understanding Linux Internet working: https://www.actualtechmedia.com/wp-content/uploads/2018/01/CUMULUS-Understanding-Linux-Internetworking.pdf
Bridge:
Linux Bridge - how it works: https://goyalankit.com/blog/linux-bridge
TUN/TAP:
Network Tunnels with Linux: https://www.jumpingbean.co.za/blogs/mark/linux-network-tunnels
Last updated