ethernetEoIP

circle-info

EoIP (Ethernet over IP) is a MikroTik proprietary tunneling protocol that creates a layer-2 tunnel, allowing Ethernet frames to be transported over IP networks as if they were on the same physical network segment.

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

EoIP creates true layer-2 connectivity, making remote networks appear as if they are directly connected at the Ethernet level.


EoIP fundamentals

How EoIP works

Key characteristics:

  • Layer-2 tunnel - Transports Ethernet frames, not just IP packets

  • MikroTik proprietary - Only works between RouterOS devices

  • Protocol 47 - Uses GRE protocol (same as GRE tunnels)

  • Transparent bridging - Can be added to bridge interfaces

  • MAC learning - Supports standard Ethernet MAC address learning

  • VLAN transport - Can carry VLAN tagged traffic

Common use cases:

  • Remote bridging - Extend layer-2 networks across WAN

  • Site interconnection - Connect remote sites at layer-2

  • VLAN extension - Extend VLANs across geographic locations

  • Legacy network support - Connect networks requiring layer-2 adjacency

  • Cluster networking - Connect servers/services requiring broadcast domains


Basic EoIP configuration

Simple point-to-point EoIP tunnel

Create a basic EoIP tunnel between two RouterOS devices:

Router A (Local: 203.0.113.10, Remote: 203.0.113.20):

Router B (Local: 203.0.113.20, Remote: 203.0.113.10):

Test EoIP connectivity


Advanced EoIP configuration

EoIP with keepalive

Enable keepalive for tunnel failure detection:

Multiple EoIP tunnels

Create multiple tunnels with different tunnel IDs:

EoIP hub and spoke topology

Central site connecting multiple remote locations:


EoIP with VLANs

Transport VLANs over EoIP

EoIP can carry VLAN tagged traffic transparently:

Separate tunnels per VLAN

For better control and security, use separate EoIP tunnels:


EoIP security

Secure EoIP with IPSec

EoIP itself provides no encryption, use IPSec for security:

Firewall protection for EoIP


EoIP over NAT

Handle EoIP behind NAT

EoIP uses GRE protocol which requires special handling behind NAT:

Dynamic IP with EoIP

One end with dynamic IP address:


Monitoring and troubleshooting

Monitor EoIP tunnels

Troubleshoot EoIP issues


Performance optimization

Optimize EoIP performance

Bridge optimization for EoIP


Common use cases

Remote site layer-2 extension

Connect remote office as if it's on same LAN:

Server farm interconnection

Connect multiple data centers at layer-2:


chevron-rightShow complete EoIP site-to-site setuphashtag

Best practices

Design recommendations

  1. Use unique tunnel IDs - Avoid conflicts between tunnels

  2. Implement keepalives - Detect failures quickly

  3. Plan carefully - Layer-2 extension affects broadcast domains

  4. Monitor bridge tables - Watch MAC address learning

  5. Use VLANs wisely - Segment traffic appropriately

Security considerations

  1. Always encrypt - EoIP provides no security by itself

  2. Limit bridge scope - Don't extend layer-2 unnecessarily

  3. Filter MAC addresses - Control which devices can communicate

  4. Monitor traffic - Watch for unusual broadcast patterns

  5. Use separate tunnels - Isolate different network segments

Performance tips

  1. Optimize bridges - Configure spanning tree properly

  2. Control broadcasts - Limit broadcast/multicast traffic

  3. Monitor utilization - Watch tunnel bandwidth usage

  4. Use hardware acceleration - When available

  5. Plan redundancy - Multiple tunnels for critical connections

Last updated

Was this helpful?