O'Reilly logo

KVM Virtualization Cookbook by Konstantin Ivanov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

There's more...

There are few more useful commands we can use on the Linux bridge.

We already know that a bridge forwards frames based on the MAC addresses contained therein. To examine the table of MAC addresses the bridge knows about, run the following command:

root@kvm:~# brctl showmacs virbr0port no  mac addr               is local?      ageing timer  1      52:54:00:55:9b:d6      no             268.02  1      fe:54:00:55:9b:d6      yes            0.00root@kvm:~#

From the preceding output, we can see that the bridge has recorded two MAC addresses on its only port. The first record is a nonlocal address, and it belongs to the network interface inside the KVM instances. We can confirm that by connecting to the KVM guest as follows:

root@kvm:~# virsh console kvm1Connected to domain kvm1Escape character ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required