genki / vxlan

Very simple overlay network provider designed as docker container.

Home Page:https://quay.io/repository/s21g/vxlan

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vxlan

Very simple overlay network provider designed as docker container.

Docker Repository on Quay.io

Usage

docker run -d \
  --net=host \
  --privileged=true \
  --restart=always \
  -e VIP=192.168.10.1/24 \
  -e VNI=10 \
  -e IF=eth1 \
  -e "HOSTS=123.45.67.89,123.45.67.90" \
  s21g/vxlan
  • The container will add vxlan10 interface linked with eth1
  • and add routes to HOSTS (comma separated global IPs)

And you need to

  • run containers for each hosts varying VIP (ex "192.168.10.2", ...)
  • make UDP port 8472 accessible between each hosts

Environment variables:

  • VIP: mandatory parameter <ip>/<prefix>[,<ip>/<prefix>,...]
  • VNI='10'
  • VXLAN="vxlan$VNI"
  • IF="eth0"
  • MTU="1440"
  • HOSTS=""
  • PORT=${PORT:="0"}: 0 means to use default port 8472/udp

About

Very simple overlay network provider designed as docker container.

https://quay.io/repository/s21g/vxlan


Languages

Language:Shell 67.2%Language:Makefile 32.8%