Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Server \ Docker + OpenvSwitch build experimental environment VxLAN     - Empty password Linux operating system (Linux)

- Linux Basics Tutorial: create your own Vim IDE (Linux)

- Integrated security administrator Linux accident management (Linux)

- Linux C source code (sockettype: socket descriptor determination function) (Programming)

- Ubuntu install Liferea news subscription software (Linux)

- High-performance Linux system firewall detailed analysis of double-effect (Linux)

- Hadoop - Task Scheduling System Comparison (Server)

- CentOS 6.5 install VNC-Server (Linux)

- Linux reserves the rest of the file to delete several (Linux)

- Commonly used Linux system camouflage method (Linux)

- ORA-4031 error Solution (Database)

- Share useful bash aliases and functions (Linux)

- a virtual machine created migrated to host RHEL6.4 on Ubuntu 14.04 (Linux)

- Java reflection summary (Programming)

- Verify the character set on MyCAT (Database)

- Quagga use authentication on strengthening BGP session security (Linux)

- Configuring Proxy on a Unix terminal, accelerate Android Studio Construction (Linux)

- MD5 and simple to use (Linux)

- Design and implementation of environment sniffer running under Linux (Linux)

- How to make GRub instead of the default Ubuntu software center (Linux)

  Docker + OpenvSwitch build experimental environment VxLAN
  Add Date : 2018-11-21      
  I. Overview

1. Environment: I have here is two linux machines (host1 and host2), release is kali2.0, kernel version is 4.3. Each machine installed Docker, OpenvSwitch (ovs).

2.host1 and host2 are to start an Ubuntu the docker container.

3. Network structure:

    2.1: eth0 host1 is:, host1 inside docker container ip address

    2.2: eth0 host2 of:, host2 inside docker container ip address

    2.3: host1 and host2 of eth0 can ping.

4. The goal is to establish VxLAN tunnel between two different host of docker container, so that they can communicate!

II. Basic software installation

1. Install docker and get ubuntu mirror

1 sudo apt-get install docket.io
2 sudo docker pull ubuntu
2. Install openvswitch and ovs the docker helper scripts

1 sudo apt-get install openvswitch-switc
2 // OpenvSwitch project support provided Docker container helper scripts ovs-docker
3 wget https://github.com/openvswitch/ovs/raw/master/utilities/ovs-docker
4 chmod a + x ovs-docker
III. Configuration

1. Create a virtual bridge with ovs in host1 above, and to bridge a ip

1 sudo ovs-vsctl add-br vxbr
2 sudo ifconfig vxbr
2. Add a bridge to vxlan types of ports, remote_ip host2 is the eth0 address! ! !

1 sudo ovs-vsctl add-port vxbr vxlan - set interface vxlan type = vxlan options: remote_ip =
3. Start a docker container without Ethernet card

1 sudo docker run --net = none --privileged = true -it ubuntu
And note that the container ID, I am here: b062406bc6b6. At this point ifconfig lo you can only see a device in the inside container.

4. Give the container assign an eth0 and bind to host the vxbr bridge

1 sudo ./ovs-docker add-port vxbr eth0 b062406bc6b6
At this time back into the container inside, ifconfig will see the emergence of a eht0. Give it a ip:

1 ifconfig eth0
5. Check the configuration ovs

1 sudo ovs-vsctl show

We can see that there are three ports vxbr bridge above, is himself a native communication with (here eth0 native) port, a port is vxlan last one is eth0 docker container machines.

host2 with the above configuration is similar to the virtual bridge vxbr host2 to host1 remote_ip into the,vxlan of, docker container machine host2 to the ip

IV. Verify

In this case the network structure:

eth0, docker container machine:: host1 of eth0:, virtual bridge vxbr eth0 docker container is inserted in the host host1 virtual bridge vxbr above.

eth0, docker container machine:: host2 of eth0:, virtual bridge vxbr eth0 docker container is inserted in the host host2 virtual bridge vxbr above.

The docker container in host1 machine inside ping host2 the docker container machine, wireshark capture:

You can see the communication between the container machine is encapsulated in a UDP packet inside, the UDP communication is via host1 and host2 of eth0 forwarding.
- Oracle 11g through SCN do incremental backup repair standby library detailed process (Database)
- Testing Oracle 11g RMAN replicate database (Database)
- Solaris 10 nagios monitoring system (Linux)
- Installation of Python2.7.8 and iPython under CentOS6.5 (Linux)
- C ++ stderr / stdout redirected to a file (Programming)
- Iscsi package is installed on RHEL 6.3 x86-64 systems (Linux)
- LAN in Ubuntu shared folders to Windows (Linux)
- After Ubuntu Password Forgot your way back (Linux)
- C ++ overloaded stream insertion operator and the stream extraction operator (Programming)
- Sublime Text - Opens the current file in a browser (Linux)
- The next key to install Linux bash script PowerShell (Linux)
- xCAT line installation on CentOS 6.X (Linux)
- To upgrade combat MongoDB database replication sets and split versions (Database)
- Java Timer (regular calling, to achieve a fixed time to perform) (Programming)
- Python cause yum upgrade error (Linux)
- Zabbix monitoring different versions of RAID installation and monitoring and MySQL master-slave monitor (Server)
- Ubuntu set Swap Space Tutorial (Linux)
- Create a project using Android Studio LinearLayout (Programming)
- Linux how to view the graphics models notebook (Linux)
- Oracle Duplicate build DataGuard (Database)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.