Book Image

OpenStack Networking Cookbook

Book Image

OpenStack Networking Cookbook

Overview of this book

Table of Contents (19 chapters)
OpenStack Networking Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Checking the MAC address table on a virtual switch


As the devices connected to the virtual Network start to communicate with each other, the virtual switch on the Compute node learns the MAC addresses of the network interfaces. In this recipe, we will learn how to view the MAC address table of a virtual switch on an OpenStack Compute node.

Getting ready

For this recipe, you will require the following information:

  • SSH-based login credentials for the Compute node

How to do it…

The following steps will show you how to check the MAC address table on the virtual switch:

  1. With the appropriate credentials, SSH into the Compute node.

  2. Use the ovs-appctl fdb/show command to view the MAC addresses learned by the Open vSwitch instance:

    ovs-appctl fdb/show br-int
    
  3. For a Linux bridge-based deployment, follow the recipe Viewing virtual interface information on the Compute node in Chapter 2, Using Open vSwitch for VLAN-Based Networks to find the bridge name for the virtual Network. Use the brctl showmacs command...