You are on page 1of 20

Powercode Documentation – OSPF Network Tutorial

Powercode OSPF Tutorial
The purpose of this document is to provide a guide to the correct method of integrating Powercode into an OSPF network. For the purpose of this document, I will be using the Mikrotik 450G for configuration examples but this document is applicable to any OSPF capable router.

Routing Protocol Overview
For those of you already familiar with routing protocols, you can skip this section.

What is a routing protocol?
A routing protocol is a protocol that specifies how routers communicate with each other, disseminating information that enables them to select routes.

Each router has a prior knowledge only of networks attached to it directly. A routing protocol shares this information first among immediate neighbors, and then throughout the network. This way, routers gain knowledge of the topology of the network.

What is OSPF?
Open Shortest Path First (OSPF) is an adaptive routing protocol for IP networks. It uses a link state routing algorithm and falls into the group of interior routing protocols, operating within a single autonomous system. The basic concept of link-state routing is that every node constructs a map of the connectivity to the network, in the form of a graph, showing which nodes are connected to which other nodes. Each node then independently calculates the next best logical path from it to every possible destination in the network. The collection of best paths will then form the node's routing table.

What does this mean to you?
This means that you can add a new subnet to any OSPF enabled router in the network and every other router in the entire network will know three things: 1. That this subnet exists on the network 2. The best route to this subnet on the network

Powercode Documentation – OSPF Network Tutorial 3. All other routes to this subnet on the network This also means that, as long as there is another path to this subnet available on the network, you can have a transport failure with minimal service interruption to the customers served by that subnet and without any additional work on your part. If you read the previous Powercode routed network tutorial you may have thought ‘static routes are great but what happens when you have more than a couple of routers in your network?’ The answer is a routing protocol and the one I will focus on in this document is OSPF.

Why pick OSPF?
There are a couple of major reasons to select OSPF over other routing protocols – availability in a wide range of routers and ease of configuration. For a basic configuration, OSPF is one of the easier protocols to configure and as it is an open standard, most routers support it. So, all that being said, let’s take a look at a good OSPF candidate network.

In practice. most routers will look at the interface speed to determine the local cost on the router. you would have an even larger challenge on your hands. On the other hand. ARP traffic and other Layer 2 issues. Our solution to this conundrum is to implement a routing protocol and our choice will be OSPF. How will OSPF determine the path to take in this network? OSPF uses path cost as its basic routing metric. if you moved to a routed network and tried to configure this network using just static routes. . a 10Mbps link may have a cost of 10 and a 100Mbps link may have a cost of 1. For example. you would have a potential nightmare on your hands with spanning tree.Powercode Documentation – OSPF Network Tutorial This type of network is a prime candidate to be a routed network. If this network was Layer 2.

etc. You will no longer be able to send out network wide broadcasts and you will no longer be able to see the MAC address of a customer that is behind a remote router. from a network design perspective – it stops people being able to do ARP poisoning across your whole network. For example. equipment management. as the BMU will no longer be able to see the MAC of the customer. it will work. 3. You can no longer route large subnets across your entire network – each router will need to have a unique subnet for customers. 2. We have tested OSPF on the BMU MAXX with Mikrotik. . it does make some things more difficult.000 Cisco 7600 – it’s up to you! The biggest obstacle will probably be the learning curve if you are not already familiar with the concepts we’re discussing but a basic.Powercode Documentation – OSPF Network Tutorial Bear in mind that this is interface speed. Imagestream and Cisco. We will address this specifically in a later section but it is important to be aware of the method by which a router will determine the direction to send a packet. assuming all interface speeds are equal. routed OSPF setup is not terribly difficult to configure and learn. not transport speed. If you have a backhaul that can only pass 5Mbps but the physical interface on it is a 100Mbps interface. This is a good thing. you will no longer be able to use ‘Match MAC & IP’ in Powercode unless you have a BMU at each tower. a few things should be considered. you can generally assume that OSPF will calculate the best path to take by hop count. This means you will probably want to configure all links between routers with public IP addresses. However. As long as the router you use supports standard OSPF. The Mikrotik 450G will handle most smaller towers at a low cost (~$200) or you can go with a $250. the router will calculate this as a 100Mbps interface for path cost calculation. In practice. Customers will be able to see all your hops on a traceroute. 1. What routers should I use? Whatever you want! OSPF is not a proprietary protocol. You can manipulate this calculation by applying a fixed cost to a particular interface. Considerations before migrating from Layer 2 to Layer 3 Before moving to any routed network. it cuts down on ARP traffic and more.

This kind of configuration can scale to a much larger setup without any changes.Powercode Documentation – OSPF Network Tutorial Powercode Considerations One additional step for Powercode is that you will need to add every router interface to Infrastructure. Here is our example network. Let’s take a look at a real configuration step by step for a simple. management interfaces – everything! You will also need to set all the remote routers to DHCP relay to the BMU. All subnets that you are doing DHCP relay for in the BMU need to be added to a Shared Network. network uplink interfaces. small ring. We’ll look at this in a second. . This means your customer facing interfaces.

