vaheeD khoshnouD

linux, mikrotik, macosx

OSPF to simulate full duplex links with redundancy

Written by vaheeD on January 9, 2013
4.00 avg. rating (82% score) - 2 votes

RB #1 Local

Enable both wlan connections, I set one up as an wlan1 ap and wlan2 as a station (this is not necessary It just makes me feel good to receive to a station and broadcast as an ap.

[admin@RBLocal] /interface wireless> print

Flags: X – disabled, R – running

0  R name="wlan1" mtu=1500 mac-address=00:0C:42:05:64:F3 arp=enabled interface-type=Atheros AR5413 mode=ap-bridge ssid="jetspeed"
     frequency=5180 band=5ghz scan-list=default antenna-mode=ant-a wds-mode=disabled wds-default-bridge=none wds-ignore-ssid=no
     default-authentication=yes default-forwarding=yes default-ap-tx-limit=0 default-client-tx-limit=0 hide-ssid=no
     security-profile=default compression=no
1  R name="wlan2" mtu=1500 mac-address=00:0C:42:1B:0B:7D arp=enabled interface-type=Atheros AR5413 mode=station ssid="jetspeed2"
     frequency=5220 band=5ghz scan-list=default antenna-mode=ant-a wds-mode=disabled wds-default-bridge=none wds-ignore-ssid=no
     default-authentication=yes default-forwarding=yes default-ap-tx-limit=0 default-client-tx-limit=0 hide-ssid=no
     security-profile=default compression=no

set ether1 to any Local lan address 192.168.209.137/24 set wlan1 to a router subnet address 192.168.88.131/30 — I use small subnets for p2p links for efficiency set wlan2 to a router address on a different subnet 192.168.88.132/30

[admin@RBLocal] /ip address> print Flags: X – disabled, I – invalid, D – dynamic

#   ADDRESS            NETWORK         BROADCAST       INTERFACE                                                                                              
0   192.168.88.129/30  192.168.88.128  192.168.88.131  wlan1                                                                                             
1   192.168.88.134/30  192.168.88.132  192.168.88.135  wlan2                                                                                             
2  192.168.209.137/24 192.168.209.0   192.168.209.255 ether1

Create an OSPF area like 0.0.0.1 named something like remote-net

[admin@RBLocal] /routing ospf area> print Flags: X – disabled

#   NAME                   AREA-ID         TYPE    DEFAULT-COST        
0   backbone               0.0.0.0         default
1   remote-net             0.0.0.1         default

add your remote network and routed links to the area (mine is all in one /24 even though it is three subnets)

[admin@RBLocal] /routing ospf network> print Flags: X – disabled, I – invalid

#   NETWORK            AREA                                                                                                                                   
0   192.168.88.0/24    remote-net

Your interfaces will automatically populate when you add the second router……

RB2 Remote Enable both wlan connections, I set one up as an wlan1 ap and wlan2 as a station

[admin@RBRemote] /interface wireless> print Flags: X – disabled, R – running

0  R name="wlan1" mtu=1500 mac-address=00:0C:42:1B:0B:84 arp=enabled interface-type=Atheros AR5413 mode=ap-bridge 
     ssid="2SCTelcom" frequency=5200 band=5ghz scan-list=default antenna-mode=ant-a wds-mode=disabled wds-default-bridge=none 
     wds-ignore-ssid=no default-authentication=yes default-forwarding=yes default-ap-tx-limit=0 default-client-tx-limit=0 
     hide-ssid=no security-profile=default compression=no
1  R name="wlan2" mtu=1500 mac-address=00:0C:42:1B:0B:57 arp=enabled interface-type=Atheros AR5413 mode=station 
     ssid="2Sutton" frequency=5180 band=5ghz scan-list=default antenna-mode=ant-a wds-mode=disabled wds-default-bridge=none 
     wds-ignore-ssid=no default-authentication=yes default-forwarding=yes default-ap-tx-limit=0 default-client-tx-limit=0 
     hide-ssid=no security-profile=default compression=no

set ether1 to the gateway address you will be using at the remote network 192.168.88.1/25
set wlan1 to a router address you are receiving from on rb1 192.168.88.130/30

set wlan2 to a router address on a the subnet that you are broadcasting from in the rb1 192.168.88.133/30

[admin@RBRemote] /ip address> print Flags: X – disabled, I – invalid, D – dynamic

#   ADDRESS            NETWORK         BROADCAST       INTERFACE                                                                   
0   ;;; default configuration
    192.168.88.1/24    192.168.88.0    192.168.88.255  ether1                                                                      
1   192.168.88.133/30  192.168.88.132  192.168.88.135  wlan1                                                                  
2   192.168.88.130/30  192.168.88.128  192.168.88.131  wlan2

Create the same OSPF areas and networks you made on RB1

[admin@RBRemote] /routing ospf> area print Flags: X – disabled

#   NAME                   AREA-ID         TYPE    DEFAULT-COST        
0   backbone               0.0.0.0         default
1   remote-net             0.0.0.1         default

[admin@RBRemote] /routing ospf> network print Flags: X – disabled, I – invalid

#   NETWORK            AREA                                                                                                        
0   192.168.88.0/24    remote-net

Now Run a bandwidth test between the routers

4.00 avg. rating (82% score) - 2 votes

Posted Under: MikroTik

About vaheeD

Leave a Reply

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

Protected by WP Anti Spam