Access Points
    Wi-Fi Routers
    Magicbox
    Software
    Access Points
    Magicbox
    Motherboards
    Radio modules
    Accessories
    Enclosures
    Client sets
    Motherboards
    Radio modules
    Access points
    Connectors
    Power Supply
    Tools
    Enclosures
    Spliters
    Bluetooth
    Accessories
    Optical fibre
    Switches
    ADSL Modem
    Print Servers
  
  Wiedza/MikroTik/Jak to zrobić??/Transparent Bridge, using EoIP tunnel

Transparent Bridge, using EoIP tunnel

Follow the steps below to create transparent bridge using EoIP interfaces:

  1. Make sure you have communication between MikroTik routers, i.e., one router is configured as server (AP), the other one as client (station):

    [admin@AP] > interface wireless set wlan1 mode=bridge ssid=mikrotik
    ... disabled=no
    
    [admin@Station] interface wireless>
                                        print
    [admin@Station] interface wireless>
                    set wlan1 mode=station ssid=mikrotik
    ... disabled=no
    
  2. Make sure the IP configuration is correct, and you can access one router from the other one:

    [admin@AP] > ip address add address=10.1.0.1/24 interface=wlan1
    
    [admin@Station] > ip address add address=10.1.0.2/24 interface=wlan1
    
    [admin@Station] > ping 10.1.0.1
    10.1.0.1 64 byte pong: ttl=64 time=1 ms
    10.1.0.1 64 byte pong: ttl=64 time=1 ms
    2 packets transmitted, 2 packets received, 0% packet loss
    round-trip min/avg/max = 1/1.0/1 ms
    [admin@Station] >
    
  3. Add EoIP tunnel interfaces:

    [admin@AP] > interface eoip
         add remote-address=10.1.0.2 tunnel-id=1 disabled=no
    
    [admin@Station] > interface eoip
         add remote-address=10.1.0.1 tunnel-id=1
    ... disabled=no
    
  4. Add bridge interfaces and put :

    [admin@AP] >
        interface bridge add forward-protocols=ip,arp,other disabled=no
    [admin@AP] >
        interface bridge port set eoip-tunnel1,ether1 bridge=bridge1
    
    [admin@Station] >
        interface bridge add forward-protocols=ip,arp,other
    ... disabled=no
    [admin@Station] >
        interface bridge port set eoip-tunnel1,ether1 bridge=bridge1
    

    Note, that connection is lost to the router if you are connected through 'ether1'.

  5. Move the IP addresses from Ethernet to bridge interfaces:

    [admin@AP] ip address> set [find interface=ether1 ] interface=bridge1
    [admin@AP] ip address> print
    Flags: X - disabled, I - invalid, D - dynamic
      #   ADDRESS         NETWORK    BROADCAST   INTERFACE
      0   10.0.0.215/24   10.0.0.0   10.0.0.255   bridge1
      1   10.1.0.1/24     10.1.0.0   10.1.0.255   wlan1
    [admin@AP] ip address>
    
    [admin@Station] ip address> set [find interface=ether1 ]]
                                                     interface=bridge1
    [admin@Station] ip address> print
    Flags: X - disabled, I - invalid, D - dynamic
      #   ADDRESS        NETWORK    BROADCAST   INTERFACE
      0   10.0.0.216/24  10.0.0.0   10.0.0.255   bridge1
      1   10.1.0.2/24    10.1.0.0   10.1.0.255   wlan1
    [admin@Station] ip address>
    

    Now you can connect again to the router through ether1 which belongs to bridge1

Test the bridge by pinging from 10.0.0.215 to 10.0.0.216. Note, that the bridge needs 10...30s to learn addresses and start passing through traffic.

Similarly you can create transparent bridge if you have prism or CISCO/Aironet interfaces, or encrypted PPTP tunnel. However, the EoIP tunnel can be established between two MikroTik routers only.


Powrót    
Copyright 2002-2005 by Advert all rights reserved.