linkBridge

circle-info

Bridges in RouterOS connect multiple network interfaces at Layer 2, creating a single broadcast domain. They are essential for creating LANs and connecting different network segments.

In WinBox you can configure bridges in Bridge, or you can use terminal with command /interface bridge

Bridges operate at Layer 2 (Data Link layer) and forward traffic based on MAC addresses, similar to a traditional network switch.


Bridge fundamentals

How bridges work

Bridge functionality:

  • MAC learning - Automatically learns device MAC addresses

  • Frame forwarding - Forwards frames between bridge ports

  • Broadcast domain - All bridge ports share the same broadcast domain

  • STP support - Spanning Tree Protocol for loop prevention

  • VLAN support - 802.1Q VLAN tagging and filtering

Key concepts:

  • Bridge interface - Virtual interface representing the bridge

  • Bridge ports - Physical/virtual interfaces added to the bridge

  • MAC table - Database of learned MAC addresses per port

  • Aging time - How long MAC entries remain in table


Basic bridge configuration

Create a simple bridge

In WinBox go to Bridge and click + to create new bridge:

  • Name - Bridge name (e.g., "bridge1")

  • MTU - Maximum transmission unit (usually 1500)

  • ARP - Address Resolution Protocol setting (enabled/disabled)

  • Protocol Mode - STP protocol (none, stp, rstp, mstp)

Add interfaces to bridge

Add physical interfaces as bridge ports:

In WinBox go to Bridge -> Ports and click +:

  • Interface - Select physical interface (e.g., ether2, ether3)

  • Bridge - Select bridge interface (bridge1)

  • PVID - Port VLAN ID for untagged traffic

Assign IP address to bridge


Advanced bridge configuration

Hardware offloading

Modern RouterOS devices support hardware bridge acceleration:

Bridge settings optimization

Port-specific settings


VLAN configuration with bridges

Enable VLAN filtering

Create VLAN interfaces

Configure VLAN bridge table

Port VLAN configuration


Spanning Tree Protocol (STP)

Enable RSTP

Port edge configuration


Bridge monitoring and troubleshooting

Monitor bridge status

Bridge statistics

Troubleshoot bridge issues


Special bridge configurations

Bridge with WiFi

Bridge with VPN

Multiple bridges


Bridge security

MAC address filtering

Port isolation


chevron-rightShow complete bridge setup with VLANshashtag

Performance considerations

Bridge optimization

Monitoring performance


Best practices

Bridge design principles

  1. Keep it simple - Avoid overly complex bridge configurations

  2. Use VLANs - Segment traffic using VLANs instead of multiple bridges

  3. Enable RSTP - Use Rapid Spanning Tree for faster convergence

  4. Configure edge ports - Set edge=yes for ports connected to end devices

  5. Monitor MAC table - Keep track of learned MAC addresses

Security recommendations

  1. Limit MAC learning - Set maximum learned entries per port

  2. Use port isolation - Isolate untrusted ports using horizon

  3. VLAN segmentation - Separate different types of traffic

  4. Monitor loops - Watch for bridging loops and STP issues

  5. Regular maintenance - Clean up unused bridge configurations

Troubleshooting tips

  1. Check STP status - Ensure proper STP operation

  2. Monitor MAC table - Look for MAC address flapping

  3. Test connectivity - Verify communication between bridge segments

  4. Review logs - Check for bridge-related error messages

  5. Verify VLAN config - Ensure VLAN configuration is correct

Last updated

Was this helpful?