Home IT Linux Windows Database Network Programming Server Mobile  
  Home \ Server \ open V switch port mirror in OpenStack neutron     - CentOS 7 How to install MySQL Server (Database)

- Fedora 22 Server how to upgrade to Fedora 23 Beta Server (Linux)

- Oracle database online redo logs are several methods of recovery of deleted (Database)

- Linux in order to make NMAP hide and seek with the firewall (Linux)

- Linux Basics Tutorial: Combining awk delete data before the specified date hdfs (Linux)

- HttpClient Tutorial (Programming)

- Eclipse-ee Tomcat browser can not start Tomcat, and Web project service deployment (Server)

- Oracle common internal event tracking number (Database)

- Linux System Getting Started Learning: Change the name of the network interface on CentOS7 (Linux)

- There are three ways to run a Linux operating system from a USB stick (Linux)

- Postgres-X2 deployment steps (Database)

- Ubuntu 15.04 and CentOS 7 to deploy .NET, Mono and DNX (Server)

- Django1.8 return json json string and the string contents of the received post (Programming)

- C ++ CBitmap, HBitmap, Bitmap difference and contact (Programming)

- 30 Practical Linux system administrators will learn the command (Linux)

- pureftpd basis: Install, configure, implement, anonymous logon (Linux)

- Docker Build a Java compiler environment (Linux)

- Sublime Text - Opens the current file in a browser (Linux)

- A step by step teach have to install multi-node cluster configuration Hadoop (Server)

- Linux SVN account password to save your settings (Linux)

  open V switch port mirror in OpenStack neutron
  Add Date : 2018-11-21      
Recently used to build a VXLAN of OpenStack-based environment, going to dump ovs interfaces found in the package but it is still very troublesome, after much effort, found the following in the network environment openstack some trouble shooting methods.

In addition to familiar tools such as: ping, host, traceroute, tcpdump, ip neighbor, arp, arping, you can also use the port mirror to complete dump ovs package.

My environment there are two nodes, node1 enabled Nova and Neutron, node2 only enabled Nova related services.

Node1 of ovs environment:

sudo ovs-vsctl show
    Bridge br-tun
        fail_mode: secure
        Port "veth0"
            Interface "veth0"
        Port patch-int
            Interface patch-int
                type: patch
                options: {peer = patch-tun}
        Port br-tun
            Interface br-tun
                type: internal
        Port "vxlan-0a674d0e"
            Interface "vxlan-0a674d0e"
                type: vxlan
                options: {df_default = "true", in_key = flow, local_ip = "", out_key = flow, remote_ip = ""}
    Bridge br-int
        fail_mode: secure
        Port "tapb5e83be9-f9"
            tag: 2
            Interface "tapb5e83be9-f9"
                type: internal
        Port "qvo42d126bc-e1"
            tag: 2
            Interface "qvo42d126bc-e1"
        Port int-br-ex
            Interface int-br-ex
                type: patch
                options: {peer = phy-br-ex}
        Port patch-tun
            Interface patch-tun
                type: patch
                options: {peer = patch-int}
        Port br-int
            Interface br-int
                type: internal
    Bridge br-ex
        Port "eth1"
            Interface "eth1"
        Port br-ex
            Interface br-ex
                type: internal
        Port phy-br-ex
            Interface phy-br-ex
                type: patch
                options: {peer = int-br-ex}
    ovs_version: "2.0.2"
I have to do is dump out the br-tun patch-int this interface all packages, in order to see the package after a conversion like br-tun

First, create the type of interface veth
ip link add type veth
ip link set veth0 up
ip link set veth1 up
Next, add this to the br-tun above veth0
ovs-vsctl add-port br-tun "veth0"
Then, create a port mirror
ovs-vsctl - set Bridge br-tun mirrors = @ m \
- --id = @ Veth0 get Port veth0 \
- --id = @ Patch-int get Port patch-int \
- --id = @ Br-tun get Port br-tun \
- --id = @ M create Mirror name = veth select-src-port = @ br-tun, @ patch-int \
select-dst-port = @ br-tun, @ patch-int output-port = @ veth0
Outputs a mirror after the success of id, you can use

ovs-vsctl list bridge
Check whether the mirror inside outout

_uuid: 18303d75-8715-408d-b9d7-5ef0424734f2
controller: []
datapath_id: "0000763d30188d40"
datapath_type: system
external_ids: {}
fail_mode: secure
flood_vlans: []
flow_tables: {}
ipfix: []
mirrors: [d2bcbe65-ae4c-4b88-9172-cf84dae39d0e]
name: br-tun
netflow: []
other_config: {}
ports: [3eb258b0-f9db-4dfa-bbd5-697162f26142, 6755f9ce-a8fa-4b52-ba3a-06c798e12b9b, c45bbbd7-6baf-4774-b0e4-493d74ae0589, ffcf5619-baaf-469a-bb2d-9016ede95c92]
protocols: [ "OpenFlow10"]
sflow: []
status: {}
stp_enable: false
Finally, use tcpdump to view the package veth0 on (I usually put output to cap output file and view it with wireshark, very intuitive)
sudo tcpdump -i veth0 -vv -ne -w veth0.cap
Use wireshark view you will find that these package has been translate into common rather than VXLAN the package, so you do not see vxlan of the tunnel id



VXLAN: https: //tools.ietf.org/pdf/rfc7348.pdf

Neutron Troubleshooting: http: //docs.openstack.org/openstack-ops/content/network_troubleshooting.html
- SSH automatic disconnection problem solving (Linux)
- Kitematic how seamless and DockerFILE (Server)
- Ubuntu users how to install the latest Nvidia graphics drivers (Linux)
- Android memory optimization of the optimal load Bitmap (Linux)
- Using Libreoffice under ubuntu (Linux)
- Not safe procedure under Linux (Linux)
- Use innobackupex full realization of MySQL hot backup (Database)
- Linux operating system, the internal and external security overview (Linux)
- Getting Started with Linux system to learn: how to use tcpdump to capture TCP SYN, ACK and FIN packets (Linux)
- How to install Ubuntu California - the calendar application (Linux)
- Linux upgrade GCC 4.8.1 clear and concise tutorials (Ubuntu 12.04 64-bit version as an example) (Linux)
- Let MySQL 5.6 support Emoji expression (Database)
- MongoDB upgrade from 2.4.9 to 2.6.0 and PHP record of mongo extension upgrade from 1.4.5 to 1.5.1 (Database)
- ActiveMQ memory settings and flow control (Linux)
- How to query the role of Linux services (Linux)
- How to configure HTTP Strict Transport Security (HSTS) (Linux)
- How to install and use the Snort in Ubuntu 15.04 (Linux)
- Linux find command usage practices (Linux)
- CentOS 6.x Basic System Optimization after installation (Linux)
- How to install Ubuntu applications Device 7 (Linux)
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.