I need to create a network bridge for my qemu virtual machines under linux .
I'm reading manpages, official documentations and tutorials but I still find impossible to understand the steps.
For example ( from https://wiki.ubuntu.com/KvmWithBridge )
# The primary network interface
auto br0
iface br0 inet static
address 192.168.0.101
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
bridge_ports eth0
bridge_stp off
bridge_maxwait 5
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.0.4
dns-search mydomain.net
this makes 0 sense to me :
- why a bridge needs an IP ? why I can work with bridges and IPs at all since it should be just a datalink path
- why I need to take down eth0 ? a bridge it's a connection between 2 physical devices, why it makes sense to take down an ethernet card to create an interconnection with said card ?
- who or what is getting the IP here ?
192.168.0.101
is what exactly ?
This is a pattern that repeats itself with many tutorials, guides and documentation mixing words with no apparent meaning ( apparently a bridge is supposed to deal with IPs ... ) .
So I'm asking : how do I create a bridge so my qemu
instance can connect itself through my eth0
via a bridge ?
I would like to use iproute2
and /etc/network/interfaces
and nothing else for simplicity sakes .