大网数据广告活动
服务器运维问答

In virtual networking, how does a Virtual Switch differ from a linux kernel bridge?

· 52CE 我爱测

I have seen that in virtual networking, guest VMs/containers can be connected with host and internet either by using kernel bridges(linux) or Virtual Switches. Example - Bridges docker uses linux kernel bridges to connect the gue…

问题原文

原帖链接 · samshers · CC BY-SA 4.0

I have seen that in virtual networking, guest VMs/containers can be connected with host and internet either by using kernel bridges(linux) or Virtual Switches.

Example - Bridges

docker uses linux kernel bridges to connect the guest containers to host and internet. Even, VMWare/VirtualBox allows to use bridge networking to connect the guest VM's with the host and internet. Example - Virtual Switches

VMWare ESX uses virtual switches to connect VM's with host and internet. Microsoft Hyper-V uses virtual switches to connect VM's with host and internet. So, I started to wonder what's the difference between these two (bridges and virtual switches) and which approach is better than the other.

(please feel free to edit the question to expand or make the question more meaningful.)

社区高分解答

原帖链接 · Ron Trunk · CC BY-SA 4.0

First of all, many terms in IT are created by marketing departments, so they mean whatever the manufacturer wants it to mean.

Functionally, bridges and switches are the same thing. They forward packets based on layer 2 information. In the physical world, switches tend to have more ports than bridges and often have more features than "pure" bridges.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2020-06-24)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。