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

Viewing a virtual interface on the compute node for GRE tunnels


This recipe shows you how to identify the virtual network interface used by a VM for a GRE-based virtual network. Viewing the network interface can be useful to troubleshoot the connectivity problems between the VMs and network services.

Getting ready

For this recipe, you will need the following information:

  • The SSH login credentials for the node where the Neutron client packages are installed

  • User-level access to OpenStack

  • The name of the VM for which you want to identify the virtual interface

How to do it…

  1. Log in to a node with access to OpenStack.

  2. Import the OpenStack RC file to set up the user-level access credentials.

  3. Use the nova list commands to identify the VM instance, virtual network, and IP associated with it. In this case, the VM is vm1 with an IP of 20.20.20.2 on the Chapter4_GRE virtual network:

  4. Next, we will use the neutron port-list command to find the port ID for the virtual interface that is associated with this VM,...