network-wiredVXLAN

circle-info

VXLAN (Virtual eXtensible Local Area Network) enables Layer 2 network segments to be extended over Layer 3 networks, providing network virtualization and multi-tenancy capabilities.

In WinBox you can configure VXLAN in Interfaces -> VXLAN, or you can use terminal with command /interface vxlan

VXLAN encapsulates Layer 2 Ethernet frames within UDP packets, allowing virtual Layer 2 networks to span across different physical Layer 3 networks.


VXLAN fundamentals

How VXLAN works

Key components:

  • VXLAN Network Identifier (VNI) - 24-bit identifier for the VXLAN segment (up to 16 million segments)

  • VTEP (VXLAN Tunnel Endpoint) - Device that encapsulates/decapsulates VXLAN traffic

  • UDP encapsulation - VXLAN frames are encapsulated in UDP packets (port 4789)

  • Multicast or unicast - Can use multicast for BUM (Broadcast, Unknown unicast, Multicast) traffic or unicast with static FDB

Benefits:

  • Network virtualization - Create multiple logical Layer 2 networks over single physical infrastructure

  • Scalability - Support for up to 16 million network segments

  • Multi-tenancy - Isolate different customers/applications

  • Cloud integration - Standard protocol used in cloud environments

  • WAN extension - Extend Layer 2 domains across WAN links


Basic VXLAN configuration

Create VXLAN interface

In WinBox go to Interfaces -> VXLAN and click + to create new VXLAN interface:

  • Name - VXLAN interface name (e.g., "vxlan1")

  • VNI - VXLAN Network Identifier (0-16777215)

  • Port - UDP port (default 4789)

  • Group - Multicast group address for BUM traffic

  • Interface - Underlying Layer 3 interface

Configure underlying network

Add VXLAN to bridge


Point-to-Point VXLAN

Unicast VXLAN tunnel

For simple point-to-point connections without multicast:

Static FDB entries

For unicast VXLAN without dynamic learning:


Multi-point VXLAN with multicast

Configure multicast underlay

Create VXLAN with multicast


VXLAN with EVPN (Ethernet VPN)

Basic EVPN configuration


VXLAN over WAN

Configure VXLAN over Internet

Site B configuration:


VXLAN with VLANs

VXLAN per VLAN mapping

Map different VLANs to different VXLAN segments:


Advanced VXLAN features

Load balancing across multiple tunnels

VXLAN with IPSec encryption

For secure VXLAN over untrusted networks:


VXLAN monitoring and troubleshooting

Monitor VXLAN status

Troubleshoot connectivity

Packet capture for VXLAN


Performance optimization

Optimize VXLAN performance

Hardware acceleration


VXLAN security considerations

Access control

VNI isolation


Use cases and scenarios

Data center interconnect (DCI)

Scenario: Connect multiple data centers with Layer 2 extension

Cloud hybrid connectivity

Scenario: Extend on-premises network to cloud

Multi-tenant service provider

Scenario: Provide isolated Layer 2 services to multiple customers


chevron-rightShow complete VXLAN site-to-site setuphashtag

Best practices

Design considerations

  1. Plan VNI space - Use consistent VNI allocation across the network

  2. MTU planning - Account for VXLAN overhead (50 bytes) in network design

  3. Underlay design - Ensure robust and redundant underlay connectivity

  4. Multicast vs unicast - Choose appropriate BUM handling method

  5. Security - Implement proper access controls and encryption where needed

Operational recommendations

  1. Monitor underlay health - VXLAN depends on stable underlay connectivity

  2. Document VNI mappings - Maintain clear documentation of VNI assignments

  3. Test failover scenarios - Verify behavior during underlay failures

  4. Capacity planning - Monitor bandwidth utilization on underlay links

  5. Regular maintenance - Keep FDB tables clean and monitor for issues

Troubleshooting tips

  1. Start with underlay - Always verify underlay connectivity first

  2. Check MTU - Ensure proper MTU configuration throughout the path

  3. Monitor learning - Verify MAC learning is working correctly

  4. Test incrementally - Start with simple point-to-point before complex scenarios

  5. Use packet capture - Capture and analyze VXLAN encapsulated traffic when troubleshooting

Last updated

Was this helpful?