Man page - interfaces-vxlan(5)
Packages contas this manual
- interfaces-vrf(5)
- interfaces-ppp(5)
- ifupdown-ng(8)
- ifparse(8)
- interfaces-batman(5)
- interfaces-tunnel(5)
- interfaces-wireguard-quick(5)
- interfaces-vxlan(5)
- interfaces-wireguard(5)
- ifquery-ng(8)
- ifup-ng(8)
- interfaces-ng(5)
- ifstate(5)
- ifdown-ng(8)
- interfaces-wifi(5)
- ifupdown-executor(7)
- interfaces-bridge(5)
- ifupdown-ng.conf(5)
- ifctrstat(8)
- interfaces-bond(5)
- interfaces-forward(5)
apt-get install ifupdown-ng
Manual
| interfaces-vxlan(5) | File Formats Manual | interfaces-vxlan(5) |
NAME
interfaces-vxlan - VXLAN extensions for the interfaces(5) file format
DESCRIPTION
Virtual eXtensible LAN (VXLAN) is an overlay network to carry Layer 2 over an IP network while accommodating a very large number of tenants. It is defined in RFC 7348.
Be aware that VXLAN encapsulation adds 50 bytes of overhead to the IP packet header (inner Ethernet header + VXLAN + UDP + IP). This should be taken into consideration when setting up overlay networks, particularly on underlay networks with a conventional 1500 byte MTU.
The following options set up VXLAN Tunnel EndPoints (VTEP) interfaces with ifupdown-ng.
See https://www.kernel.org/doc/Documentation/networking/vxlan.rst and https://vincent.bernat.ch/en/blog/2017-vxlan-linux for more information.
VXLAN-RELATED OPTIONS
A VXLAN Virtual Tunnel Endpoint (VTEP) interface must an ID set. All other options are optional.
vxlan-id VNI ID
vxlan-physdev interface
vxlan-local-ip address
vxlan-peer-ips list of IP addresses
vxlan-peer-group multicast group
vxlan-learning on/off
vxlan-ageing seconds
vxlan-dstport port
EXAMPLES
A VTEP with multiple peers addressed via a multicast group:
auto vx_v1001_padcty iface vx_v1001_padcty vxlan-id 655617 vxlan-physdev vlan1001 vxlan-remote-group 225.10.1.1 # hwaddress f2:00:c1:01:10:01 mtu 1560
The same works just fine with IPv6 in the underlay:
auto vx_v1400_padcty iface vx_v1400_padcty
vxlan-id 917505
vxlan-physdev vlan1400
vxlan-peer-group ff42:1400::1
#
hwaddress f2:00:0d:01:14:00
mtu 1560
Note that the underlay must have an MTU of at least 1610 to carry the encapsulated packets of the two VTEPs above.
A VTEP with one peer (unicast point-to-point configuration):
auto vx_ptp1 iface vx_ptp1 vxlan-id 2342 vxlan-local-ip 192.0.2.42 vxlan-peer-ips 198.51.100.23 # hwaddress f2:00:c1:01:10:01
A VTEP with multiple peers (unicast point-to-multipoint with ingress / head-end replication):
auto vx_her iface vx_her vxlan-id 1337 vxlan-local-ip 2001:db8:1::1 vxlan-peer-ips 2001:db8:2::23 2001:db8:3::42 2001:db8:4::84
AUTHORS
Maximilian Wilhelm <max@sdn.clinic>
| 2025-03-25 |