sudo apt-get install bridge-utils <===> To use brctl command, you need to install the following package

TOTO FUNGUJE POKUD CHCI BRIDGE u VIRT-MANAGER

1) sudo brctl addbr br0
2) sudo brctl addif br0 eth0
3) mozna i toto: sudo ifconfig br0 up
4) zkusit i toto: ip link set br0 up

sudo brctl addbr br0; sudo brctl addif br0 eth0; ip link set br0 up

BRTCL

sudo brctl addbr br0 <===> To create a bridge named br0

sudo brctl delbr br0 <===> To remove a bridge named br0

sudo brctl addif br0 eth0 <===> To add interfaces eth0 to a bridge br0

sudo brctl delif br0 eth0 <===> To remove an interface eth0 to a bridge br0:

## Pozn.
It is worthwhile to note that a Linux bridge created by brctl is not persistent, meaning that any bridge
created by brctl will automatically be destroyed upon boot. If you would like to have a permanent bridge
configuration, you need to use a separate configuration file in /etc.

Create a Linux Bridge Permanently 

Configure a Permanet Bridge Interface on Ubuntu or Debian

ou need to edit /etc/network/interfaces as follows.

If the bridge br0 is to be assigned an IP address by DHCP:

auto eth0
iface eth0 inet manual

auto eth1
iface eth1 inet manual

auto br0
iface br0 inet dhcp
bridge_ports eth0 eth1

 

If the bridge br0 is to be assigned a static IP address:

auto eth0
iface eth0 inet manual

auto eth1
iface eth1 inet manual

auto br0
iface br0 inet static
bridge_ports eth0 eth1
address <static_IP_address>
netmask <netmask>
gateway <gateway>
If you want to set up a transparent bridge between eth0 and eth1, you don't need to assign any IP address to the bridge. In that case, the following will do.

auto eth0
iface eth0 inet manual

auto eth1
iface eth1 inet manual

auto br0
iface br0 inet manual
bridge_ports eth0 eth1


sudo ifconfig br0 up


bridge <===> displays and manipulates bridges on final distribution boards (FDBs), main distribution boards (MDBs), and virtual local area networks (VLANs).

ip link help bridge <===> show help information about the bridge object

bridge -h <===> show help information about the bridge object

ip link add br0 type bridge <===> Create a bridge named br0

ip -d link show br0 <===> Show bridge details

ip -j -p -d link show br0 <===> Show bridge details in a pretty JSON format (which is a good way to get bridge key-value pairs)

ip link set veth0 master br0 <===> Add interfaces to a bridge
ip link set tap0 master br0 <===> Add interfaces to a bridge


Bridge network QEMU

WEB

https://www.baeldung.com/linux/qemu-ssh-host-guest