This space could be used to assign to CPE.16.1.0/24 Now let’s add some space that we want to use to manage equipment at the tower.0. we will use private IP addresses for everything but.16.16.1. First.0.0. Each interface on the router that faces another router will need an IP address on it. We need a management IP on these routers because you don’t want to rely on an interface address to access the .0/24 192. Tower 1 Customer Space Tower 2 Customer Space Tower 3 Customer Space Tower 4 Customer Space 192.0. I would strongly suggest using public IP addresses for the links between the routers.3.8/30 10.Powercode Documentation – OSPF Network Tutorial The first thing we need to determine is an IP addressing scheme that we want to use on this network. Tower 1 to Tower 2 Tower 2 to Tower 3 Tower 3 to Tower 4 Tower 4 to BMU BMU to Tower 1 192.168.0/24 192. we need to create a management IP for each tower router. a UPS or whatever other gear you have. tower equipment.12/30 10.0.16/30 Finally.0/24 172.0/30 as mentioned earlier.16. let’s determine customer IP space that we want to use at each tower.0/24 172.0.4/30 10. For the purpose of this tutorial.0.0/24 Now we need space for uplinks between the routers. Tower 1 Equipment Management Tower 2 Equipment Management Tower 3 Equipment Management Tower 4 Equipment Management 172.

168.255. If you don’t assign the subnets to the shared interface.255. . we can ensure we can get into the router through any active interface regardless of the status of the other interfaces.1.1/32 192. I will step through the configuration of the Tower 1 router in this document.0.0. We want to bring the whole network back into a single port on the BMU.168.168. Tower 1 Customers Tower 1 Equipment Tower 1 to Tower 2 Tower 1 to BMU Tower 1 Management Now that all the subnets for these routers have been determined. We will only need to add subnets to the Powercode BMU that will be used to address equipment managed in Powercode.0/30 10. we need to create a shared interface in Powercode.Powercode Documentation – OSPF Network Tutorial router in case it goes down. you won’t be able to access the router.0.0/24 10.0.0. For example. Since this is a virtual interface. Before we configure any of the subnets. Let’s determine the subnets we need for this router.3/32 192.168.0. Tower 1 Management Tower 2 Management Tower 3 Management Tower 4 Management 192. Eth 1 will be the port we select but you can use any port you like. I’ll cover the configuration of this management interface later in the document. For now. I will show the Powercode configuration that is needed for this router.168. if you try to telnet into the Tower 1 router on the 10.0/30 subnet and that interface is down. you will have problems with DHCP relay from your tower routers.168. configuration can begin.2/32 192. By adding a management address on a virtual interface. just be aware we want to configure one. This means we need to add Tower 1 Customers and Tower 1 Equipment subnets to Powercode.0/24 172.255. The shared interface allows us to assign multiple DHCP subnets to an interface when we are using DHCP relay. we can use a /32 subnet.1/32 First.

. Set the Type of Subnet bnet to Remote Remote-OSPF. ace. OSPF. click Add under Shared Network and create a shared interface named ETH1_Shared. 1. This means the subnet will not be created locally on the BMU but will be made available for DHCP and equipment addressing.Powercode Documentation – OSPF Network Tutorial You only need one shared interface per physical interf interface. Under the BMU. There are three things we need to do here that are slightly different than creating a Local Subnet. Now let’s create our subnets.

we need to create DHCP ranges for any IPs that will be given out. All router interfaces need to be added to Infrastructure. we would need eed to add: The IP address that connects from Tower 1 to the customers (192.1) The IP address that connects from Tower 1 to the equipment (172.168. The IP Address field should be set to the next hop address for this subnet. we only really need DHCP for the customer range but you may m want to use DHCP for your tower equipment as well.1.16. Set the Shared Network to the network we previously created – ETH1_Shared. Make sure you select Use NAT for Routing and set to Yes if this is a private address you are giving to a customer. interfaces customers connect to.0. for Tower 1. interfaces that equipment is connected to – everything.Powercode Documentation – OSPF Network Tutorial 2. 3. This includes uplinks between routers. Rebuild your BMU once all the subnets and DHCP ranges are added. In our example. This is not really important for typ type Remote-OSPF OSPF as we are not creating static routes – I would recommend entering the management IP of the router here for tracking purposes. So.1) . Once you have completed the subnet setup in Powercode there is one final step to be completed. Once you are done creating the subnets.

