Last active
August 26, 2021 16:50
-
-
Save yulis/5c20aa7695fc859d357d2285d4c51e7d to your computer and use it in GitHub Desktop.
Set up vxlan tunnel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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