Skip to content

Instantly share code, notes, and snippets.

@DazWorrall
Created February 11, 2016 15:04
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save DazWorrall/e4d0c9d7f1a417da8022 to your computer and use it in GitHub Desktop.
Save DazWorrall/e4d0c9d7f1a417da8022 to your computer and use it in GitHub Desktop.
Interfaces file with vlans and vxlans
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eno1
iface eno1 inet static
mtu 1550
address 10.3.50.7
netmask 255.255.0.0
auto vlan214
iface vlan214 inet static
vlan-raw-device eno1
mtu 1550
address 10.14.0.50
netmask 255.255.0.0
auto vxlan-vxlan
iface vxlan-vxlan inet static
mtu 1500
pre-up ip link add vxlan-vxlan type vxlan id 3568 group 239.0.13.240 dstport 8472 port 32768 61000 dev vlan214 || true
up ip link set vxlan-vxlan up
down ip link set vxlan-vxlan down
post-down ip link del vxlan-vxlan || true
address 10.1.1.42
netmask 255.255.255.0
gateway 10.1.1.1
dns-nameservers 10.1.1.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment