From the course: Exploring Linux Internals: Advanced Insights and Practical Applications

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Network bridge devices

Network bridge devices

- All right, let's talk about network bridges. A network bridge works like a virtual switch. It connects a software bridge to a physical network card. And doing so allows virtual machines as well as containers to connect to the network with our own IP address. Behind the network bridge, a dedicated device network can be defined, and that is what you get, for instance, in Docker networking as a default. Alright, so let me make a drawing to explain what these network bridges are all about. So if this would be your node, your physical computer, and this will be your network card, sometimes within a computer, in the case of containers, for instance, you have a need for internal networking, so that's a virtual internal network. Give it an IP address, whatever you want, and connect your containers or whatever applications to this virtual network. Now, what exactly is this network bridge doing to make the virtual network working? Well, simple, it behaves like a virtual switch, and this…

Contents