Skip to content

Instantly share code, notes, and snippets.

@jbweber
Created December 9, 2014 13:13
Show Gist options
  • Save jbweber/007a7278d483ef40e484 to your computer and use it in GitHub Desktop.
Save jbweber/007a7278d483ef40e484 to your computer and use it in GitHub Desktop.
vxlan linux
ip link add vxlan12345 type vxlan id 12345 remote 192.168.20.191 dstport 4789
ip link set dev vxlan12345 up
ip -d link show vxlan12345
5: vxlan12345: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN mode DEFAULT
link/ether 26:e3:bb:20:3c:f1 brd ff:ff:ff:ff:ff:ff promiscuity 0
vxlan id 12345 remote 192.168.20.191 srcport 32768 61000 dstport 4789 ageing 300
ip link add vxlan12345 type vxlan id 12345 remote 192.168.20.189 dstport 4789 local 192.168.20.190
ip link set dev vxlan12345 up
ip a a 192.168.147.2/24 dev vxlan12345
ip link add vxlan12345 type vxlan id 12345 remote 192.168.20.190 dstport 4789
ip link set dev vxlan12345 up
ip a a 192.168.147.3/24 dev vxlan12345
ip link add vxlan12345 type vxlan id 12345 remote 192.168.20.190 dstport 4789
ip link set dev vxlan12345 up
ip a a 192.168.147.4/24 dev vxlan12345
ip link add vxlan12345 type vxlan id 12345 remote 192.168.20.192 dstport 4789
ip link set dev vxlan12345 up
ip a a 192.168.147.5/24 dev vxlan12345
ip -d link show vxlan12345
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment