Montag, 20. Juni 2016

OSPFv3 on MikroTik Routers









The network above should be configured and routed with OSPFv3. The network address is 2a03:f3a2:a2b2:xy00::H/64.

Set up a new config and set the link-local addess because it is needed for OSPFv3. Afterwards set the directly connected ip addresses.



https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZoQEWOu6n8N6vQRbN-YpMMf-6yz94P5C4Wh-pQHXNl5on9U3e5AKNYXarDNIWIazgr6MpKbcd83IhwRj16q3cpQXfRUMeGSgmvsZ8rzHmyl25DNwAeDSyHAQvtFwL0sismJ7TPfg72ds/s1600/Unbenannt.PNG

OSPF Configration:

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpSvpNwi2KvF_0zIpGDPQlmEQdxlAYDFp5YoSAfBgRsvdDKOCJ3m6gg7qMthaum2lV36wIxsYbo1-h2JsVWPyDIpMVc2bfUcFx4Q5XWe83fPL54KyEZzcGPqJp_5FKCNYeCJMN6Qr4brw/s1600/Unbenannt.PNG

Configure a bridge to configure the Router-ID, the addresses and the interfaces. You are able to see the routes now.

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUVABJxDKOyHNXzuIRlttvBOHJNiXXcfOG7D-pKoqdpPFSxQxhXSpDGklUiC4MEyh44vxX4TmbBJBt-ysC3P8fJL5fq4izF6yfnu7A2DFe2NKnrU6mlkXO7-QT2brY7jWkiIC-bhndD70/s1600/Unbenannt.PNG

System->Logging shows the transmitted data for OSPF.
You are able to see that IP-addresses are only transmitted if the network changes.
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfQq-epMEwik0iCBFYTNXQZEw4UAvnWDgCtWJ1E9Yv2rjD0Uw4vTIPrZmYk4eyCCIDV3KpVRWuINbw2NmjIpAlmtpi1GfkAjBylZ6sjRs_IX7yHElXs-_ar1xRZSUNskBN6j5lHl2P3OQ/s1600/Unbenannt.PNG

Dienstag, 10. Mai 2016

Virtual Interfaces and OSPF on a Mikrotik Router

Virtual Interfaces

To configure an virtual Interface you first have to set up a bridge and assign an IP Address to it.
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2-S9HUZSHubtRHb7zM9um-sgl3RZwIwmKfHYgdafIhm4PXMVFSJcf9Dit6A32kOjEcBUq1cQUFhTkNBvmWTrqQU_ZxwOa-YyYOpurDzsV6-2avsjDbjsMa3Mbja6lUz5uVFjCsJ6NQM4/s1600/Unbenannt.PNG

You can use this interface like a normal physical interface.
 


OSPF

The Open Shortest Path First is a link-state routing protocoll.
You configure it under Routing-OSPF. As area backebone is used. Under networks the used networks are added.
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimY7hMa9fyy_VPgWLLgMd0pP40rNak3CqpAQZT23-Yyc2QulfwjGY2Q1e5Dhw8hf6ppxgJvcnCq-i6gJrG10rAv8BXFWjTJwxSy49c35TpOSdHfCvSWzYA95jQdQaiQnCjA0-yXPSjvzo/s1600/Unbenannt.PNG

Under interfaces you can now see the interfaces from the different networks. They can be configured as passive etc.
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXVfT2rkgFEi1Ufm9c7cCjP6qgobc1LBrg-GGSDlh7it2FwLYJAIGpar6-hPYDnGO66RQfJtxouL2s47_iSNpMn8_yxdQ-pSVRMyBjM7LOC9CGhdHnrPJSpRrKF3r0LqGDCMPY0IcNr40/s1600/Unbenannt.PNG


Configuring Mikrotik Router






There are serveral ways to configure a mikrotik router:
  • CLI
  • Webinterface
  • Dude
  • Winbox
  • ...
We are going to use winbox. This is a tool from mikrotik. It works on Layer 2 and on Layer 3. This is very usefull, because you don't need a IP address to communicate. You can use packets to communicate instead.

Process:
  • Start winbox
  • Connect PC and Router with an ethernet cable (use last port)
  • Connect via Ethernet (login is admin, without passwort)
  • Reset Configuration (System - Reset Configuration - Select No Default Configuration)
  • Get IP address via a DHCP Server (running on port that connects your router to the PC):
    • Address List - add Addresshttps://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5YCvu3lqd5rbMjQ4wyxgbMrWo10WPrkWi90sPnQLNi9YIwC3kOHhF6ED06g57RkbHXHppzFgYSwrjJDLof0OcUBoonf6CsnPiqWxHHI8P_6UHwu5ClEudQ0l_5aHOBjibuOg7vdXYfbU/s1600/IP.bmp
    • IP Pool - new IP Pool - set name  
    • IP-DHCP Server
 https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHQIuAim1plPsdcbFMs6Xux6p0k5Ze6E3L9DCRT600LWDFW1Fytz0PcziSYdrYsyA33UkB5zQsWscKSH2G22OH-WxCk5z0ji6Qh72NuqWncsGKYaMYY37BHdYVGUHqR0oFg9KU4xVPYNk/s1600/Unbenannt.PNG
    • Standardgateway, Subnetmask and DNS still need to be configured.
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcKy7P5ClcZ8A7dj6FdNC99f5yQcpoH1pjZS-3lXZnglJyIqWf4kQ3djx1VYpQqXcRZM-nXKEK01av9Ci-4c_rRlY5zf_H0MAmwSvXd9T9X0mo6lWm8Ft_SV2TNWJq9jE3qHJ_flpssfk/s1600/Unbenannt.PNG

  • Activate the Routing Internet Protokoll (RIP)
    • Routing - RIP
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfTnqyYyTEpKTMFPR10kjQHrPDsGT7W60nOQj-l4pIk_MKucfvCkWjttVAoTA5VpYoPTG-cQBbPKga3T3M7w_t5-4OKtOEXEmzm-XixgYy7pdwr34q5FQ0TAKkCMgbH3xsL3Kv7VJzNCk/s1600/Unbenannt.PNG 
    • Add all networks, connected to you
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVFyd7llRvyLkrC_usRajK4sWfK_Gg2Iif7AIBTCBAnSRwnLg43kGuyQgL6C3SOXL0n_sYEAMxb7NRaDi_SCQozZC70_hQM3ocNkGtps17OnzjUrAxBkm7QqX8re0fQtnufxOA9xJK9jc/s1600/Unbenannt.PNG


    •  Lookup all the routes
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwKfHj6v6_mHlNnE9RvHgenweVjUmgc0WcoaJM8UHSBcJfPN8YtIOJDAppk0A2aNC9JELlPwFVZrRjjvZ1qoCy2nJkiiXnvTZ6WPwFM8IDJtCVCu6-VGqwTiPLHcphI02lpm9-z0qvIJ0/s1600/Unbenannt.PNG
    •  Test the connectivity with a ping: Tools-Ping
 https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZj2OxCNBdlww179PlkbN3YThw6fJ1GYjO1Dou_6x2xH-tVd0iLWbkt0t89nDUlrjzJAwzlY510MuMFmVNb2lieUyr_NLgaGfWieIuuNh9earDX7kPV0crXpnnzxjsD23rMBSF-7chKVs/s1600/Unbenannt.PNG




Montag, 25. April 2016

Configuring OSPF



Process of OSPF:
  • Hello Packets are sent via Multicast to the neighbours.
  • Directly connected Networks are put in a Link State Packet.
  • The area gets flooded with this Packets.
  • According to this the router knows what the network looks like.
  • A topology database is built.
  • Dijkstra Algorithm - Shortest Path Tree is created
If something in the network changes, the whole process starts again.

Exercise 8.2.2.7:

 To configure OSPF you need to configure a Router ID. There are three ways to get the router ID. 
  1. Do nothing - highest IP address of the interface
  2. loop-back interface -  IP address is set as router ID
  3. directly set the router ID 
In this exercise all networks are in one area (area 1).
The wildcard mask is the inverted networkmask.
Afterwards you need to configure the passive interfaces (if there are only switches and end devices connected - OSPF packets will not be sent to this interfaces).