VXLAN
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
Best practices
Design considerations
Plan VNI space - Use consistent VNI allocation across the network
MTU planning - Account for VXLAN overhead (50 bytes) in network design
Underlay design - Ensure robust and redundant underlay connectivity
Multicast vs unicast - Choose appropriate BUM handling method
Security - Implement proper access controls and encryption where needed
Operational recommendations
Monitor underlay health - VXLAN depends on stable underlay connectivity
Document VNI mappings - Maintain clear documentation of VNI assignments
Test failover scenarios - Verify behavior during underlay failures
Capacity planning - Monitor bandwidth utilization on underlay links
Regular maintenance - Keep FDB tables clean and monitor for issues
Troubleshooting tips
Start with underlay - Always verify underlay connectivity first
Check MTU - Ensure proper MTU configuration throughout the path
Monitor learning - Verify MAC learning is working correctly
Test incrementally - Start with simple point-to-point before complex scenarios
Use packet capture - Capture and analyze VXLAN encapsulated traffic when troubleshooting
Last updated
Was this helpful?