Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ open V switch port mirror in OpenStack neutron     - MySQL simple operation notes under Linux (Database)

- Build RPM package uses Docker mirror (Linux)

- Analysis of Java reflection mechanism (Programming)

- Detailed usage history command (Linux)

- Nodejs command-line program development tutorial (Programming)

- Iscsi package is installed on RHEL 6.3 x86-64 systems (Linux)

- Oracle 11g dataguard main library backup and recovery to the test environment in one database error (Database)

- CentOS5 installation Nodejs (Linux)

- Install Ubuntu Software Center App Grid (Linux)

- Increase Linux system security --chattr (Linux)

- Boost notes --Asio - (1) a simple small example of synchronous communication (Programming)

- After SSH change the default port, how to use Git (Linux)

- Fedora network set up simple (Linux)

- PHP 7.0 Upgrade Notes (Linux)

- Spring AOP custom annotation way to achieve log management (Programming)

- Linux system crash (no such file or directory) How to rescue database (Linux)

- To build a private Docker registry (Server)

- CentOS7 installation GAMIT and GMT (Linux)

- Git use and interpretation of common commands (Linux)

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

 
         
  open V switch port mirror in OpenStack neutron
     
  Add Date : 2018-11-21      
         
       
         
  Foreword
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.

surroundings
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
47a7cda2-1263-485a-8ae4-1be7cf53ed44
    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 = "10.103.77.13", out_key = flow, remote_ip = "10.103.77.14"}
    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

 

References:

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

Neutron Troubleshooting: http: //docs.openstack.org/openstack-ops/content/network_troubleshooting.html
     
         
       
         
  More:      
 
- Open remote MySQL database connection managed under CentOS (Database)
- Automatic batch resolve dependencies problem locally installed rpm package (Linux)
- Mac OS X 10.9 build Nginx + MySQL + php-fpm environment (Server)
- Ubuntu 14.04 LTS 64-bit install GNS3 1.3.7 (Linux)
- The strings in Python reside (Programming)
- Java implementation chain store binary search tree (recursive method) (Programming)
- Fast Learning Clojure (Programming)
- Experience RHEL7 new features (Linux)
- JavaScript function definition mode (Programming)
- Analysis of Java keyword final (Programming)
- Linux file and directory management - ls, cp, mv (Linux)
- Intruder tools Knark Analysis and Prevention Linux environment (Linux)
- Java programmers talk about those advanced knowledge and direction (Programming)
- Nginx start, stop, smooth start, smooth upgrade (Server)
- To compile and install OpenCV-2.3.1 FFmpeg-2.1.2 under CentOS (Linux)
- Axel install plug under CentOS 5/6 acceleration yum downloads (Linux)
- 5 fast Node.js application performance tips (Programming)
- CentOS Linux build SVN server (Server)
- Some common Linux commands Study Notes (Linux)
- AngularJS (Programming)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.