Powercode Documentation – OSPF Network Tutorial The IP address from Tower 1 to Tower 2 (10.1) Enter a descriptive name for the interface in the Equipment Name field.0.1) The IP address from Tower 1 to the BMU (10.0. go to Routing and then OSPF Configuration. Since we won’t see the MAC address for these e packets on the BMU (as MAC addresses are not transmitted across a Layer3 network) we need to use the global match MAC.0. For Type of IP. BMU Configuration In the BMU web interface.168. Once you have added all the interfaces to Infrastructure you are done ne with the Powercode configuration.255.0.1 (10.0. . Enter the MAC address as 00:00:00:00:00:0A – this is a global matching MAC address.0. select the interface this router is connected to.17) The management address on Tower 1 (192.

I use the management address of the router as the Router ID. we do want to advertise a default route into our OSPF network so check Default und under Route Redistribution. For your BMU.Powercode Documentation – OSPF Network Tutorial You need to configure a few options in here prior to configuring the rest of the network. we don’t have any other protocols to redistribute from. However. . Since the BMU currently only supports OSPF. The BMU defaults to setting all OSPF interfaces to Passive. Open the Eth 1 interface and uncheck the Passive checkbox. Now click Update OSPF Configuration. Route Redistribution is used to re redistribute distribute routes from other protocols or tables back into OSPF. I would use your WAN IP. We also need to set our network facing interface to an Active interface. This means that these interfaces are not allowed to form OSPF peering sessions with other router routers. The Router ID is a unique identifier for the router that is used to identify it through the network to other OSPF routers. Generally.

3. Le Leave ave the area at 0.0 and click Add Network. Your main OSPF area is 0. By default.0. We’re now done with the BMU configuration – let’s move onto the Tower 1 router.0. We are already ready advertising the default route by selecting Default under Route Redistribution. the BMU will not advertise any networks into OSPF unless you have set route redistribution for a specific network or you have entered it into the network advertisement section.0. I’m using a Mikrotik 450G for this configuration example but you can use any OSPF capable router.Powercode Documentation – OSPF Network Tutorial The final thing we need to do is enter the networks we want to advertise into OSPF. 2. The only subnets we need to advertise from the BMU are: 1.0. Router Configuration .0.0.0. A default route. The Tower 1 to BMU subnet. we will be putting every router into the backbone area.16/30) The Area input field allows you to select the OSPF area you want to advertise into. Multiple OSPF areas is outside the scope of this document – for this tutorial. The Tower 4 to BMU subnet. Let’s add our Tower 1 to BMU subnet (10.

Click on IP and then Addresses.Powercode Documentation – OSPF Network Tutorial Here we are logged into Winbox. Let’s configure our IPs. We need to determine the interfaces we are going to configure our IPs onto so let’s configure as follows: Ether 1 Ether 2 Ether 5 Tower 1 to BMU Tower 1 to Tower 2 Customer DHCP and Equipment Mgmt .

We also need to add the management address to a virtual interface so let’s create that now.Powercode Documentation – OSPF Network Tutorial Go through and add all your subnets to the router. . Click on Bridge and then click on +.

. Now go back to the IP P Addresses section and add our management IP to the Management interface. Now let’s configure OSPF. Click on Routing and then OSPF.Powercode Documentation – OSPF Network Tutorial Create a bridge interface named Management.

To match my recommended ecommended configuration. The Mikrotik default is to have all interfaces active for OSPF. everything else can be left to the defaults. All you really need to do in this section is change your Router outer ID – I recommend setting it to the management address. For the purposes of our configuration. let’s set all the interfaces to passive by default.Powercode Documentation – OSPF Network Tutorial Click on the Instances tab to configure your OSPF instance. Now click on the Interfaces tab. Click the + and set the Interface to All and then check the Passive box. .

Powercode Documentation – OSPF Network Tutorial Now we need to explicitly set to active all the interfaces we will actually be running OSPF on. Leave all the other options at their default settings. . Go ahead ead and add both Ether 1 and Ether 2 as active OSPF interfaces.

Powercode Documentation – OSPF Network Tutorial Now we need to add the networks that we will be advertising from this router. Click on the Networks tab and click the +. .

the final step we need to take is to setup DHCP Relay. Now connect this router to your BMU. click on Routing and then Routing Table. Select the interface that you need to run DHCP P on and then enter the IP of the BMU. Click on the + and then enter the appropriate information.Powercode Documentation – OSPF Network Tutorial Enter every subnet that exists on the router. To do this on the BMU. click on IP and then DHCP Relay. You can verify if the OSPF adjacency is formed by clicking on the Neighbors tab under Routing->OSPF on the Mikrotik or clicking on OSPF Neighbors under Routing on the BMU. You can also verify if the routes are being advertised correctly by checking the routing table. it will not be advertised into the e network and other routers will not know the correct path to take to reach an IP in that subnet. To set this up. Once everything is setup and functioning. . If you fail to enter a subnet.

You should then be able to pull an appropriate IP address via DHCP from the BMU and get online. enter the MAC address of your laptop into Powercode and assign an IP from the appropriate subnet. .Powercode Documentation – OSPF Network Tutorial Now plug your laptop into Ether 5.