Friday , 4 April 2025
Home » MikroTik » BRIDGE CONFIGURATION ON MIKROTIK ROUTER

BRIDGE CONFIGURATION ON MIKROTIK ROUTER

Bridge Configuration on MikroTik Router

A bridge in MikroTik allows multiple interfaces to be grouped together, functioning as a single network. This is useful for scenarios like combining multiple Ethernet ports, VLANs, or wireless interfaces into one logical network.


Step 1: Create a Bridge

  1. Via WinBox (GUI):

    • Go to Bridge > Bridge tab.
    • Click Add (+) and name the bridge (bridge1).
    • Click OK.
  2. Via CLI (Terminal):

    /interface bridge add name=bridge1

Step 2: Add Ports to the Bridge

  1. WinBox (GUI):

    • Go to Bridge > Ports tab.
    • Click Add (+).
    • Select the interface (e.g., ether2) to add to the bridge.
    • Choose bridge1 as the bridge.
    • Click OK.
    • Repeat for other interfaces (e.g., ether3, ether4).
  2. CLI (Terminal):

    /interface bridge port add bridge=bridge1 interface=ether2
    /interface bridge port add bridge=bridge1 interface=ether3
    /interface bridge port add bridge=bridge1 interface=ether4

Step 3: Assign an IP Address to the Bridge (Optional)

If the bridge needs an IP address (for management or routing):

  1. WinBox:

    • Go to IP > Addresses.
    • Click Add (+).
    • Set the Address (e.g., 192.168.1.1/24).
    • Choose bridge1 as the interface.
    • Click OK.
  2. CLI:

    /ip address add address=192.168.1.1/24 interface=bridge1

Step 4: Enable DHCP Server (Optional)

If the bridge should provide IP addresses via DHCP:

  1. WinBox:

    • Go to IP > DHCP Server.
    • Click DHCP Setup, select bridge1, and follow the wizard.
  2. CLI:

    /ip pool add name=dhcp_pool ranges=192.168.1.2-192.168.1.254
    /ip dhcp-server add name=dhcp1 interface=bridge1 address-pool=dhcp_pool disabled=no
    /ip dhcp-server network add address=192.168.1.0/24 gateway=192.168.1.1

Step 5: Enable STP/RSTP (Optional for Loop Prevention)

  1. WinBox:

    • Go to Bridge > Bridge tab.
    • Select bridge1, click Settings, and set Protocol Mode to RSTP or STP.
  2. CLI:

    /interface bridge set bridge1 protocol-mode=rstp

Step 6: Save Configuration

To save your settings:

/system reboot

or manually click Save in WinBox.


Step 7: Verify the Bridge

  1. Check bridge status:
    /interface bridge print
  2. Check bridge ports:
    /interface bridge port print
  3. Check assigned IP:
    /ip address print

Now your MikroTik router is running a bridge, allowing multiple interfaces to function as a single network. Let me know if you need any modifications or VLAN integration!

HOME

Check Also

BANDWIDTH MANAGEMENT ON MIKROTIK ROUTER

BANDWIDTH MANAGEMENT ON MIKROTIK ROUTER

BANDWIDTH MANAGEMENT ON MIKROTIK ROUTER BANDWIDTH MANAGEMENT ON MIKROTIK ROUTER, MikroTik routers are a popular …

Leave a Reply

Your email address will not be published. Required fields are marked *

Translate »