Skip to main content

Posts

Showing posts from September, 2010

OSPF and 802.11 wireless networks

By default when configuring OSPF on a Mikrotik router, it will be a broadcast network type. This will work for most situations, but it uses multicasting to communicate with other ospf nodes on the network segment. For this reason it is recommended to use network type NBMA or Non Broadcast Multi Access for wireless network segments. This requires more configuration, such as specifying the neighbors manually and setting priorities. The reason NBMA is recommended is because in  802.11 wireless networks multicast packets are not always reliably delivered (read   Multicast in wireless networks   for details); using multicast here can create OSPF stability problems. Neighbors are created dynamically when you specify broadcast as the network type. If you create an NBMA neighbor and add a new OSPF interface with network type NBMA, then this will take place of the broadcast neighbor configuration. Example configuration (from MikroTik wiki) 1. Specif

/31 addressing

Mikrotik support /31 addressing across p2p links between 2 Mikrotik interfaces. This is useful for conserving address space. As you probably know, usually a subnet's network and broadcast addresses are unusable. That means for a p2p link, we need 2 x usable addresses - or a /30 which is a chunk of 4 addresses! So for every link we waste 2 valuable addresses. No good if you are using public address space and have a limited number. It's not so critical if you are using a private range obviously - but it does make it nice and tidy :) For example: In the above example, it uses 4 addresses - 10.20.20.12 (network) 10.20.20.13 (usable) 10.20.20.14 (usable) 10.20.20.15 (broadcast) We can split this into 2 x /31 by making the address of the local router the network address and the remote end the broadcast. R1 /ip address add address=10.20.20.12/31 interface=ether1 network=10.20.20.13 broadcast=10.20.20.12 R2 /ip address add address=10.20.20.13/31 interface=ether1