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