Skip to content

Instantly share code, notes, and snippets.

@yulis
Last active August 26, 2021 16:50
Show Gist options
  • Save yulis/5c20aa7695fc859d357d2285d4c51e7d to your computer and use it in GitHub Desktop.
Save yulis/5c20aa7695fc859d357d2285d4c51e7d to your computer and use it in GitHub Desktop.
Set up vxlan tunnel
#!/bin/bash
# On Host 192.168.100.25
ovs-vsctl add-br testbr0
ovs-vsctl add-port testbr0 tun1 -- set interface tun1 type=internal
ifconfig tun1 172.17.17.1 netmask 255.255.255.0
ovs-vsctl add-port testbr0 testvxlan0 -- set interface testvxlan0 type=vxlan options:remote_ip=192.168.100.24
# On Host 192.168.100.24
ovs-vsctl add-br testbr0
ovs-vsctl add-port testbr0 tun1 -- set interface tun1 type=internal
ifconfig tun1 172.17.17.2 netmask 255.255.255.0
ovs-vsctl add-port testbr0 testvxlan0 -- set interface testvxlan0 type=vxlan options:remote_ip=192.168.100.25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment