Coder Social home page Coder Social logo

openvswitch-vtep's Introduction

What is it?

This repo contains stuff for running Open vSwitch-based VTEP emulator.

What is VTEP?

VTEP - VXLAN Tunnel End Point. To provide L2 connectivity between VXLAN and VLAN you can use VTEP.

Why?

For testing and development of VTEP and SDN integrations.

How to?

Install:

yum install openvswitch -y
git clone https://githib.com/odivlad/openvswitch-vtep.git
cd openvswitch-vtep
sudo cp ovs-vtepd.service /usr/lib/system/systemd/
sudo systemctl daemon-reload

Setup emulator:

  1. Append VTEP database filename to OVS options and spawn new DB file with Hardware_Vtep OVS schema:

    echo 'OPTIONS=${OPTIONS} --extra-dbs=hw_vtep.db' >> /etc/sysconfig/openvswitch
    ovsdb-tool create /etc/openvswitch/hw_vtep.db /usr/share/openvswitch/vtep.ovsschema
    
  2. Start openvswitch

    systemctl start openvswitch
    
  3. Create OVS bridge and OVS port for outgoing VTEP traffic in it:

    ovs-vsctl add-br vtep-br
    ovs-vsctl add-port vtep-br eth1
    
  4. Configure VTEP DB:

    vtep-ctl add-ps br0
    vtep-ctl set Physical_Switch br0 tunnel_ips=<your VXLAN IP>
    [optional] vtep-ctl set-manager tcp:<controller_ip>:<controller_port>
    
  5. Start VTEP emulator:

    echo "VTEP_SWITCH_NAME=br0" >> /etc/sysconfig/openvswitch-vtep
    systemctl start ovs-vtepd
    

openvswitch-vtep's People

Contributors

odivlad avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.